[Libreoffice-commits] core.git: include/svx svx/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Nov 19 06:31:53 PST 2014


 include/svx/svdobj.hxx       |   18 +-----------------
 svx/source/svdraw/svdobj.cxx |   17 +++++++++++++++++
 2 files changed, 18 insertions(+), 17 deletions(-)

New commits:
commit 58ce60da28b019be3dcf52c6b9fc51b91361137e
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Nov 19 09:14:00 2014 -0500

    Move SdrObjUserDataList out of the header.
    
    It's only used within SdrObject.  This also eliminates the need to
    include boost's ptr_vector in the header file.
    
    Change-Id: I5ba9b424be21c5ee3280364de1d73b0fa3921129

diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index 0f8fa44..9768b9c 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -42,7 +42,6 @@
 #include <vcl/timer.hxx>
 
 #include <boost/optional.hpp>
-#include <boost/ptr_container/ptr_vector.hpp>
 
 // forward declarations
 
@@ -73,6 +72,7 @@ namespace tools { class PolyPolygon; }
 class SfxPoolItem;
 class SdrVirtObj;
 class SdrDragView;
+class SdrObjUserDataList;
 
 namespace sdr
 {
@@ -208,22 +208,6 @@ public:
     virtual OUString GetMacroPopupComment(const SdrObjMacroHitRec& rRec, const SdrObject* pObj) const;
 };
 
-class SdrObjUserDataList
-{
-    typedef boost::ptr_vector<SdrObjUserData> ListType;
-    ListType maList;
-
-public:
-    SdrObjUserDataList();
-    ~SdrObjUserDataList();
-
-    size_t GetUserDataCount() const;
-    const SdrObjUserData* GetUserData(size_t nNum) const;
-    SdrObjUserData* GetUserData(size_t nNum);
-    void AppendUserData(SdrObjUserData* pData);
-    void DeleteUserData(size_t nNum);
-};
-
 // all geometrical data of an arbitrary object for use in undo/redo
 class SVX_DLLPUBLIC SdrObjGeoData
 {
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index ba3c477..9c251bc 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -130,6 +130,7 @@
 #include <rtl/strbuf.hxx>
 #include <svdoopengl.hxx>
 #include <boost/scoped_ptr.hpp>
+#include <boost/ptr_container/ptr_vector.hpp>
 
 using namespace ::com::sun::star;
 
@@ -224,6 +225,22 @@ OUString SdrObjUserData::GetMacroPopupComment(const SdrObjMacroHitRec& /*rRec*/,
     return OUString();
 }
 
+class SdrObjUserDataList
+{
+    typedef boost::ptr_vector<SdrObjUserData> ListType;
+    ListType maList;
+
+public:
+    SdrObjUserDataList();
+    ~SdrObjUserDataList();
+
+    size_t GetUserDataCount() const;
+    const SdrObjUserData* GetUserData(size_t nNum) const;
+    SdrObjUserData* GetUserData(size_t nNum);
+    void AppendUserData(SdrObjUserData* pData);
+    void DeleteUserData(size_t nNum);
+};
+
 SdrObjUserDataList::SdrObjUserDataList() {}
 SdrObjUserDataList::~SdrObjUserDataList() {}
 


More information about the Libreoffice-commits mailing list