diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 17:52:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 06:42:45 -0600 |
commit | a67c2a12bccef06f1fb17d8fbae08e44f44c4392 (patch) | |
tree | 354b2448d2aa8259a05ceb4e82605f8e37176528 /comphelper/source/misc | |
parent | 65453d5aebdf851034632d5593f0a1023f7015fe (diff) |
Remove visual noise from comphelper
Change-Id: I7e5512b43240beee05404cff9d49a87d0217ea89
Reviewed-on: https://gerrit.libreoffice.org/8242
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'comphelper/source/misc')
32 files changed, 233 insertions, 233 deletions
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx index 20ad358ea80d..c01135ead098 100644 --- a/comphelper/source/misc/SelectionMultiplex.cxx +++ b/comphelper/source/misc/SelectionMultiplex.cxx @@ -21,18 +21,18 @@ #include <comphelper/SelectionMultiplex.hxx> #include <osl/diagnose.h> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::view; -//======================================================================== + //= OSelectionChangeListener -//======================================================================== + OSelectionChangeListener::~OSelectionChangeListener() { @@ -65,9 +65,9 @@ void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter) } } -//======================================================================== + //= OSelectionChangeMultiplexer -//======================================================================== + OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet, bool _bAutoReleaseSet) :m_xSet(_rxSet) @@ -149,8 +149,8 @@ void SAL_CALL OSelectionChangeMultiplexer::selectionChanged( const EventObject& if (m_pListener && !locked()) m_pListener->_selectionChanged(_rEvent); } -//......................................................................... + } -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessiblecomponenthelper.cxx b/comphelper/source/misc/accessiblecomponenthelper.cxx index 631670849042..61b94e427b62 100644 --- a/comphelper/source/misc/accessiblecomponenthelper.cxx +++ b/comphelper/source/misc/accessiblecomponenthelper.cxx @@ -19,19 +19,19 @@ #include <comphelper/accessiblecomponenthelper.hxx> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::accessibility; - //===================================================================== + //= OCommonAccessibleComponent - //===================================================================== + OCommonAccessibleComponent::OCommonAccessibleComponent( IMutex* _pExternalLock ) :OAccessibleContextHelper( _pExternalLock ) @@ -97,9 +97,9 @@ namespace comphelper return implGetBounds(); } - //===================================================================== + //= OAccessibleComponentHelper - //===================================================================== + OAccessibleComponentHelper::OAccessibleComponentHelper( IMutex* _pExternalLock ) :OCommonAccessibleComponent( _pExternalLock ) @@ -141,9 +141,9 @@ namespace comphelper return OCommonAccessibleComponent::getBounds( ); } - //===================================================================== + //= OAccessibleExtendedComponentHelper - //===================================================================== + OAccessibleExtendedComponentHelper::OAccessibleExtendedComponentHelper( IMutex* _pExternalLock ) :OCommonAccessibleComponent( _pExternalLock ) @@ -185,9 +185,9 @@ namespace comphelper return OCommonAccessibleComponent::getBounds( ); } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx index 009853485a19..dc9d6ec57565 100644 --- a/comphelper/source/misc/accessiblecontexthelper.cxx +++ b/comphelper/source/misc/accessiblecontexthelper.cxx @@ -24,10 +24,10 @@ #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <comphelper/accessibleeventnotifier.hxx> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; @@ -35,9 +35,9 @@ namespace comphelper IMutex::~IMutex() {} - //===================================================================== + //= OContextHelper_Impl - //===================================================================== + /** implementation class for OAccessibleContextHelper. No own thread safety! */ class OContextHelper_Impl @@ -75,9 +75,9 @@ namespace comphelper m_aCreator = _rAcc; } - //===================================================================== + //= OAccessibleContextHelper - //===================================================================== + OAccessibleContextHelper::OAccessibleContextHelper( IMutex* _pExternalLock ) :OAccessibleContextHelper_Base( GetMutex() ) @@ -302,9 +302,9 @@ namespace comphelper return xParentContext; } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx b/comphelper/source/misc/accessibleeventnotifier.cxx index 97187c3fb1c4..9f9c90df6750 100644 --- a/comphelper/source/misc/accessibleeventnotifier.cxx +++ b/comphelper/source/misc/accessibleeventnotifier.cxx @@ -31,9 +31,9 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::accessibility; using namespace ::comphelper; -//===================================================================== + //= AccessibleEventNotifier -//===================================================================== + namespace { @@ -143,10 +143,10 @@ namespace } } -//......................................................................... + namespace comphelper { -//......................................................................... + AccessibleEventNotifier::TClientId AccessibleEventNotifier::registerClient( ) @@ -293,8 +293,8 @@ namespace comphelper } } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessiblekeybindinghelper.cxx b/comphelper/source/misc/accessiblekeybindinghelper.cxx index 0455108a2700..5e739edf9205 100644 --- a/comphelper/source/misc/accessiblekeybindinghelper.cxx +++ b/comphelper/source/misc/accessiblekeybindinghelper.cxx @@ -20,19 +20,19 @@ #include <comphelper/accessiblekeybindinghelper.hxx> -//.............................................................................. + namespace comphelper { -//.............................................................................. + using namespace ::com::sun::star; // MT 04/2003: was ::drafts::com::sun::star - otherwise to many changes using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::accessibility; - //============================================================================== + // OAccessibleKeyBindingHelper - //============================================================================== + OAccessibleKeyBindingHelper::OAccessibleKeyBindingHelper() { @@ -97,8 +97,8 @@ namespace comphelper -//.............................................................................. + } // namespace comphelper -//.............................................................................. + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessibleselectionhelper.cxx b/comphelper/source/misc/accessibleselectionhelper.cxx index 41b5c7727040..35c6622a75a8 100644 --- a/comphelper/source/misc/accessibleselectionhelper.cxx +++ b/comphelper/source/misc/accessibleselectionhelper.cxx @@ -19,19 +19,19 @@ #include <comphelper/accessibleselectionhelper.hxx> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::accessibility; - //===================================================================== + //= OCommonAccessibleSelection - //===================================================================== + OCommonAccessibleSelection::OCommonAccessibleSelection( ) { @@ -105,9 +105,9 @@ namespace comphelper implSelect( nSelectedChildIndex, sal_False ); } - //===================================================================== + //= OAccessibleSelectionHelper - //===================================================================== + OAccessibleSelectionHelper::OAccessibleSelectionHelper( IMutex* _pExternalLock ) : OAccessibleComponentHelper(_pExternalLock) { @@ -173,8 +173,8 @@ namespace comphelper OCommonAccessibleSelection::deselectAccessibleChild( nSelectedChildIndex ); } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx index 51a6ef8435d6..e088cd197764 100644 --- a/comphelper/source/misc/accessibletexthelper.cxx +++ b/comphelper/source/misc/accessibletexthelper.cxx @@ -29,10 +29,10 @@ #include <algorithm> -//.............................................................................. + namespace comphelper { -//.............................................................................. + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -40,9 +40,9 @@ namespace comphelper using namespace ::com::sun::star::beans; using namespace ::com::sun::star::accessibility; - //============================================================================== + // OCommonAccessibleText - //============================================================================== + OCommonAccessibleText::OCommonAccessibleText() { @@ -768,9 +768,9 @@ namespace comphelper return true; } - //============================================================================== + // OAccessibleTextHelper - //============================================================================== + OAccessibleTextHelper::OAccessibleTextHelper( IMutex* _pExternalLock ) :OAccessibleExtendedComponentHelper( _pExternalLock ) @@ -883,8 +883,8 @@ namespace comphelper -//.............................................................................. + } // namespace comphelper -//.............................................................................. + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx index 3c37394165db..70164fb0a74a 100644 --- a/comphelper/source/misc/accessiblewrapper.cxx +++ b/comphelper/source/misc/accessiblewrapper.cxx @@ -29,14 +29,14 @@ using namespace ::com::sun::star::accessibility; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -//............................................................................. + namespace comphelper { -//............................................................................. - //========================================================================= + + //= OWrappedAccessibleChildrenManager - //========================================================================= + struct RemoveEventListener : public ::std::unary_function< AccessibleMap::value_type, void > @@ -295,9 +295,9 @@ namespace comphelper } } - //========================================================================= + //= OAccessibleWrapper (implementation) - //========================================================================= + OAccessibleWrapper::OAccessibleWrapper( const Reference< XComponentContext >& _rxContext, const Reference< XAccessible >& _rxInnerAccessible, const Reference< XAccessible >& _rxParentAccessible ) @@ -365,9 +365,9 @@ namespace comphelper return xContext; } - //========================================================================= + //= OAccessibleWrapper (implementation) - //========================================================================= + OAccessibleContextWrapperHelper::OAccessibleContextWrapperHelper( const Reference< XComponentContext >& _rxContext, @@ -517,9 +517,9 @@ namespace comphelper OComponentProxyAggregationHelper::disposing( _rEvent ); } - //==================================================================== + //= OAccessibleContextWrapper - //==================================================================== + IMPLEMENT_FORWARD_XINTERFACE2( OAccessibleContextWrapper, OAccessibleContextWrapper_CBase, OAccessibleContextWrapperHelper ) @@ -666,8 +666,8 @@ namespace comphelper WeakComponentImplHelperBase::dispose(); } -//............................................................................. + } // namespace accessibility -//............................................................................. + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx index f852950ca728..6cf56370a006 100644 --- a/comphelper/source/misc/accimplaccess.cxx +++ b/comphelper/source/misc/accimplaccess.cxx @@ -25,10 +25,10 @@ #include <set> #include <string.h> -//......................................................................... + namespace comphelper { -//......................................................................... + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; @@ -39,9 +39,9 @@ namespace comphelper using ::com::sun::star::accessibility::XAccessible; using ::com::sun::star::accessibility::XAccessibleContext; - //===================================================================== + //= OAccImpl_Impl - //===================================================================== + struct OAccImpl_Impl { Reference< XAccessible > m_xAccParent; @@ -49,9 +49,9 @@ namespace comphelper }; - //===================================================================== + //= OAccessibleImplementationAccess - //===================================================================== + OAccessibleImplementationAccess::OAccessibleImplementationAccess( ) :m_pImpl( new OAccImpl_Impl ) @@ -150,9 +150,9 @@ namespace comphelper return ( NULL != pImplementation ); } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/anycompare.cxx b/comphelper/source/misc/anycompare.cxx index 9d1c1642002f..5143b172cfdd 100644 --- a/comphelper/source/misc/anycompare.cxx +++ b/comphelper/source/misc/anycompare.cxx @@ -57,9 +57,9 @@ namespace comphelper using ::com::sun::star::util::Time; using ::com::sun::star::util::DateTime; - //================================================================================================================== + //= DatePredicateLess - //================================================================================================================== + class DatePredicateLess : public IKeyPredicateLess { public: @@ -88,9 +88,9 @@ namespace comphelper } }; - //================================================================================================================== + //= TimePredicateLess - //================================================================================================================== + class TimePredicateLess : public IKeyPredicateLess { public: @@ -124,9 +124,9 @@ namespace comphelper } }; - //================================================================================================================== + //= DateTimePredicateLess - //================================================================================================================== + class DateTimePredicateLess : public IKeyPredicateLess { public: @@ -245,8 +245,8 @@ namespace comphelper return pComparator; } -//...................................................................................................................... + } // namespace comphelper -//...................................................................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/anytostring.cxx b/comphelper/source/misc/anytostring.cxx index 5fa3028aba0c..75e881b0ba7b 100644 --- a/comphelper/source/misc/anytostring.cxx +++ b/comphelper/source/misc/anytostring.cxx @@ -308,7 +308,7 @@ void appendValue( OUStringBuffer & buf, } // anon namespace -//============================================================================== + OUString anyToString( uno::Any const & value ) { OUStringBuffer buf; diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx index 897a840b9841..d419580cf0e5 100644 --- a/comphelper/source/misc/asyncnotification.cxx +++ b/comphelper/source/misc/asyncnotification.cxx @@ -28,14 +28,14 @@ #include <functional> #include <algorithm> -//........................................................................ + namespace comphelper { -//........................................................................ - //==================================================================== + + //= AnyEvent - //==================================================================== + AnyEvent::AnyEvent() :m_refCount( 0 ) @@ -64,9 +64,9 @@ namespace comphelper return m_refCount; } - //==================================================================== + //= ProcessableEvent - //==================================================================== + struct ProcessableEvent { AnyEventRef aEvent; @@ -92,10 +92,10 @@ namespace comphelper } }; - //==================================================================== + typedef ::std::deque< ProcessableEvent > EventQueue; - //==================================================================== + struct EqualProcessor : public ::std::unary_function< ProcessableEvent, bool > { const ::rtl::Reference< IEventProcessor >& rProcessor; @@ -107,9 +107,9 @@ namespace comphelper } }; - //==================================================================== + //= EventNotifierImpl - //==================================================================== + struct EventNotifierImpl { ::osl::Mutex aMutex; @@ -129,9 +129,9 @@ namespace comphelper EventNotifierImpl& operator=( const EventNotifierImpl& ); // never implemented }; - //==================================================================== + //= AsyncEventNotifier - //==================================================================== + AsyncEventNotifier::AsyncEventNotifier(char const * name): Thread(name), m_pImpl(new EventNotifierImpl) @@ -234,8 +234,8 @@ namespace comphelper while ( true ); } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/comphelper_module.cxx b/comphelper/source/misc/comphelper_module.cxx index f199465d9773..cabeb12f6934 100644 --- a/comphelper/source/misc/comphelper_module.cxx +++ b/comphelper/source/misc/comphelper_module.cxx @@ -20,10 +20,10 @@ #include "comphelper_module.hxx" -//........................................................................ + namespace comphelper { namespace module { -//........................................................................ + struct ComphelperModuleCreator { @@ -44,8 +44,8 @@ namespace comphelper { namespace module return theComphelperModuleInstance::get().m_aComphelperModule; } -//........................................................................ + } } // namespace comphelper::module -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/comphelper_services.cxx b/comphelper/source/misc/comphelper_services.cxx index 4fff696dbd45..af4e88e0874c 100644 --- a/comphelper/source/misc/comphelper_services.cxx +++ b/comphelper/source/misc/comphelper_services.cxx @@ -36,10 +36,10 @@ extern void createRegistryInfo_Map(); extern void createRegistryInfo_OSimpleLogRing(); extern void createRegistryInfo_OOfficeRestartManager(); -//........................................................................ + namespace comphelper { namespace module { -//........................................................................ + namespace { @@ -71,9 +71,9 @@ namespace comphelper { namespace module theInitializer::get(); } -//........................................................................ + } } // namespace comphelper::module -//........................................................................ + extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL comphelp_component_getFactory( const sal_Char* pImplementationName, SAL_UNUSED_PARAMETER void*, diff --git a/comphelper/source/misc/componentbase.cxx b/comphelper/source/misc/componentbase.cxx index 0d13cf26f87a..da274feefc5f 100644 --- a/comphelper/source/misc/componentbase.cxx +++ b/comphelper/source/misc/componentbase.cxx @@ -23,19 +23,19 @@ #include <com/sun/star/lang/NotInitializedException.hpp> #include <com/sun/star/lang/DisposedException.hpp> -//........................................................................ + namespace comphelper { -//........................................................................ + using ::com::sun::star::lang::NotInitializedException; using ::com::sun::star::lang::DisposedException; using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; - //==================================================================== + //= ComponentBase - //==================================================================== + void ComponentBase::impl_checkDisposed_throw() const { @@ -56,8 +56,8 @@ namespace comphelper return NULL; } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx index 4b1c44fcd045..81aa5967bdc9 100644 --- a/comphelper/source/misc/componentmodule.cxx +++ b/comphelper/source/misc/componentmodule.cxx @@ -24,10 +24,10 @@ #include <vector> -//........................................................................ + namespace comphelper { -//........................................................................ + using namespace ::cppu; using ::com::sun::star::uno::Sequence; @@ -40,9 +40,9 @@ namespace comphelper typedef ::std::vector< ComponentDescription > ComponentDescriptions; - //========================================================================= + //= OModuleImpl - //========================================================================= + /** implementation for <type>OModule</type>. not threadsafe, has to be guarded by it's owner */ class OModuleImpl @@ -64,9 +64,9 @@ namespace comphelper { } - //========================================================================= + //= OModule - //========================================================================= + OModule::OModule() : m_nClients(0) @@ -160,8 +160,8 @@ namespace comphelper return NULL; } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx index a690658ee84e..31b9e56d89ed 100644 --- a/comphelper/source/misc/docpasswordhelper.cxx +++ b/comphelper/source/misc/docpasswordhelper.cxx @@ -41,7 +41,7 @@ using namespace ::com::sun::star; namespace comphelper { -// ============================================================================ + static uno::Sequence< sal_Int8 > GeneratePBKDF2Hash( const OUString& aPassword, const uno::Sequence< sal_Int8 >& aSalt, sal_Int32 nCount, sal_Int32 nHashLength ) { @@ -63,13 +63,13 @@ static uno::Sequence< sal_Int8 > GeneratePBKDF2Hash( const OUString& aPassword, return aResult; } -// ============================================================================ + IDocPasswordVerifier::~IDocPasswordVerifier() { } -// ============================================================================ + uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswordInfo( const OUString& aPassword ) { uno::Sequence< beans::PropertyValue > aResult; @@ -94,7 +94,7 @@ uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswo return aResult; } -// ============================================================================ + bool DocPasswordHelper::IsModifyPasswordCorrect( const OUString& aPassword, const uno::Sequence< beans::PropertyValue >& aInfo ) { bool bResult = false; @@ -131,7 +131,7 @@ bool DocPasswordHelper::IsModifyPasswordCorrect( const OUString& aPassword, cons return bResult; } -// ============================================================================ + sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32( const OUString& aUString ) { @@ -208,7 +208,7 @@ sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32( return nResult; } -// ============================================================================ + sal_uInt16 DocPasswordHelper::GetXLHashAsUINT16( const OUString& aUString, rtl_TextEncoding nEnc ) @@ -233,7 +233,7 @@ sal_uInt16 DocPasswordHelper::GetXLHashAsUINT16( return nResult; } -// ============================================================================ + Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( const OUString& aUString, rtl_TextEncoding nEnc ) @@ -246,7 +246,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( return aResult; } -// ============================================================================ + /*static*/ uno::Sequence< sal_Int8 > DocPasswordHelper::GenerateRandomByteSequence( sal_Int32 nLength ) { uno::Sequence< sal_Int8 > aResult( nLength ); @@ -262,7 +262,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( } -// ============================================================================ + /*static*/ uno::Sequence< sal_Int8 > DocPasswordHelper::GenerateStd97Key( const OUString& aPassword, const uno::Sequence< sal_Int8 >& aDocId ) { uno::Sequence< sal_Int8 > aResultKey; @@ -280,7 +280,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( return aResultKey; } -// ============================================================================ + /*static*/ uno::Sequence< sal_Int8 > DocPasswordHelper::GenerateStd97Key( const sal_uInt16 pPassData[16], const uno::Sequence< sal_Int8 >& aDocId ) { uno::Sequence< sal_Int8 > aResultKey; @@ -291,7 +291,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( return aResultKey; } -// ============================================================================ + /*static*/ uno::Sequence< sal_Int8 > DocPasswordHelper::GenerateStd97Key( const sal_uInt16 pPassData[16], const sal_uInt8 pDocId[16] ) { uno::Sequence< sal_Int8 > aResultKey; @@ -346,7 +346,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( } -// ============================================================================ + /*static*/ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > DocPasswordHelper::requestAndVerifyDocPassword( IDocPasswordVerifier& rVerifier, diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx index d340d6e08080..380b0824883e 100644 --- a/comphelper/source/misc/docpasswordrequest.cxx +++ b/comphelper/source/misc/docpasswordrequest.cxx @@ -43,7 +43,7 @@ using ::com::sun::star::task::XInteractionRequest; namespace comphelper { -// ============================================================================ + class AbortContinuation : public ::cppu::WeakImplHelper1< XInteractionAbort > { @@ -59,7 +59,7 @@ private: bool mbSelected; }; -// ============================================================================ + class PasswordContinuation : public ::cppu::WeakImplHelper1< XInteractionPassword2 > { @@ -87,7 +87,7 @@ private: bool mbSelected; }; -// ============================================================================ + SimplePasswordRequest::SimplePasswordRequest( PasswordRequestMode eMode ) : mpAbort( NULL ) @@ -126,7 +126,7 @@ Sequence< Reference< XInteractionContinuation > > SAL_CALL SimplePasswordRequest return maContinuations; } -// ============================================================================ + DocPasswordRequest::DocPasswordRequest( DocPasswordRequestType eType, PasswordRequestMode eMode, const OUString& rDocumentName, bool bPasswordToModify ) @@ -192,7 +192,7 @@ Sequence< Reference< XInteractionContinuation > > SAL_CALL DocPasswordRequest::g return maContinuations; } -// ============================================================================ + } // namespace comphelper diff --git a/comphelper/source/misc/documentinfo.cxx b/comphelper/source/misc/documentinfo.cxx index 617455ee6cbf..9a9eabec01b9 100644 --- a/comphelper/source/misc/documentinfo.cxx +++ b/comphelper/source/misc/documentinfo.cxx @@ -34,9 +34,9 @@ #include <boost/current_function.hpp> -//........................................................................ + namespace comphelper { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::UNO_QUERY; @@ -54,9 +54,9 @@ namespace comphelper { using ::com::sun::star::uno::XInterface; using ::com::sun::star::frame::XFrame; - //==================================================================== + //= helper - //==================================================================== + namespace { OUString lcl_getTitle( const Reference< XInterface >& _rxComponent ) @@ -68,9 +68,9 @@ namespace comphelper { } } - //==================================================================== + //= DocumentInfo - //==================================================================== + OUString DocumentInfo::getDocumentTitle( const Reference< XModel >& _rxDocument ) { @@ -177,8 +177,8 @@ namespace comphelper { return sTitle; } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/ihwrapnofilter.cxx b/comphelper/source/misc/ihwrapnofilter.cxx index d6af85a075df..4f9d5f59a761 100644 --- a/comphelper/source/misc/ihwrapnofilter.cxx +++ b/comphelper/source/misc/ihwrapnofilter.cxx @@ -22,10 +22,10 @@ #include <cppuhelper/supportsservice.hxx> #include <com/sun/star/document/NoSuchFilterRequest.hpp> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star; diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx index 93bbbec7277d..f6b269b867b9 100644 --- a/comphelper/source/misc/instancelocker.cxx +++ b/comphelper/source/misc/instancelocker.cxx @@ -34,9 +34,9 @@ using namespace ::com::sun::star; -// ==================================================================== + // OInstanceLocker -// ==================================================================== + OInstanceLocker::OInstanceLocker( const uno::Reference< uno::XComponentContext >& xContext ) @@ -230,9 +230,9 @@ uno::Reference< uno::XInterface > SAL_CALL OInstanceLocker::Create( -// ==================================================================== + // OLockListener -// ==================================================================== + OLockListener::OLockListener( const uno::WeakReference< lang::XComponent >& xWrapper, diff --git a/comphelper/source/misc/interaction.cxx b/comphelper/source/misc/interaction.cxx index 3263b0667312..db0c965d58ce 100644 --- a/comphelper/source/misc/interaction.cxx +++ b/comphelper/source/misc/interaction.cxx @@ -20,17 +20,17 @@ #include <comphelper/interaction.hxx> #include <osl/diagnose.h> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::task; - //========================================================================= + //= OInteractionPassword - //========================================================================= + void SAL_CALL OInteractionPassword::setPassword( const OUString& _Password ) throw (RuntimeException, std::exception) { @@ -43,9 +43,9 @@ namespace comphelper return m_sPassword; } - //========================================================================= + //= OInteractionRequest - //========================================================================= + OInteractionRequest::OInteractionRequest(const Any& _rRequestDescription) :m_aRequest(_rRequestDescription) @@ -76,9 +76,9 @@ namespace comphelper return m_aContinuations; } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/listenernotification.cxx b/comphelper/source/misc/listenernotification.cxx index 6368e5a7dc16..c933219cf819 100644 --- a/comphelper/source/misc/listenernotification.cxx +++ b/comphelper/source/misc/listenernotification.cxx @@ -21,17 +21,17 @@ #include <com/sun/star/lang/DisposedException.hpp> -//........................................................................ + namespace comphelper { -//........................................................................ + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; - //==================================================================== + //= OListenerContainer - //==================================================================== + OListenerContainer::OListenerContainer( ::osl::Mutex& _rMutex ) :m_aListeners( _rMutex ) @@ -109,8 +109,8 @@ namespace comphelper return !bCancelled; } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx index a4c1ceb46f32..1ffea6be341b 100644 --- a/comphelper/source/misc/logging.cxx +++ b/comphelper/source/misc/logging.cxx @@ -28,10 +28,10 @@ #include <rtl/ustrbuf.hxx> -//........................................................................ + namespace comphelper { -//........................................................................ + using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XComponentContext; @@ -46,9 +46,9 @@ namespace comphelper namespace LogLevel = ::com::sun::star::logging::LogLevel; - //==================================================================== + //= EventLogger_Impl - declaration - //==================================================================== + class EventLogger_Impl { private: @@ -73,9 +73,9 @@ namespace comphelper void impl_createLogger_nothrow(); }; - //==================================================================== + //= EventLogger_Impl - implementation - //==================================================================== + void EventLogger_Impl::impl_createLogger_nothrow() { @@ -94,9 +94,9 @@ namespace comphelper } } - //==================================================================== + //= EventLogger - //==================================================================== + EventLogger::EventLogger( const Reference< XComponentContext >& _rxContext, const sal_Char* _pAsciiLoggerName ) :m_pImpl( new EventLogger_Impl( _rxContext, OUString::createFromAscii( _pAsciiLoggerName ) ) ) @@ -202,9 +202,9 @@ namespace comphelper return false; } - //==================================================================== + //= ResourceBasedEventLogger_Data - //==================================================================== + struct ResourceBasedEventLogger_Data { /// the base name of the resource bundle @@ -267,9 +267,9 @@ namespace comphelper return sMessage; } - //==================================================================== + //= ResourceBasedEventLogger - //==================================================================== + ResourceBasedEventLogger::ResourceBasedEventLogger( const Reference< XComponentContext >& _rxContext, const sal_Char* _pResourceBundleBaseName, const sal_Char* _pAsciiLoggerName ) @@ -298,8 +298,8 @@ namespace comphelper return sMessage; } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index 2554e566dc3b..090357995b59 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -30,10 +30,10 @@ #include <functional> #include <algorithm> -//........................................................................ + namespace comphelper { -//........................................................................ + using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Sequence; @@ -46,9 +46,9 @@ namespace comphelper using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::beans::PropertyState_DIRECT_VALUE; - //==================================================================== + //= NamedValueCollection_Impl - //==================================================================== + typedef ::boost::unordered_map< OUString, Any, OUStringHash > NamedValueRepository; struct NamedValueCollection_Impl @@ -56,9 +56,9 @@ namespace comphelper NamedValueRepository aValues; }; - //==================================================================== + //= NamedValueCollection - //==================================================================== + NamedValueCollection::NamedValueCollection() :m_pImpl( new NamedValueCollection_Impl ) @@ -349,8 +349,8 @@ namespace comphelper return _out_rValues.getLength(); } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/numbers.cxx b/comphelper/source/misc/numbers.cxx index 9920e4a7519a..3f853812620f 100644 --- a/comphelper/source/misc/numbers.cxx +++ b/comphelper/source/misc/numbers.cxx @@ -24,10 +24,10 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/lang/Locale.hpp> -//......................................................................... + namespace comphelper { -//......................................................................... + namespace starbeans = ::com::sun::star::beans; namespace starlang = ::com::sun::star::lang; @@ -134,8 +134,8 @@ Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter, return aReturn; } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx index 218a61ba3608..054fe1772b73 100644 --- a/comphelper/source/misc/officeresourcebundle.cxx +++ b/comphelper/source/misc/officeresourcebundle.cxx @@ -26,10 +26,10 @@ #include <osl/diagnose.h> #include <rtl/ustrbuf.hxx> -//........................................................................ + namespace comphelper { -//........................................................................ + using ::com::sun::star::uno::Reference; using com::sun::star::resource::XResourceBundle; @@ -41,9 +41,9 @@ namespace comphelper using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::Any; - //==================================================================== + //= ResourceBundle_Impl - //==================================================================== + class ResourceBundle_Impl { private: @@ -184,9 +184,9 @@ namespace comphelper return m_xBundle.is(); } - //==================================================================== + //= OfficeResourceBundle - //==================================================================== + OfficeResourceBundle::OfficeResourceBundle( const Reference< XComponentContext >& _context, const sal_Char* _bundleBaseAsciiName ) :m_pImpl( new ResourceBundle_Impl( _context, OUString::createFromAscii( _bundleBaseAsciiName ) ) ) @@ -212,8 +212,8 @@ namespace comphelper return m_pImpl->hasString( _resourceId ); } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/proxyaggregation.cxx b/comphelper/source/misc/proxyaggregation.cxx index 92498c8eaa0e..c2b89e92d5a8 100644 --- a/comphelper/source/misc/proxyaggregation.cxx +++ b/comphelper/source/misc/proxyaggregation.cxx @@ -24,18 +24,18 @@ #include <comphelper/proxyaggregation.hxx> #include <com/sun/star/reflection/ProxyFactory.hpp> -//............................................................................. + namespace comphelper { -//............................................................................. + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::reflection; - //========================================================================= + //= OProxyAggregation - //========================================================================= + OProxyAggregation::OProxyAggregation( const Reference< XComponentContext >& _rxContext ) :m_xContext( _rxContext ) @@ -97,9 +97,9 @@ namespace comphelper // ourself) to this proxy, and thus delete it } - //========================================================================= + //= OComponentProxyAggregationHelper - //========================================================================= + OComponentProxyAggregationHelper::OComponentProxyAggregationHelper( const Reference< XComponentContext >& _rxContext, ::cppu::OBroadcastHelper& _rBHelper ) @@ -146,7 +146,7 @@ namespace comphelper { OSL_ENSURE( m_rBHelper.bDisposed, "OComponentProxyAggregationHelper::~OComponentProxyAggregationHelper: you should dispose your derived class in the dtor, if necessary!" ); // if this asserts, add the following to your derived class dtor: - // + // if ( !m_rBHelper.bDisposed ) // { // acquire(); // to prevent duplicate dtor calls @@ -185,9 +185,9 @@ namespace comphelper } } - //========================================================================= + //= OComponentProxyAggregation - //========================================================================= + OComponentProxyAggregation::OComponentProxyAggregation( const Reference< XComponentContext >& _rxContext, const Reference< XComponent >& _rxComponent ) @@ -260,8 +260,8 @@ namespace comphelper } -//............................................................................. + } // namespace comphelper -//............................................................................. + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/sharedmutex.cxx b/comphelper/source/misc/sharedmutex.cxx index 49a051e229ad..88ba0a519b82 100644 --- a/comphelper/source/misc/sharedmutex.cxx +++ b/comphelper/source/misc/sharedmutex.cxx @@ -20,14 +20,14 @@ #include "comphelper/sharedmutex.hxx" -//........................................................................ + namespace comphelper { -//........................................................................ - //======================================================================== + + //= SharedMutex - //======================================================================== + SharedMutex::SharedMutex() :m_pMutexImpl( new ::osl::Mutex ) @@ -48,8 +48,8 @@ namespace comphelper return *this; } -//........................................................................ + } // namespace comphelper -//........................................................................ + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/synchronousdispatch.cxx b/comphelper/source/misc/synchronousdispatch.cxx index 265c052b1436..468e1ade7c60 100644 --- a/comphelper/source/misc/synchronousdispatch.cxx +++ b/comphelper/source/misc/synchronousdispatch.cxx @@ -28,16 +28,16 @@ #include "comphelper/processfactory.hxx" -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star; -//==================================================================== + //= SynchronousDispatch -//==================================================================== + uno::Reference< lang::XComponent > SynchronousDispatch::dispatch( const uno::Reference< uno::XInterface > &xStartPoint, @@ -79,8 +79,8 @@ uno::Reference< lang::XComponent > SynchronousDispatch::dispatch( return aComponent; } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index 949db6731787..8bee20711804 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -31,10 +31,10 @@ #include <memory.h> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::awt; @@ -469,8 +469,8 @@ Type getSequenceElementType(const Type& _rSequenceType) return Type(); } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/comphelper/source/misc/weakeventlistener.cxx b/comphelper/source/misc/weakeventlistener.cxx index b3939ba1c4a3..0c594a421c8b 100644 --- a/comphelper/source/misc/weakeventlistener.cxx +++ b/comphelper/source/misc/weakeventlistener.cxx @@ -21,25 +21,25 @@ #include <osl/diagnose.h> -//......................................................................... + namespace comphelper { -//......................................................................... + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; - //===================================================================== + //= OWeakListenerAdapter - //===================================================================== + OWeakListenerAdapterBase::~OWeakListenerAdapterBase() { } - //===================================================================== + //= OWeakEventListenerAdapter - //===================================================================== + OWeakEventListenerAdapter::OWeakEventListenerAdapter( Reference< XWeak > _rxListener, Reference< XComponent > _rxBroadcaster ) :OWeakEventListenerAdapter_Base( _rxListener, _rxBroadcaster ) @@ -76,9 +76,9 @@ namespace comphelper resetListener(); } -//......................................................................... + } // namespace comphelper -//......................................................................... + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |