diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-25 15:24:42 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 18:07:12 +0100 |
commit | 2fd9c2bf9af0c50dae3af3dbe5e22965ccdb4ae7 (patch) | |
tree | 2a0438c371fbb51a3d2e919793802d6827e07fbd /sfx2/inc | |
parent | 36b7794d832dbc87c250ef02eee643c4ce68f87a (diff) |
Allow to hide styles in the "Styles & Formating" dialog
In its current state, the feature only hides the styles. Things to sort
out are:
+ Add some automatic filter to show hidden styles
+ Make the visibility persist in the file format
Change-Id: I5904f41bb567add7b6bf501c6c5297f9f149a915
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/sfx2/sfxsids.hrc | 1 | ||||
-rw-r--r-- | sfx2/inc/sfx2/tplpitem.hxx | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/inc/sfx2/sfxsids.hrc b/sfx2/inc/sfx2/sfxsids.hrc index 0998c65b53f4..34bc07f10d27 100644 --- a/sfx2/inc/sfx2/sfxsids.hrc +++ b/sfx2/inc/sfx2/sfxsids.hrc @@ -359,6 +359,7 @@ #define SID_STYLE_UPDATE_BY_EXAMPLE (SID_SFX_START + 556) #define SID_STYLE_DRAGHIERARCHIE (SID_SFX_START + 565) #define SID_STYLE_MASK (SID_SFX_START + 562) +#define SID_STYLE_HIDE (SID_SFX_START + 1603) #define SID_STYLE_UPD_BY_EX_NAME (SID_SFX_START + 1585) #define SID_STYLE_REFERENCE (SID_SFX_START + 1602) diff --git a/sfx2/inc/sfx2/tplpitem.hxx b/sfx2/inc/sfx2/tplpitem.hxx index 71cfba4924ef..58f0618443ae 100644 --- a/sfx2/inc/sfx2/tplpitem.hxx +++ b/sfx2/inc/sfx2/tplpitem.hxx @@ -24,6 +24,7 @@ #include <tools/string.hxx> #include <tools/rtti.hxx> #include <svl/flagitem.hxx> +#include <svl/style.hrc> class SFX2_DLLPUBLIC SfxTemplateItem: public SfxFlagItem { @@ -33,7 +34,7 @@ public: SfxTemplateItem(); SfxTemplateItem( sal_uInt16 nWhich, const String &rStyle, - sal_uInt16 nMask = 0xffff ); + sal_uInt16 nMask = SFXSTYLEBIT_ALL ); SfxTemplateItem( const SfxTemplateItem& ); const String& GetStyleName() const { return aStyle; } |