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/source/inc/templdgi.hxx | |
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/source/inc/templdgi.hxx')
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 12fe31533776..821695a1db81 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -158,6 +158,7 @@ protected: bCanEdit :1, bCanDel :1, bCanNew :1, + bCanHide :1, bWaterDisabled :1, bNewByExampleDisabled :1, bUpdateByExampleDisabled:1, @@ -183,9 +184,10 @@ protected: virtual void ClearFamilyList() = 0; virtual void ReplaceUpdateButtonByMenu(); - void NewHdl( void* ); + void NewHdl( void* ); void EditHdl( void* ); void DeleteHdl( void* ); + void HideHdl( void* ); sal_Bool Execute_Impl( sal_uInt16 nId, const String& rStr, const String& rRefStr, sal_uInt16 nFamily, sal_uInt16 nMask = 0, @@ -234,6 +236,7 @@ public: virtual void EnableEdit( sal_Bool b = sal_True ) { bCanEdit = b; } virtual void EnableDel( sal_Bool b = sal_True ) { bCanDel = b; } virtual void EnableNew( sal_Bool b = sal_True ) { bCanNew = b; } + virtual void EnableHide( sal_Bool b = sal_True ) { bCanHide = b; } ISfxTemplateCommon* GetISfxTemplateCommon() { return &aISfxTemplateCommon; } Window* GetWindow() { return pWindow; } @@ -250,6 +253,7 @@ public: inline sal_Bool CanEdit( void ) const { return bCanEdit; } inline sal_Bool CanDel( void ) const { return bCanDel; } inline sal_Bool CanNew( void ) const { return bCanNew; } + inline sal_Bool CanHide( void ) const { return bCanHide; } // normaly for derivates from SvTreeListBoxes, but in this case the dialog handles context menus virtual PopupMenu* CreateContextMenu( void ); |