diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 20:34:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 08:12:10 -0600 |
commit | c7c40687f6d1e0f155dde44d8803a2e957797c08 (patch) | |
tree | 20e6807f1ded95c85d3477f8951caa62f352e954 /sfx2/source/doc/docmacromode.cxx | |
parent | ff0562fa4f7d8b7aceca16771d84db87d3f19756 (diff) |
Remove visual noise from sfx2
Change-Id: I0f556a386ce64d154b695c2a35f808c94b9f0b7a
Reviewed-on: https://gerrit.libreoffice.org/8310
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/doc/docmacromode.cxx')
-rw-r--r-- | sfx2/source/doc/docmacromode.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx index e7e8a701ffbc..5752b6cb1d0a 100644 --- a/sfx2/source/doc/docmacromode.cxx +++ b/sfx2/source/doc/docmacromode.cxx @@ -38,10 +38,10 @@ #include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> -//........................................................................ + namespace sfx2 { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::task::XInteractionHandler; @@ -67,9 +67,9 @@ namespace sfx2 namespace MacroExecMode = ::com::sun::star::document::MacroExecMode; - //==================================================================== + //= DocumentMacroMode_Data - //==================================================================== + struct DocumentMacroMode_Data { IMacroDocumentAccess& m_rDocumentAccess; @@ -84,12 +84,12 @@ namespace sfx2 } }; - //==================================================================== + //= helper - //==================================================================== + namespace { - //................................................................ + void lcl_showGeneralSfxErrorOnce( const Reference< XInteractionHandler >& rxHandler, const sal_Int32 nSfxErrorCode, sal_Bool& rbAlreadyShown ) { if ( rbAlreadyShown ) @@ -102,13 +102,13 @@ namespace sfx2 rbAlreadyShown = sal_True; } - //................................................................ + void lcl_showMacrosDisabledError( const Reference< XInteractionHandler >& rxHandler, sal_Bool& rbAlreadyShown ) { lcl_showGeneralSfxErrorOnce( rxHandler, ERRCODE_SFX_MACROS_SUPPORT_DISABLED, rbAlreadyShown ); } - //................................................................ + void lcl_showDocumentMacrosDisabledError( const Reference< XInteractionHandler >& rxHandler, sal_Bool& rbAlreadyShown ) { #ifdef MACOSX @@ -118,7 +118,7 @@ namespace sfx2 #endif } - //................................................................ + sal_Bool lcl_showMacroWarning( const Reference< XInteractionHandler >& rxHandler, const OUString& rDocumentLocation ) { @@ -128,9 +128,9 @@ namespace sfx2 } } - //==================================================================== + //= DocumentMacroMode - //==================================================================== + DocumentMacroMode::DocumentMacroMode( IMacroDocumentAccess& rDocumentAccess ) :m_pData( new DocumentMacroMode_Data( rDocumentAccess ) ) @@ -434,8 +434,8 @@ namespace sfx2 return bAllow; } -//........................................................................ + } // namespace sfx2 -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |