[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/lib/kotext
From:       David Faure <faure () kde ! org>
Date:       2004-09-01 15:01:57
Message-ID: 20040901150157.64BC41EBB () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Added DCOP methods for finding out the cursor index and paragraph number.
CCMAIL: BlackFire <blackfireml@tiscali.it>


  M +10 -0     KoTextViewIface.cc   1.46
  M +3 -0      KoTextViewIface.h   1.37


--- koffice/lib/kotext/KoTextViewIface.cc  #1.45:1.46
@@ -245,4 +245,14 @@ void KoTextViewIface::showCursor()
 }
 
+int KoTextViewIface::cursorParagraph() const
+{
+    return m_textView->cursor()->parag()->paragId();
+}
+
+int KoTextViewIface::cursorIndex() const
+{
+    return m_textView->cursor()->index();
+}
+
 void KoTextViewIface::moveCursorLeft(bool select)
 {

--- koffice/lib/kotext/KoTextViewIface.h  #1.36:1.37
@@ -81,4 +81,7 @@ k_dcop:
     void showCursor();
 
+    int cursorParagraph() const;
+    int cursorIndex() const;
+
     void moveCursorLeft(bool select);
     void moveCursorRight(bool select);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic