diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-28 14:41:12 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-28 14:48:11 -0400 |
commit | 6a4dd39379a8521a3c870d46b9702e0597a3333f (patch) | |
tree | f9df11fee5cc108ef70391eaf000af02b1bdf73c /include/editeng | |
parent | 53bb6c9871482e6d1cac133d79eb9c58f8109fc8 (diff) |
Rename SectionAttribute to Section.
It fits better this way.
Change-Id: I139de7858e999a6dd26633a548c47634dfad8a65
Diffstat (limited to 'include/editeng')
-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); }; } |