summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/svdobj.hxx4
-rw-r--r--include/svx/svdotext.hxx2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index d2b1ae4579be..a251d8ddac33 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -55,6 +55,7 @@ class SdrObjList;
class SdrObject;
class SdrPage;
class SdrPageView;
+class SdrTextObj;
class SdrView;
class SfxItemSet;
class SfxGrabBagItem;
@@ -760,6 +761,7 @@ public:
bool IsVisible() const { return mbVisible;}
void SetMarkProtect(bool bProt);
bool IsMarkProtect() const { return m_bMarkProt;}
+ virtual bool IsSdrTextObj() const { return false; }
/// Whether the aspect ratio should be kept by default when resizing.
virtual bool shouldKeepAspectRatio() const { return false; }
@@ -1002,6 +1004,8 @@ SVXCORE_DLLPUBLIC E3dScene* DynCastE3dScene(SdrObject*);
inline const E3dScene* DynCastE3dScene(const SdrObject* p) { return DynCastE3dScene(const_cast<SdrObject*>(p)); }
SVXCORE_DLLPUBLIC E3dObject* DynCastE3dObject(SdrObject*);
inline const E3dObject* DynCastE3dObject(const SdrObject* p) { return DynCastE3dObject(const_cast<SdrObject*>(p)); }
+SVXCORE_DLLPUBLIC SdrTextObj* DynCastSdrTextObj(SdrObject*);
+inline const SdrTextObj* DynCastSdrTextObj(const SdrObject* p) { return DynCastSdrTextObj(const_cast<SdrObject*>(p)); }
struct SdrObjCreatorParams
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index 6041a74fe0aa..a2574765ade7 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -625,6 +625,8 @@ public:
*/
static bool HasTextImpl( SdrOutliner const * pOutliner );
+ virtual bool IsSdrTextObj() const final { return true; }
+
friend class ::SdrTextObjTest;
};