summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx20
1 files changed, 5 insertions, 15 deletions
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index 945df54659c0..69ddcae67924 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -408,21 +408,11 @@ void ToolbarsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > co
}
// Create commands for non-toolbars
- if ( m_aModuleIdentifier == "com.sun.star.text.TextDocument" ||
- m_aModuleIdentifier == "com.sun.star.text.WebDocument" ||
- m_aModuleIdentifier == "com.sun.star.text.GlobalDocument" ||
- m_aModuleIdentifier == "com.sun.star.drawing.DrawingDocument" ||
- m_aModuleIdentifier == "com.sun.star.presentation.PresentationDocument" ||
- m_aModuleIdentifier == "com.sun.star.sheet.SpreadsheetDocument" )
- {
- if ( m_aModuleIdentifier == "com.sun.star.drawing.DrawingDocument" ||
- m_aModuleIdentifier == "com.sun.star.presentation.PresentationDocument" )
- addCommand( m_xPopupMenu, ".uno:ColorControl", "" );
- else if ( m_aModuleIdentifier == "com.sun.star.sheet.SpreadsheetDocument" )
- addCommand( m_xPopupMenu, ".uno:InputLineVisible", "" );
- else
- addCommand( m_xPopupMenu, ".uno:InsertFormula", "" );
- }
+ if ( m_aModuleIdentifier == "com.sun.star.drawing.DrawingDocument" ||
+ m_aModuleIdentifier == "com.sun.star.presentation.PresentationDocument" )
+ addCommand( m_xPopupMenu, ".uno:ColorControl", "" );
+ else if ( m_aModuleIdentifier == "com.sun.star.sheet.SpreadsheetDocument" )
+ addCommand( m_xPopupMenu, ".uno:InputLineVisible", "" );
bool bAddCommand( true );
SvtCommandOptions aCmdOptions;