diff options
author | Tobias Lippert <drtl@fastmail.fm> | 2014-06-26 19:59:15 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-23 11:07:54 +0000 |
commit | 8f8ee6fd2c50572c44363a6d5d23bd9d192fe08d (patch) | |
tree | 24e78f489621bf5f6a031433b6e333ee49837aba /include/svl | |
parent | fd641c7b23ce4205c29fc0c564b73336cb2cfb07 (diff) |
fdo#76754 Add Positions by StyleSheetFamily to IndexedStyleSheets
Change-Id: I4eade2d00d145d8f65ccd70a1c6bbd0a134a1ad5
Reviewed-on: https://gerrit.libreoffice.org/10346
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/IndexedStyleSheets.hxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/svl/IndexedStyleSheets.hxx b/include/svl/IndexedStyleSheets.hxx index 350628f274e3..bc5dea7f37a2 100644 --- a/include/svl/IndexedStyleSheets.hxx +++ b/include/svl/IndexedStyleSheets.hxx @@ -12,6 +12,7 @@ #include <sal/types.h> +#include <rsc/rscsfx.hxx> #include <rtl/ustring.hxx> #include <rtl/ref.hxx> @@ -156,10 +157,15 @@ public: GetNthStyleSheetThatMatchesPredicate(unsigned n, StyleSheetPredicate& predicate, unsigned startAt = 0); + /** Get the positions of the style sheets which belong to a certain family. + */ + const std::vector<unsigned>& + GetStyleSheetPositionsByFamily(SfxStyleFamily) const; + private: /** Register the position of a styleName in the index */ void - Register(const rtl::OUString& styleName, unsigned pos); + Register(const SfxStyleSheetBase& style, unsigned pos); typedef std::vector<rtl::Reference<SfxStyleSheetBase> > VectorType; /** Vector with the stylesheets to allow for index-based access. @@ -174,6 +180,8 @@ private: /** A map which stores the positions of style sheets by their name */ MapType mPositionsByName; + + std::vector<std::vector<unsigned> > mStyleSheetPositionsByFamily; }; } /* namespace svl */ |