diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editobj.hxx | 14 | ||||
-rw-r--r-- | include/editeng/section.hxx (renamed from include/editeng/sectionattribute.hxx) | 6 |
2 files changed, 9 insertions, 11 deletions
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx index 53b4cbfd0cb0..4dd026cf52cd 100644 --- a/include/editeng/editobj.hxx +++ b/include/editeng/editobj.hxx @@ -45,7 +45,7 @@ namespace editeng { class FieldUpdater; class FieldUpdaterImpl; -struct SectionAttribute; +struct Section; } @@ -101,14 +101,12 @@ 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]. + * Get all text sections in this content. Sections are non-overlapping + * segments of text split either by paragraph boundaries or format + * boundaries. Each section object contains all applied formats and/or a + * field item. */ - void GetAllSectionAttributes( std::vector<editeng::SectionAttribute>& rAttrs ) const; + void GetAllSections( std::vector<editeng::Section>& rAttrs ) const; bool IsFieldObject() const; const SvxFieldItem* GetField() const; diff --git a/include/editeng/sectionattribute.hxx b/include/editeng/section.hxx index eafd4e2e320c..4d9ebb60486d 100644 --- a/include/editeng/sectionattribute.hxx +++ b/include/editeng/section.hxx @@ -18,7 +18,7 @@ class SfxPoolItem; namespace editeng { -struct EDITENG_DLLPUBLIC SectionAttribute +struct EDITENG_DLLPUBLIC Section { size_t mnParagraph; size_t mnStart; @@ -26,8 +26,8 @@ struct EDITENG_DLLPUBLIC SectionAttribute std::vector<const SfxPoolItem*> maAttributes; - SectionAttribute(); - SectionAttribute(size_t nPara, size_t nStart, size_t nEnd); + Section(); + Section(size_t nPara, size_t nStart, size_t nEnd); }; } |