diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-24 17:11:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-24 17:47:40 +0200 |
commit | 7596e26fd259ce5445212949403e7cd32303b2bd (patch) | |
tree | cda3ea0acb777fa8ce97e1b8485648e62078ca53 /sw/inc/textboxhelper.hxx | |
parent | 212dce21b62a4cfb85406bebe54ee07545516e21 (diff) |
Add SwTextBoxHelper::findShapes
It builds a textbox -> shape map, so methods interested to pick the
shape instead of a shape's textbox can call it and act accordingly if
their textbox is in the map.
Change-Id: I0f30d64a284eb461f462ed6c0a36c88271153f04
Diffstat (limited to 'sw/inc/textboxhelper.hxx')
-rw-r--r-- | sw/inc/textboxhelper.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx index c7ba2f466b6b..8b4856415245 100644 --- a/sw/inc/textboxhelper.hxx +++ b/sw/inc/textboxhelper.hxx @@ -69,6 +69,8 @@ public: /// Look up TextFrames in a document, which are in fact TextBoxes. static std::list<SwFrmFmt*> findTextBoxes(const SwDoc* pDoc); + /// Build a textbox -> shape format map. + static std::map<SwFrmFmt*, SwFrmFmt*> findShapes(const SwDoc* pDoc); /// Count number of shapes in the document, excluding TextBoxes. static sal_Int32 getCount(SdrPage* pPage, std::list<SwFrmFmt*>& rTextBoxes); /// Get a shape by index, excluding TextBoxes. |