Kaydet (Commit) 58ce60da authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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
üst 78ac39dc
......@@ -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
{
......
......@@ -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() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment