[Libreoffice-commits] .: sw/source

Joseph Powers jpowers at kemper.freedesktop.org
Sun Jan 2 13:52:00 PST 2011


 sw/source/ui/inc/swuicnttab.hxx |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

New commits:
commit c395f47eab69330de42989ff3ce7408f224b6c60
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Sun Jan 2 13:50:49 2011 -0800

    Remove DECLARE_LIST()

diff --git a/sw/source/ui/inc/swuicnttab.hxx b/sw/source/ui/inc/swuicnttab.hxx
index 497a9c2..dafda06 100644
--- a/sw/source/ui/inc/swuicnttab.hxx
+++ b/sw/source/ui/inc/swuicnttab.hxx
@@ -49,6 +49,8 @@
 #include <vcl/menubtn.hxx>
 #include <svx/langbox.hxx>
 #include <cnttab.hxx>
+#include <vector>
+
 class SwWrtShell;
 class SwTOXMgr;
 namespace com{namespace sun{namespace star{
@@ -254,7 +256,7 @@ public:
     void				SetWrtShell(SwWrtShell& rSh);
 };
 
-DECLARE_LIST(TOXControlList, Control*)
+typedef ::std::vector< Control* > TOXControlList;
 
 class SwTOXEdit;
 class SwTOXButton;
@@ -326,6 +328,14 @@ public:
 
     virtual void		Resize();
     virtual void        GetFocus();
+
+private:
+    size_t      currentControlList;
+    size_t      GetControlListPos( Control* pItem );
+    void        InsertControlList( Control* pItem, size_t Index );
+    Control*    FirstControlList();
+    Control*    NextControlList();
+    Control*    RemoveControlList( Control* pItem );
 };
 
 class SwTOXEntryTabPage;


More information about the Libreoffice-commits mailing list