[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - svx/source

matteocam matteo.campanelli at gmail.com
Thu Jul 23 10:29:45 PDT 2015


 svx/source/svdraw/svdotext.cxx  |    4 +++-
 svx/source/svdraw/textchain.cxx |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 5d33723afcd4d03120965dc8364dd795a558e370
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Thu Jul 23 19:29:07 2015 +0200

    Move (prototype) implementation of prev link in TextChain
    
    Change-Id: I1fab18b994f807d9d1e025f7be274df8dcec8eaf

diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 35b481b..83bd15d 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -2090,7 +2090,9 @@ SdrTextObj* SdrTextObj::GetNextLinkInChain() const
 
 SdrTextObj* SdrTextObj::GetPrevLinkInChain() const
 {
-    // FIXME: To be implemented
+    if (GetTextChain())
+        return GetTextChain()->GetPrevLink(this);
+
     return NULL;
 }
 
diff --git a/svx/source/svdraw/textchain.cxx b/svx/source/svdraw/textchain.cxx
index 31ea1fd..ddddb70 100644
--- a/svx/source/svdraw/textchain.cxx
+++ b/svx/source/svdraw/textchain.cxx
@@ -68,6 +68,8 @@ SdrTextObj *TextChain::GetPrevLink(const SdrTextObj *pTextObj) const
 
 SdrTextObj *TextChain::impGetNextLink(const SdrTextObj *pTextObj) const
 {
+    // XXX: Temporary implementation based on index number
+
     SdrTextObj *pNextTextObj = NULL;
     SdrPage *pPage = pTextObj->pPage;
 
@@ -87,7 +89,6 @@ SdrTextObj *TextChain::impGetNextLink(const SdrTextObj *pTextObj) const
 
 SdrTextObj *TextChain::impGetPrevLink(const SdrTextObj *pTextObj) const
 {
-    // XXX: To be implemented
     return NULL;
 }
 


More information about the Libreoffice-commits mailing list