summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/viewshe3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/viewshe3.cxx')
-rw-r--r--sd/source/ui/view/viewshe3.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index 07e2e5613d44..72448daab8a2 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -86,7 +86,7 @@ namespace sd {
*/
void ViewShell::GetMenuState( SfxItemSet &rSet )
{
- if( SFX_ITEM_AVAILABLE == rSet.GetItemState( SID_STYLE_FAMILY ) )
+ if( SFX_ITEM_DEFAULT == rSet.GetItemState( SID_STYLE_FAMILY ) )
{
sal_uInt16 nFamily = (sal_uInt16)GetDocSh()->GetStyleFamily();
@@ -112,17 +112,17 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
rSet.Put(SfxUInt16Item(SID_STYLE_FAMILY, nFamily ));
}
- if(SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_GETUNDOSTRINGS))
+ if(SFX_ITEM_DEFAULT == rSet.GetItemState(SID_GETUNDOSTRINGS))
{
ImpGetUndoStrings(rSet);
}
- if(SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_GETREDOSTRINGS))
+ if(SFX_ITEM_DEFAULT == rSet.GetItemState(SID_GETREDOSTRINGS))
{
ImpGetRedoStrings(rSet);
}
- if(SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_UNDO))
+ if(SFX_ITEM_DEFAULT == rSet.GetItemState(SID_UNDO))
{
::svl::IUndoManager* pUndoManager = ImpGetUndoManager();
bool bActivate(false);
@@ -149,7 +149,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
}
}
- if(SFX_ITEM_AVAILABLE == rSet.GetItemState(SID_REDO))
+ if(SFX_ITEM_DEFAULT == rSet.GetItemState(SID_REDO))
{
::svl::IUndoManager* pUndoManager = ImpGetUndoManager();
bool bActivate(false);