diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-20 14:56:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-20 22:57:13 -0400 |
commit | 9ca5e3da5ca5f68ced1917cf38773fd1060bede4 (patch) | |
tree | d59714e40989117ffd3a1be176227e07aea926a6 /include/editeng/editobj.hxx | |
parent | vcl: ppdparser.cxx: clean up printf mess to build with dbglevel=11 (diff) | |
download | core-9ca5e3da5ca5f68ced1917cf38773fd1060bede4.tar.gz core-9ca5e3da5ca5f68ced1917cf38773fd1060bede4.zip |
Add a means to retrieve all formatting attributes in non-overlapping sections.
Change-Id: Id04dffc135fad6bb66ea157cd280dd481cb80117
Diffstat (limited to 'include/editeng/editobj.hxx')
-rw-r--r-- | include/editeng/editobj.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx index 570615f5e254..c61f682672da 100644 --- a/include/editeng/editobj.hxx +++ b/include/editeng/editobj.hxx @@ -45,6 +45,7 @@ namespace editeng { class FieldUpdater; class FieldUpdaterImpl; +struct SectionAttribute; } @@ -99,6 +100,18 @@ public: bool RemoveCharAttribs( sal_uInt16 nWhich = 0 ); + /** + * Get all attributes that are applied to this content, separated by + * sections. If multiple attributes are applied to the same section, the + * object representing that section will store multiple attributes. + * Sections never overlap each other; if an attribute was applied to [0-6] + * and another applied to [3-10], you would get 3 sections that are [0-3], + * [3-6] and [6-10]. + * + * <p>Note that this method skips field attributes.</p> + */ + void GetAllSectionAttributes( std::vector<editeng::SectionAttribute>& rAttrs ) const; + bool IsFieldObject() const; const SvxFieldItem* GetField() const; const SvxFieldData* GetFieldData(sal_Int32 nPara, size_t nPos, sal_Int32 nType) const; |