diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-27 09:06:11 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-27 09:32:44 +0200 |
commit | f1dae10ca512084a04d08e3f0268723223a92e38 (patch) | |
tree | 650fd9b3425f0348726ba5f4e38ec5a231fcc880 /sw/inc/textboxhelper.hxx | |
parent | ae59502b20b52aaf34f8f4d89e354f28a7dbe453 (diff) |
SwXDrawPage::getCount(): ignore textboxes
Change-Id: I579cc0242f6901175162b169813e4465d52952a0
Diffstat (limited to 'sw/inc/textboxhelper.hxx')
-rw-r--r-- | sw/inc/textboxhelper.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx index f7750b388148..bac2dcc0463b 100644 --- a/sw/inc/textboxhelper.hxx +++ b/sw/inc/textboxhelper.hxx @@ -10,10 +10,14 @@ #ifndef INCLUDED_SW_INC_TEXTBOXHELPER_HXX #define INCLUDED_SW_INC_TEXTBOXHELPER_HXX +#include <list> + #include <com/sun/star/uno/Any.h> #include <com/sun/star/uno/Type.h> +class SdrPage; class SwFrmFmt; +class SwDoc; /** * A TextBox is a TextFrame, that is tied to a drawinglayer shape. @@ -34,6 +38,11 @@ public: static void syncProperty(SwFrmFmt* pShape, sal_uInt16 nWID, sal_uInt8 nMemberID, const OUString& rPropertyName, const css::uno::Any& rValue); /// If we have an associated TextFrame, then return that. static SwFrmFmt* findTextBox(SwFrmFmt* pShape); + + /// Look up TextFrames in a document, which are in fact TextBoxes. + static std::list<SwFrmFmt*> findTextBoxes(SwDoc* pDoc); + /// Count number of shapes in the document, excluding TextBoxes. + static sal_Int32 getCount(SdrPage* pPage, std::list<SwFrmFmt*>& rTextBoxes); }; #endif // INCLUDED_SW_INC_TEXTBOXHELPER_HXX |