diff options
Diffstat (limited to 'sfx2/source/doc/sfxbasemodel.cxx')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 74b1497829bc..c841644cc98c 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -155,6 +155,8 @@ using ::com::sun::star::document::XUndoManager; using ::com::sun::star::document::XUndoAction; using ::com::sun::star::frame::XModel; +namespace { + /** This Listener is used to get notified when the XDocumentProperties of the XModel change. */ @@ -173,6 +175,8 @@ public: virtual void SAL_CALL modified( const lang::EventObject& ) override; }; +} + void SAL_CALL SfxDocInfoListener_Impl::modified( const lang::EventObject& ) { SolarMutexGuard aSolarGuard; @@ -316,6 +320,7 @@ struct IMPL_SfxBaseModel_DataContainer : public ::sfx2::IModifiableDocument // static member initialization. sal_Int64 IMPL_SfxBaseModel_DataContainer::g_nInstanceCounter = 0; +namespace { // Listener that forwards notifications from the PrintHelper to the "real" listeners class SfxPrintHelperListener_Impl : public ::cppu::WeakImplHelper< view::XPrintJobListener > @@ -330,6 +335,8 @@ public: virtual void SAL_CALL printJobEvent( const view::PrintJobEvent& rEvent ) override; }; +} + void SAL_CALL SfxPrintHelperListener_Impl::disposing( const lang::EventObject& ) { m_pData->m_xPrintable = nullptr; @@ -346,6 +353,8 @@ void SAL_CALL SfxPrintHelperListener_Impl::printJobEvent( const view::PrintJobEv } } +namespace { + // SfxOwnFramesLocker ==================================================================================== // allows to lock all the frames related to the provided SfxObjectShell class SfxOwnFramesLocker @@ -358,6 +367,8 @@ public: ~SfxOwnFramesLocker(); }; +} + SfxOwnFramesLocker::SfxOwnFramesLocker( SfxObjectShell const * pObjectShell ) { if ( !pObjectShell ) @@ -440,6 +451,8 @@ vcl::Window* SfxOwnFramesLocker::GetVCLWindow( const Reference< frame::XFrame >& return pWindow; } +namespace { + // SfxSaveGuard ==================================================================================== class SfxSaveGuard { @@ -457,6 +470,8 @@ class SfxSaveGuard ~SfxSaveGuard(); }; +} + SfxSaveGuard::SfxSaveGuard(const Reference< frame::XModel >& xModel , IMPL_SfxBaseModel_DataContainer* pData) : m_xModel ( xModel ) |