diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-29 12:47:05 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-04 12:30:39 -0500 |
commit | 2ebf98e8225523186965a2ced928b0623020e41e (patch) | |
tree | 0aa66573a3c7a6f1b9d1ddf9ca3cc63e99469873 /include/svx | |
parent | 222d79a895f5ee6b4ae3459d72e863e776c535e8 (diff) |
Create a variant of MakeNewObject that takes snap rectangle.
And absorb 2 special cases from SvxDrawPage::_CreateSdrObject().
Change-Id: I8e400794b9aef4b229b6760835b80dffd56cbc8d
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdobj.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 3ae4f2355a02..2645e78b5778 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -1050,10 +1050,15 @@ public: SdrObjUserData* pNewData; private: + + static SVX_DLLPRIVATE SdrObject* CreateObjectFromFactory( + sal_uInt32 nInventor, sal_uInt16 nIdentifier, SdrPage* pPage, SdrModel* pModel ); + SVX_DLLPRIVATE SdrObjFactory(sal_uInt32 nInvent, sal_uInt16 nIdent, SdrPage* pNewPage, SdrModel* pNewModel); public: static SdrObject* MakeNewObject(sal_uInt32 nInvent, sal_uInt16 nIdent, SdrPage* pPage, SdrModel* pModel=NULL); + static SdrObject* MakeNewObject( sal_uInt32 nInventor, sal_uInt16 nIdentifier, const Rectangle& rSnapRect, SdrPage* pPage ); static void InsertMakeObjectHdl(const Link& rLink); static void RemoveMakeObjectHdl(const Link& rLink); static void InsertMakeUserDataHdl(const Link& rLink); |