diff options
Diffstat (limited to 'framework/source/fwe')
6 files changed, 37 insertions, 0 deletions
diff --git a/framework/source/fwe/dispatch/interaction.cxx b/framework/source/fwe/dispatch/interaction.cxx index 2f17a19eaa86..ef851093e70e 100644 --- a/framework/source/fwe/dispatch/interaction.cxx +++ b/framework/source/fwe/dispatch/interaction.cxx @@ -26,6 +26,8 @@ using namespace ::com::sun::star; namespace framework{ +namespace { + /*-************************************************************************************************************ @short declaration of special continuation for filter selection @descr Sometimes filter detection during loading document failed. Then we need a possibility @@ -63,6 +65,8 @@ class ContinuationFilterSelect : public comphelper::OInteraction< css::document: }; // class ContinuationFilterSelect +} + // initialize continuation with right start values ContinuationFilterSelect::ContinuationFilterSelect() @@ -180,6 +184,8 @@ uno::Reference < task::XInteractionRequest > RequestFilterSelect::GetRequest() return mxImpl.get(); } +namespace { + class InteractionRequest_Impl : public ::cppu::WeakImplHelper< css::task::XInteractionRequest > { uno::Any m_aRequest; @@ -197,6 +203,8 @@ public: virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations() override; }; +} + uno::Any SAL_CALL InteractionRequest_Impl::getRequest() { return m_aRequest; diff --git a/framework/source/fwe/helper/documentundoguard.cxx b/framework/source/fwe/helper/documentundoguard.cxx index c4aac1619b1e..5f7d16041caa 100644 --- a/framework/source/fwe/helper/documentundoguard.cxx +++ b/framework/source/fwe/helper/documentundoguard.cxx @@ -43,6 +43,9 @@ namespace framework typedef ::cppu::WeakImplHelper < XUndoManagerListener > UndoManagerContextListener_Base; + + namespace { + class UndoManagerContextListener : public UndoManagerContextListener_Base { public: @@ -97,6 +100,8 @@ namespace framework bool m_documentDisposed; }; + } + void SAL_CALL UndoManagerContextListener::undoActionAdded( const UndoManagerEvent& ) { // not interested in diff --git a/framework/source/fwe/helper/undomanagerhelper.cxx b/framework/source/fwe/helper/undomanagerhelper.cxx index 080b70eef4c6..a621a39ae320 100644 --- a/framework/source/fwe/helper/undomanagerhelper.cxx +++ b/framework/source/fwe/helper/undomanagerhelper.cxx @@ -67,6 +67,8 @@ namespace framework //= UndoActionWrapper + namespace { + class UndoActionWrapper : public SfxUndoAction { public: @@ -84,6 +86,8 @@ namespace framework const Reference< XUndoAction > m_xUndoAction; }; + } + UndoActionWrapper::UndoActionWrapper( Reference< XUndoAction > const& i_undoAction ) :SfxUndoAction() ,m_xUndoAction( i_undoAction ) @@ -136,6 +140,8 @@ namespace framework //= UndoManagerRequest + namespace { + class UndoManagerRequest : public ::comphelper::AnyEvent { public: @@ -187,6 +193,8 @@ namespace framework ::osl::Condition m_finishCondition; }; + } + //= UndoManagerHelper_Impl class UndoManagerHelper_Impl : public SfxUndoListener diff --git a/framework/source/fwe/xml/menudocumenthandler.cxx b/framework/source/fwe/xml/menudocumenthandler.cxx index 1e69c23e5b2d..144c6c600d22 100644 --- a/framework/source/fwe/xml/menudocumenthandler.cxx +++ b/framework/source/fwe/xml/menudocumenthandler.cxx @@ -92,12 +92,16 @@ using namespace ::com::sun::star::ui; namespace framework { +namespace { + struct MenuStyleItem { sal_Int16 nBit; const char* attrName; }; +} + const MenuStyleItem MenuItemStyles[ ] = { { css::ui::ItemStyle::ICON, ATTRIBUTE_ITEMSTYLE_IMAGE }, { css::ui::ItemStyle::TEXT, ATTRIBUTE_ITEMSTYLE_TEXT }, diff --git a/framework/source/fwe/xml/statusbardocumenthandler.cxx b/framework/source/fwe/xml/statusbardocumenthandler.cxx index 18b6388d41d3..43d6cc12e811 100644 --- a/framework/source/fwe/xml/statusbardocumenthandler.cxx +++ b/framework/source/fwe/xml/statusbardocumenthandler.cxx @@ -126,12 +126,16 @@ static void ExtractStatusbarItemParameters( } } +namespace { + struct StatusBarEntryProperty { OReadStatusBarDocumentHandler::StatusBar_XML_Namespace nNamespace; char aEntryName[20]; }; +} + StatusBarEntryProperty const StatusBarEntries[OReadStatusBarDocumentHandler::SB_XML_ENTRY_COUNT] = { { OReadStatusBarDocumentHandler::SB_NS_STATUSBAR, ELEMENT_STATUSBAR }, diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx index 7089623094b7..1ded389cdcce 100644 --- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx +++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx @@ -81,12 +81,16 @@ static void ExtractToolbarParameters( const Sequence< PropertyValue >& rProp, } } +namespace { + struct ToolboxStyleItem { sal_Int16 nBit; const char* attrName; }; +} + const ToolboxStyleItem Styles[ ] = { { css::ui::ItemStyle::RADIO_CHECK, ATTRIBUTE_ITEMSTYLE_RADIO }, { css::ui::ItemStyle::ALIGN_LEFT, ATTRIBUTE_ITEMSTYLE_LEFT }, @@ -100,12 +104,16 @@ const ToolboxStyleItem Styles[ ] = { sal_Int32 const nStyleItemEntries = SAL_N_ELEMENTS(Styles); +namespace { + struct ToolBarEntryProperty { OReadToolBoxDocumentHandler::ToolBox_XML_Namespace nNamespace; char aEntryName[20]; }; +} + ToolBarEntryProperty const ToolBoxEntries[OReadToolBoxDocumentHandler::TB_XML_ENTRY_COUNT] = { { OReadToolBoxDocumentHandler::TB_NS_TOOLBAR, ELEMENT_TOOLBAR }, |