diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /svl | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
28 files changed, 280 insertions, 280 deletions
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx index 7c9538f101a9..d3c7d49ea28e 100644 --- a/svl/source/config/cjkoptions.cxx +++ b/svl/source/config/cjkoptions.cxx @@ -405,7 +405,7 @@ SvtCJKOptions::SvtCJKOptions(bool bDontLoad) pImp = pCJKOptions; } -// ----------------------------------------------------------------------- + SvtCJKOptions::~SvtCJKOptions() { @@ -414,43 +414,43 @@ SvtCJKOptions::~SvtCJKOptions() if ( !--nCJKRefCount ) DELETEZ( pCJKOptions ); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsCJKFontEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); return pCJKOptions->IsCJKFontEnabled(); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsVerticalTextEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); return pCJKOptions->IsVerticalTextEnabled(); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsAsianTypographyEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); return pCJKOptions->IsAsianTypographyEnabled(); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsJapaneseFindEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); return pCJKOptions->IsJapaneseFindEnabled(); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsRubyEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); return pCJKOptions->IsRubyEnabled(); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsChangeCaseMapEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); return pCJKOptions->IsChangeCaseMapEnabled(); } -// ----------------------------------------------------------------------- + bool SvtCJKOptions::IsDoubleLinesEnabled() const { DBG_ASSERT(pCJKOptions->IsLoaded(), "CJK options not loaded"); diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx index 561f2f59e20b..f26b3f44161c 100644 --- a/svl/source/config/ctloptions.cxx +++ b/svl/source/config/ctloptions.cxx @@ -133,13 +133,13 @@ SvtCTLOptions_Impl::~SvtCTLOptions_Impl() if ( IsModified() ) Commit(); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions_Impl::Notify( const Sequence< OUString >& ) { Load(); NotifyListeners(SFX_HINT_CTL_SETTINGS_CHANGED); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions_Impl::Commit() { Sequence< OUString > &rPropertyNames = PropertyNames::get(); @@ -231,7 +231,7 @@ void SvtCTLOptions_Impl::Commit() //broadcast changes NotifyListeners(SFX_HINT_CTL_SETTINGS_CHANGED); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions_Impl::Load() { Sequence< OUString >& rPropertyNames = PropertyNames::get(); @@ -402,7 +402,7 @@ SvtCTLOptions::SvtCTLOptions( bool bDontLoad ) m_pImp->AddListener(this); } -// ----------------------------------------------------------------------- + SvtCTLOptions::~SvtCTLOptions() { @@ -413,84 +413,84 @@ SvtCTLOptions::~SvtCTLOptions() if ( !--nCTLRefCount ) DELETEZ( pCTLOptions ); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions::SetCTLFontEnabled( bool _bEnabled ) { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); pCTLOptions->SetCTLFontEnabled( _bEnabled ); } -// ----------------------------------------------------------------------------- + bool SvtCTLOptions::IsCTLFontEnabled() const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->IsCTLFontEnabled(); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions::SetCTLSequenceChecking( bool _bEnabled ) { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); pCTLOptions->SetCTLSequenceChecking(_bEnabled); } -// ----------------------------------------------------------------------------- + bool SvtCTLOptions::IsCTLSequenceChecking() const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->IsCTLSequenceChecking(); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions::SetCTLSequenceCheckingRestricted( bool _bEnable ) { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); pCTLOptions->SetCTLSequenceCheckingRestricted(_bEnable); } -// ----------------------------------------------------------------------------- + bool SvtCTLOptions::IsCTLSequenceCheckingRestricted( void ) const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->IsCTLSequenceCheckingRestricted(); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions::SetCTLSequenceCheckingTypeAndReplace( bool _bEnable ) { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); pCTLOptions->SetCTLSequenceCheckingTypeAndReplace(_bEnable); } -// ----------------------------------------------------------------------------- + bool SvtCTLOptions::IsCTLSequenceCheckingTypeAndReplace() const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->IsCTLSequenceCheckingTypeAndReplace(); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions::SetCTLCursorMovement( SvtCTLOptions::CursorMovement _eMovement ) { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); pCTLOptions->SetCTLCursorMovement( _eMovement ); } -// ----------------------------------------------------------------------------- + SvtCTLOptions::CursorMovement SvtCTLOptions::GetCTLCursorMovement() const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->GetCTLCursorMovement(); } -// ----------------------------------------------------------------------------- + void SvtCTLOptions::SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumerals ) { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); pCTLOptions->SetCTLTextNumerals( _eNumerals ); } -// ----------------------------------------------------------------------------- + SvtCTLOptions::TextNumerals SvtCTLOptions::GetCTLTextNumerals() const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->GetCTLTextNumerals(); } -// ----------------------------------------------------------------------------- + bool SvtCTLOptions::IsReadOnly(EOption eOption) const { DBG_ASSERT( pCTLOptions->IsLoaded(), "CTL options not loaded" ); return pCTLOptions->IsReadOnly(eOption); } -// ----------------------------------------------------------------------------- + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svl/source/config/languageoptions.cxx b/svl/source/config/languageoptions.cxx index 0bdfea1af765..72c53385228a 100644 --- a/svl/source/config/languageoptions.cxx +++ b/svl/source/config/languageoptions.cxx @@ -157,7 +157,7 @@ sal_uInt16 SvtLanguageOptions::GetScriptTypeOfLanguage( sal_uInt16 nLang ) } return nScript; } -// ----------------------------------------------------------------------------- + SvtSystemLanguageOptions::SvtSystemLanguageOptions() : utl::ConfigItem( "System/L10N") diff --git a/svl/source/filepicker/pickerhistory.cxx b/svl/source/filepicker/pickerhistory.cxx index 2b7724785661..84e6da9968e6 100644 --- a/svl/source/filepicker/pickerhistory.cxx +++ b/svl/source/filepicker/pickerhistory.cxx @@ -30,21 +30,21 @@ namespace svt typedef ::com::sun::star::uno::WeakReference< XInterface > InterfaceAdapter; typedef ::std::vector< InterfaceAdapter > InterfaceArray; - // ---------------------------------------------------------------- + InterfaceArray& getFolderPickerHistory() { static InterfaceArray s_aHistory; return s_aHistory; } - // ---------------------------------------------------------------- + InterfaceArray& getFilePickerHistory() { static InterfaceArray s_aHistory; return s_aHistory; } - // ---------------------------------------------------------------- + void implPushBackPicker( InterfaceArray& _rHistory, const Reference< XInterface >& _rxPicker ) { if ( !_rxPicker.is() ) diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx index 237e0a714492..bfc14c607133 100644 --- a/svl/source/items/aeitem.cxx +++ b/svl/source/items/aeitem.cxx @@ -27,7 +27,7 @@ DBG_NAME(SfxAllEnumItem) TYPEINIT1_AUTOFACTORY(SfxAllEnumItem, SfxEnumItem) -// ----------------------------------------------------------------------- + struct SfxAllEnumValue_Impl { @@ -45,7 +45,7 @@ public: } }; -// ----------------------------------------------------------------------- + SfxAllEnumItem::SfxAllEnumItem() : SfxEnumItem(), @@ -54,7 +54,7 @@ SfxAllEnumItem::SfxAllEnumItem() : { } -// ----------------------------------------------------------------------- + SfxAllEnumItem::SfxAllEnumItem(sal_uInt16 which, sal_uInt16 nVal): SfxEnumItem(which, nVal), @@ -65,7 +65,7 @@ SfxAllEnumItem::SfxAllEnumItem(sal_uInt16 which, sal_uInt16 nVal): InsertValue( nVal ); } -// ----------------------------------------------------------------------- + SfxAllEnumItem::SfxAllEnumItem( sal_uInt16 which, SvStream &rStream ): SfxEnumItem(which, rStream), @@ -76,7 +76,7 @@ SfxAllEnumItem::SfxAllEnumItem( sal_uInt16 which, SvStream &rStream ): InsertValue( GetValue() ); } -// ----------------------------------------------------------------------- + SfxAllEnumItem::SfxAllEnumItem(sal_uInt16 which): @@ -88,7 +88,7 @@ SfxAllEnumItem::SfxAllEnumItem(sal_uInt16 which): } -// ----------------------------------------------------------------------- + SfxAllEnumItem::SfxAllEnumItem(const SfxAllEnumItem &rCopy): SfxEnumItem(rCopy), @@ -115,7 +115,7 @@ SfxAllEnumItem::SfxAllEnumItem(const SfxAllEnumItem &rCopy): } } -// ----------------------------------------------------------------------- + SfxAllEnumItem::~SfxAllEnumItem() { @@ -124,7 +124,7 @@ SfxAllEnumItem::~SfxAllEnumItem() delete pDisabledValues; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxAllEnumItem::GetValueCount() const { @@ -132,7 +132,7 @@ sal_uInt16 SfxAllEnumItem::GetValueCount() const return pValues ? pValues->size() : 0; } -// ----------------------------------------------------------------------- + OUString SfxAllEnumItem::GetValueTextByPos( sal_uInt16 nPos ) const { @@ -141,7 +141,7 @@ OUString SfxAllEnumItem::GetValueTextByPos( sal_uInt16 nPos ) const return (*pValues)[nPos]->aText; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxAllEnumItem::GetValueByPos( sal_uInt16 nPos ) const { @@ -150,7 +150,7 @@ sal_uInt16 SfxAllEnumItem::GetValueByPos( sal_uInt16 nPos ) const return (*pValues)[nPos]->nValue; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxAllEnumItem::Clone( SfxItemPool * ) const { @@ -158,7 +158,7 @@ SfxPoolItem* SfxAllEnumItem::Clone( SfxItemPool * ) const return new SfxAllEnumItem(*this); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxAllEnumItem::Create( SvStream & rStream, sal_uInt16 ) const { @@ -167,7 +167,7 @@ SfxPoolItem* SfxAllEnumItem::Create( SvStream & rStream, sal_uInt16 ) const } -// ----------------------------------------------------------------------- + sal_uInt16 SfxAllEnumItem::_GetPosByValue( sal_uInt16 nVal ) const @@ -192,7 +192,7 @@ sal_uInt16 SfxAllEnumItem::_GetPosByValue( sal_uInt16 nVal ) const return nPos; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxAllEnumItem::GetPosByValue( sal_uInt16 nValue ) const @@ -212,7 +212,7 @@ sal_uInt16 SfxAllEnumItem::GetPosByValue( sal_uInt16 nValue ) const return SfxEnumItem::GetPosByValue( nValue ); } -// ----------------------------------------------------------------------- + void SfxAllEnumItem::InsertValue( sal_uInt16 nValue, const OUString &rValue ) { @@ -229,7 +229,7 @@ void SfxAllEnumItem::InsertValue( sal_uInt16 nValue, const OUString &rValue ) pValues->insert( pValues->begin() + _GetPosByValue(nValue), pVal ); //! doppelte?! } -// ----------------------------------------------------------------------- + void SfxAllEnumItem::InsertValue( sal_uInt16 nValue ) { @@ -264,7 +264,7 @@ bool SfxAllEnumItem::IsEnabled( sal_uInt16 nValue ) const return true; } -// ----------------------------------------------------------------------- + void SfxAllEnumItem::RemoveValue( sal_uInt16 nValue ) { diff --git a/svl/source/items/cntwall.cxx b/svl/source/items/cntwall.cxx index 49bb28e02ce8..afd8e34774f8 100644 --- a/svl/source/items/cntwall.cxx +++ b/svl/source/items/cntwall.cxx @@ -29,13 +29,13 @@ TYPEINIT1( CntWallpaperItem, SfxPoolItem ); -// ----------------------------------------------------------------------- + CntWallpaperItem::CntWallpaperItem( sal_uInt16 which ) : SfxPoolItem( which ), _nColor( COL_TRANSPARENT ), _nStyle( 0 ) { } -// ----------------------------------------------------------------------- + CntWallpaperItem::CntWallpaperItem( sal_uInt16 which, SvStream& rStream, sal_uInt16 nVersion ) : SfxPoolItem( which ), _nColor( COL_TRANSPARENT ), _nStyle( 0 ) { @@ -74,7 +74,7 @@ CntWallpaperItem::CntWallpaperItem( sal_uInt16 which, SvStream& rStream, sal_uIn } } -// ----------------------------------------------------------------------- + CntWallpaperItem::CntWallpaperItem( const CntWallpaperItem& rItem ) : SfxPoolItem( rItem ), _aURL( rItem._aURL ), @@ -83,12 +83,12 @@ CntWallpaperItem::CntWallpaperItem( const CntWallpaperItem& rItem ) : { } -// ----------------------------------------------------------------------- + CntWallpaperItem::~CntWallpaperItem() { } -// ----------------------------------------------------------------------- + bool CntWallpaperItem::operator==( const SfxPoolItem& rItem ) const { DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal type" ); @@ -106,13 +106,13 @@ sal_uInt16 CntWallpaperItem::GetVersion(sal_uInt16) const return 1; // because it uses SfxPoolItem::read/writeUnicodeString() } -// ----------------------------------------------------------------------- + SfxPoolItem* CntWallpaperItem::Create( SvStream& rStream, sal_uInt16 nVersion) const { return new CntWallpaperItem( Which(), rStream, nVersion ); } -// ----------------------------------------------------------------------- + SvStream& CntWallpaperItem::Store( SvStream& rStream, sal_uInt16 ) const { rStream.WriteUInt32( CNTWALLPAPERITEM_STREAM_MAGIC ); @@ -126,7 +126,7 @@ SvStream& CntWallpaperItem::Store( SvStream& rStream, sal_uInt16 ) const return rStream; } -// ----------------------------------------------------------------------- + SfxPoolItem* CntWallpaperItem::Clone( SfxItemPool* ) const { return new CntWallpaperItem( *this ); diff --git a/svl/source/items/flagitem.cxx b/svl/source/items/flagitem.cxx index a730c5ce7445..a99a6fa04be6 100644 --- a/svl/source/items/flagitem.cxx +++ b/svl/source/items/flagitem.cxx @@ -35,11 +35,11 @@ sal_uInt16 nSfxFlagVal[16] = }; -// ----------------------------------------------------------------------- + TYPEINIT1(SfxFlagItem, SfxPoolItem); -// ----------------------------------------------------------------------- + SfxFlagItem::SfxFlagItem( sal_uInt16 nW, sal_uInt16 nV ) : SfxPoolItem( nW ), @@ -48,7 +48,7 @@ SfxFlagItem::SfxFlagItem( sal_uInt16 nW, sal_uInt16 nV ) : DBG_CTOR(SfxFlagItem, 0); } -// ----------------------------------------------------------------------- + SfxFlagItem::SfxFlagItem( const SfxFlagItem& rItem ) : SfxPoolItem( rItem ), @@ -57,7 +57,7 @@ SfxFlagItem::SfxFlagItem( const SfxFlagItem& rItem ) : DBG_CTOR(SfxFlagItem, 0); } -// ----------------------------------------------------------------------- + SvStream& SfxFlagItem::Store(SvStream &rStream, sal_uInt16) const { @@ -66,7 +66,7 @@ SvStream& SfxFlagItem::Store(SvStream &rStream, sal_uInt16) const return rStream; } -// ----------------------------------------------------------------------- + SfxItemPresentation SfxFlagItem::GetPresentation ( @@ -84,7 +84,7 @@ SfxItemPresentation SfxFlagItem::GetPresentation return SFX_ITEM_PRESENTATION_NAMELESS; } -// ----------------------------------------------------------------------- + sal_uInt8 SfxFlagItem::GetFlagCount() const { @@ -93,7 +93,7 @@ sal_uInt8 SfxFlagItem::GetFlagCount() const return 0; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxFlagItem::Create(SvStream &, sal_uInt16) const { @@ -102,7 +102,7 @@ SfxPoolItem* SfxFlagItem::Create(SvStream &, sal_uInt16) const return 0; } -// ----------------------------------------------------------------------- + bool SfxFlagItem::operator==( const SfxPoolItem& rItem ) const { @@ -111,7 +111,7 @@ bool SfxFlagItem::operator==( const SfxPoolItem& rItem ) const return (((SfxFlagItem&)rItem).nVal == nVal); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxFlagItem::Clone(SfxItemPool *) const diff --git a/svl/source/items/globalnameitem.cxx b/svl/source/items/globalnameitem.cxx index 50000b7c7750..077e8b9aca0a 100644 --- a/svl/source/items/globalnameitem.cxx +++ b/svl/source/items/globalnameitem.cxx @@ -30,17 +30,17 @@ // STATIC DATA ----------------------------------------------------------- -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxGlobalNameItem, SfxPoolItem); -// ----------------------------------------------------------------------- + SfxGlobalNameItem::SfxGlobalNameItem() { } -// ----------------------------------------------------------------------- + SfxGlobalNameItem::SfxGlobalNameItem( sal_uInt16 nW, const SvGlobalName& rName ) : SfxPoolItem( nW ), @@ -48,20 +48,20 @@ SfxGlobalNameItem::SfxGlobalNameItem( sal_uInt16 nW, const SvGlobalName& rName ) { } -// ----------------------------------------------------------------------- + SfxGlobalNameItem::~SfxGlobalNameItem() { } -// ----------------------------------------------------------------------- + bool SfxGlobalNameItem::operator==( const SfxPoolItem& rItem ) const { return ((SfxGlobalNameItem&)rItem).m_aName == m_aName; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxGlobalNameItem::Clone(SfxItemPool *) const { diff --git a/svl/source/items/itemiter.cxx b/svl/source/items/itemiter.cxx index ef4336525a0a..cf87b2f80a94 100644 --- a/svl/source/items/itemiter.cxx +++ b/svl/source/items/itemiter.cxx @@ -27,7 +27,7 @@ DBG_NAME(SfxItemIter); -// -------------------------------------------------------------------------- + SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet ) @@ -58,7 +58,7 @@ SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet ) _nAkt = _nStt; } -// -------------------------------------------------------------------------- + SfxItemIter::~SfxItemIter() @@ -66,7 +66,7 @@ SfxItemIter::~SfxItemIter() DBG_DTOR(SfxItemIter, 0); } -// -------------------------------------------------------------------------- + const SfxPoolItem* SfxItemIter::NextItem() diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 706f7fa4bba2..c293c384474f 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -107,7 +107,7 @@ const SfxPoolItem* SfxItemPool::GetPoolDefaultItem( sal_uInt16 nWhich ) const return pRet; } -// ----------------------------------------------------------------------- + bool SfxItemPool::IsItemFlag_Impl( sal_uInt16 nPos, sal_uInt16 nFlag ) const { @@ -115,7 +115,7 @@ bool SfxItemPool::IsItemFlag_Impl( sal_uInt16 nPos, sal_uInt16 nFlag ) const return nFlag == (nItemFlag & nFlag); } -// ----------------------------------------------------------------------- + bool SfxItemPool::IsItemFlag( sal_uInt16 nWhich, sal_uInt16 nFlag ) const { @@ -128,14 +128,14 @@ bool SfxItemPool::IsItemFlag( sal_uInt16 nWhich, sal_uInt16 nFlag ) const return false; } -// ----------------------------------------------------------------------- + SfxBroadcaster& SfxItemPool::BC() { return pImp->aBC; } -// ----------------------------------------------------------------------- + SfxItemPool::SfxItemPool @@ -203,7 +203,7 @@ SfxItemPool::SfxItemPool SetDefaults(pDefaults); } -// ----------------------------------------------------------------------- + SfxItemPool::SfxItemPool @@ -279,7 +279,7 @@ SfxItemPool::SfxItemPool SetSecondaryPool( rPool.pImp->mpSecondary->Clone() ); } -// ----------------------------------------------------------------------- + void SfxItemPool::SetDefaults( SfxPoolItem **pDefaults ) { @@ -304,7 +304,7 @@ void SfxItemPool::SetDefaults( SfxPoolItem **pDefaults ) } } -// ----------------------------------------------------------------------- + void SfxItemPool::ReleaseDefaults ( @@ -336,7 +336,7 @@ void SfxItemPool::ReleaseDefaults pImp->ppStaticDefaults = 0; } -// ----------------------------------------------------------------------- + void SfxItemPool::ReleaseDefaults ( @@ -379,7 +379,7 @@ void SfxItemPool::ReleaseDefaults { delete[] pDefaults; pDefaults = 0; } } -// ----------------------------------------------------------------------- + SfxItemPool::~SfxItemPool() { @@ -424,7 +424,7 @@ void SfxItemPool::Free(SfxItemPool* pPool) } } -// ----------------------------------------------------------------------- + void SfxItemPool::SetSecondaryPool( SfxItemPool *pPool ) @@ -490,7 +490,7 @@ void SfxItemPool::SetItemInfos(SfxItemInfo const*const pInfos) CHECK_SLOTS(); } -// ----------------------------------------------------------------------- + SfxMapUnit SfxItemPool::GetMetric( sal_uInt16 ) const { @@ -499,7 +499,7 @@ SfxMapUnit SfxItemPool::GetMetric( sal_uInt16 ) const return pImp->eDefMetric; } -// ----------------------------------------------------------------------- + void SfxItemPool::SetDefaultMetric( SfxMapUnit eNewMetric ) { @@ -513,7 +513,7 @@ const OUString& SfxItemPool::GetName() const return pImp->aName; } -// ----------------------------------------------------------------------- + SfxItemPresentation SfxItemPool::GetPresentation ( @@ -530,7 +530,7 @@ SfxItemPresentation SfxItemPool::GetPresentation } -// ----------------------------------------------------------------------- + SfxItemPool* SfxItemPool::Clone() const { @@ -540,7 +540,7 @@ SfxItemPool* SfxItemPool::Clone() const return pPool; } -// ---------------------------------------------------------------------- + void SfxItemPool::Delete() { @@ -631,7 +631,7 @@ void SfxItemPool::Delete() pImp->DeleteItems(); } -// ---------------------------------------------------------------------- + void SfxItemPool::SetPoolDefaultItem(const SfxPoolItem &rItem) { @@ -682,7 +682,7 @@ void SfxItemPool::ResetPoolDefaultItem( sal_uInt16 nWhichId ) } } -// ----------------------------------------------------------------------- + const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich ) { @@ -811,7 +811,7 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich return *pNewItem; } -// ----------------------------------------------------------------------- + void SfxItemPool::Remove( const SfxPoolItem& rItem ) { @@ -892,7 +892,7 @@ void SfxItemPool::Remove( const SfxPoolItem& rItem ) SFX_ASSERT( false, rItem.Which(), "removing Item not in Pool" ); } -// ----------------------------------------------------------------------- + const SfxPoolItem& SfxItemPool::GetDefaultItem( sal_uInt16 nWhich ) const { @@ -939,7 +939,7 @@ void SfxItemPool::FreezeIdRanges() } -// ----------------------------------------------------------------------- + void SfxItemPool::FillItemIdRanges_Impl( sal_uInt16*& pWhichRanges ) const { @@ -990,7 +990,7 @@ const SfxPoolItem *SfxItemPool::GetItem2(sal_uInt16 nWhich, sal_uInt32 nOfst) co return 0; } -// ----------------------------------------------------------------------- + sal_uInt32 SfxItemPool::GetItemCount2(sal_uInt16 nWhich) const { @@ -1010,7 +1010,7 @@ sal_uInt32 SfxItemPool::GetItemCount2(sal_uInt16 nWhich) const return 0; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemPool::GetWhich( sal_uInt16 nSlotId, bool bDeep ) const { @@ -1026,7 +1026,7 @@ sal_uInt16 SfxItemPool::GetWhich( sal_uInt16 nSlotId, bool bDeep ) const return nSlotId; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemPool::GetSlotId( sal_uInt16 nWhich, bool bDeep ) const { @@ -1045,7 +1045,7 @@ sal_uInt16 SfxItemPool::GetSlotId( sal_uInt16 nWhich, bool bDeep ) const return nSID ? nSID : nWhich; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemPool::GetTrueWhich( sal_uInt16 nSlotId, bool bDeep ) const { @@ -1061,7 +1061,7 @@ sal_uInt16 SfxItemPool::GetTrueWhich( sal_uInt16 nSlotId, bool bDeep ) const return 0; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemPool::GetTrueSlotId( sal_uInt16 nWhich, bool bDeep ) const { diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 5403f2c95fb9..7b1c14cdebec 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -77,7 +77,7 @@ const sal_Char *DbgCheckItemSet( const void* pVoid ) } #endif -// ----------------------------------------------------------------------- + SfxItemSet::SfxItemSet ( @@ -125,7 +125,7 @@ SfxItemSet::SfxItemSet memset( (void*) _aItems, 0, nSize * sizeof( SfxPoolItem* ) ); } -// ----------------------------------------------------------------------- + SfxItemSet::SfxItemSet( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhich2 ): _pPool( &rPool ), @@ -140,7 +140,7 @@ SfxItemSet::SfxItemSet( SfxItemPool& rPool, sal_uInt16 nWhich1, sal_uInt16 nWhic InitRanges_Impl(nWhich1, nWhich2); } -// ----------------------------------------------------------------------- + void SfxItemSet::InitRanges_Impl(sal_uInt16 nWh1, sal_uInt16 nWh2) { @@ -154,7 +154,7 @@ void SfxItemSet::InitRanges_Impl(sal_uInt16 nWh1, sal_uInt16 nWh2) memset( (void*) _aItems, 0, nRg * sizeof( SfxPoolItem* ) ); } -// ----------------------------------------------------------------------- + void SfxItemSet::InitRanges_Impl(va_list pArgs, sal_uInt16 nWh1, sal_uInt16 nWh2, sal_uInt16 nNull) { @@ -165,7 +165,7 @@ void SfxItemSet::InitRanges_Impl(va_list pArgs, sal_uInt16 nWh1, sal_uInt16 nWh2 memset( (void*) _aItems, 0, sizeof( SfxPoolItem* ) * nSize ); } -// ----------------------------------------------------------------------- + SfxItemSet::SfxItemSet( SfxItemPool& rPool, USHORT_ARG nWh1, USHORT_ARG nWh2, USHORT_ARG nNull, ... ): @@ -194,7 +194,7 @@ SfxItemSet::SfxItemSet( SfxItemPool& rPool, } } -// ----------------------------------------------------------------------- + void SfxItemSet::InitRanges_Impl(const sal_uInt16 *pWhichPairTable) { @@ -220,7 +220,7 @@ void SfxItemSet::InitRanges_Impl(const sal_uInt16 *pWhichPairTable) } -// ----------------------------------------------------------------------- + SfxItemSet::SfxItemSet( SfxItemPool& rPool, const sal_uInt16* pWhichPairTable ): _pPool( &rPool ), @@ -237,7 +237,7 @@ SfxItemSet::SfxItemSet( SfxItemPool& rPool, const sal_uInt16* pWhichPairTable ): InitRanges_Impl(pWhichPairTable); } -// ----------------------------------------------------------------------- + SfxItemSet::SfxItemSet( const SfxItemSet& rASet ): _pPool( rASet._pPool ), @@ -289,7 +289,7 @@ SfxItemSet::SfxItemSet( const SfxItemSet& rASet ): memcpy( _pWhichRanges, rASet._pWhichRanges, sizeof( sal_uInt16 ) * cnt); } -// ----------------------------------------------------------------------- + SfxItemSet::~SfxItemSet() { @@ -330,7 +330,7 @@ SfxItemSet::~SfxItemSet() DBG( delete _pChildCount(this); _pChildCountDtor ); } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemSet::ClearItem( sal_uInt16 nWhich ) @@ -430,7 +430,7 @@ sal_uInt16 SfxItemSet::ClearItem( sal_uInt16 nWhich ) return nDel; } -// ----------------------------------------------------------------------- + void SfxItemSet::ClearInvalidItems( sal_Bool bHardDefault ) { @@ -484,7 +484,7 @@ void SfxItemSet::InvalidateAllItems() memset( (void*)_aItems, -1, ( _nCount = TotalCount() ) * sizeof( SfxPoolItem*) ); } -// ----------------------------------------------------------------------- + SfxItemState SfxItemSet::GetItemState( sal_uInt16 nWhich, bool bSrchInParent, @@ -549,7 +549,7 @@ bool SfxItemSet::HasItem(sal_uInt16 nWhich, const SfxPoolItem** ppItem) const return bRet; } -// ----------------------------------------------------------------------- + const SfxPoolItem* SfxItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich ) { @@ -629,7 +629,7 @@ const SfxPoolItem* SfxItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich return 0; } -// ----------------------------------------------------------------------- + bool SfxItemSet::Put( const SfxItemSet& rSet, bool bInvalidAsDefault ) { @@ -662,7 +662,7 @@ bool SfxItemSet::Put( const SfxItemSet& rSet, bool bInvalidAsDefault ) return bRet; } -// ----------------------------------------------------------------------- + void SfxItemSet::PutExtended ( @@ -749,7 +749,7 @@ void SfxItemSet::PutExtended } } -// ----------------------------------------------------------------------- + void SfxItemSet::MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo ) /** <H3>Description</H3> @@ -769,7 +769,7 @@ void SfxItemSet::MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo ) SetRanges( aRanges ); } -// ----------------------------------------------------------------------- + void SfxItemSet::SetRanges( const sal_uInt16 *pNewRanges ) @@ -862,7 +862,7 @@ void SfxItemSet::SetRanges( const sal_uInt16 *pNewRanges ) } } -// ----------------------------------------------------------------------- + bool SfxItemSet::Set ( @@ -1031,14 +1031,14 @@ const SfxPoolItem& SfxItemSet::Get( sal_uInt16 nWhich, sal_Bool bSrchInParent) c } // Notification-Callback -// ----------------------------------------------------------------------- + void SfxItemSet::Changed( const SfxPoolItem&, const SfxPoolItem& ) { DBG_CHKTHIS(SfxItemSet, DbgCheckItemSet); } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemSet::TotalCount() const { @@ -1052,7 +1052,7 @@ sal_uInt16 SfxItemSet::TotalCount() const } return nRet; } -// ----------------------------------------------------------------------- + // behalte nur die Items, die auch in rSet enthalten sein (Wert egal) @@ -1133,7 +1133,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet ) } } -// ----------------------------------------------------------------------- + void SfxItemSet::Differentiate( const SfxItemSet& rSet ) { @@ -1205,7 +1205,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet ) } } -// ----------------------------------------------------------------------- + /* Entscheidungstabelle fuer MergeValue[s] Grundsaetze: @@ -1350,7 +1350,7 @@ static void MergeItem_Impl( SfxItemPool *_pPool, sal_uInt16 &rCount, } } -// ----------------------------------------------------------------------- + void SfxItemSet::MergeValues( const SfxItemSet& rSet, sal_Bool bIgnoreDefaults ) { @@ -1408,7 +1408,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet, sal_Bool bIgnoreDefaults ) } } -// ----------------------------------------------------------------------- + void SfxItemSet::MergeValue( const SfxPoolItem& rAttr, sal_Bool bIgnoreDefaults ) { @@ -1430,7 +1430,7 @@ void SfxItemSet::MergeValue( const SfxPoolItem& rAttr, sal_Bool bIgnoreDefaults } } -// ----------------------------------------------------------------------- + void SfxItemSet::InvalidateItem( sal_uInt16 nWhich ) { @@ -1464,7 +1464,7 @@ void SfxItemSet::InvalidateItem( sal_uInt16 nWhich ) } } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemSet::GetWhichByPos( sal_uInt16 nPos ) const { @@ -1483,7 +1483,7 @@ sal_uInt16 SfxItemSet::GetWhichByPos( sal_uInt16 nPos ) const return 0; } -// ----------------------------------------------------------------------- + SvStream &SfxItemSet::Store ( @@ -1549,7 +1549,7 @@ SvStream &SfxItemSet::Store return rStream; } -// ----------------------------------------------------------------------- + SvStream &SfxItemSet::Load ( @@ -1626,7 +1626,7 @@ SvStream &SfxItemSet::Load return rStream; } -// ----------------------------------------------------------------------- + bool SfxItemSet::operator==(const SfxItemSet &rCmp) const { @@ -1696,7 +1696,7 @@ bool SfxItemSet::operator==(const SfxItemSet &rCmp) const return true; } -// ----------------------------------------------------------------------- + SfxItemSet *SfxItemSet::Clone(sal_Bool bItems, SfxItemPool *pToPool ) const { @@ -1724,7 +1724,7 @@ SfxItemSet *SfxItemSet::Clone(sal_Bool bItems, SfxItemPool *pToPool ) const : new SfxItemSet(*_pPool, _pWhichRanges); } -// ----------------------------------------------------------------------- + int SfxItemSet::PutDirect(const SfxPoolItem &rItem) { @@ -1770,7 +1770,7 @@ int SfxItemSet::PutDirect(const SfxPoolItem &rItem) return sal_False; } -// ----------------------------------------------------------------------- + SfxAllItemSet::SfxAllItemSet( SfxItemPool &rPool ) : SfxItemSet(rPool, (const sal_uInt16*) 0), @@ -1786,7 +1786,7 @@ SfxAllItemSet::SfxAllItemSet( SfxItemPool &rPool ) } -// ----------------------------------------------------------------------- + SfxAllItemSet::SfxAllItemSet(const SfxItemSet &rCopy) @@ -1796,7 +1796,7 @@ SfxAllItemSet::SfxAllItemSet(const SfxItemSet &rCopy) { } -// ----------------------------------------------------------------------- + @@ -1812,7 +1812,7 @@ SfxAllItemSet::SfxAllItemSet(const SfxAllItemSet &rCopy) { } -// ----------------------------------------------------------------------- + static sal_uInt16 *AddRanges_Impl( sal_uInt16 *pUS, std::ptrdiff_t nOldSize, sal_uInt16 nIncr) @@ -1843,7 +1843,7 @@ static sal_uInt16 *AddRanges_Impl( return pNew; } -// ----------------------------------------------------------------------- + static SfxItemArray AddItem_Impl(SfxItemArray pItems, sal_uInt16 nOldSize, sal_uInt16 nPos) @@ -1881,7 +1881,7 @@ static SfxItemArray AddItem_Impl(SfxItemArray pItems, sal_uInt16 nOldSize, sal_u return pNew; } -// ----------------------------------------------------------------------- + const SfxPoolItem* SfxAllItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich ) @@ -2005,7 +2005,7 @@ const SfxPoolItem* SfxAllItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhi return &rNew; } -// ----------------------------------------------------------------------- + // Item disablen, wenn durch ein VoidItem mit dem Which-Wert 0 ausgedrueckt void SfxItemSet::DisableItem(sal_uInt16 nWhich) @@ -2014,7 +2014,7 @@ void SfxItemSet::DisableItem(sal_uInt16 nWhich) Put( SfxVoidItem(0), nWhich ); } -// ----------------------------------------------------------------------- + SfxItemSet *SfxAllItemSet::Clone(sal_Bool bItems, SfxItemPool *pToPool ) const { @@ -2030,14 +2030,14 @@ SfxItemSet *SfxAllItemSet::Clone(sal_Bool bItems, SfxItemPool *pToPool ) const return bItems ? new SfxAllItemSet(*this) : new SfxAllItemSet(*_pPool); } -// ----------------------------------------------------------------------- + sal_Int32 SfxItemSet::getHash() const { return stringify().hashCode(); } -// ----------------------------------------------------------------------- + OString SfxItemSet::stringify() const { diff --git a/svl/source/items/lckbitem.cxx b/svl/source/items/lckbitem.cxx index 71116aa88844..d89eb630cd6d 100644 --- a/svl/source/items/lckbitem.cxx +++ b/svl/source/items/lckbitem.cxx @@ -22,17 +22,17 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxLockBytesItem, SfxPoolItem); -// ----------------------------------------------------------------------- + SfxLockBytesItem::SfxLockBytesItem() { } -// ----------------------------------------------------------------------- + SfxLockBytesItem::SfxLockBytesItem( sal_uInt16 nW, SvStream &rStream ) : SfxPoolItem( nW ) @@ -44,7 +44,7 @@ SfxLockBytesItem::SfxLockBytesItem( sal_uInt16 nW, SvStream &rStream ) rStream.ReadStream( aLockBytesStream ); } -// ----------------------------------------------------------------------- + SfxLockBytesItem::SfxLockBytesItem( const SfxLockBytesItem& rItem ) : SfxPoolItem( rItem ), @@ -52,27 +52,27 @@ SfxLockBytesItem::SfxLockBytesItem( const SfxLockBytesItem& rItem ) { } -// ----------------------------------------------------------------------- + SfxLockBytesItem::~SfxLockBytesItem() { } -// ----------------------------------------------------------------------- + bool SfxLockBytesItem::operator==( const SfxPoolItem& rItem ) const { return ((SfxLockBytesItem&)rItem)._xVal == _xVal; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxLockBytesItem::Clone(SfxItemPool *) const { return new SfxLockBytesItem( *this ); } -// ----------------------------------------------------------------------- + #define MAX_BUF 32000 @@ -97,7 +97,7 @@ SfxPoolItem* SfxLockBytesItem::Create( SvStream &rStream, sal_uInt16 ) const return new SfxLockBytesItem( Which(), aNewStream ); } -// ----------------------------------------------------------------------- + SvStream& SfxLockBytesItem::Store(SvStream &rStream, sal_uInt16 ) const { diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx index 393f4c9b0cf1..bf7df9bbefa3 100644 --- a/svl/source/items/macitem.cxx +++ b/svl/source/items/macitem.cxx @@ -25,11 +25,11 @@ DBG_NAME(SvxMacroItem); -// ----------------------------------------------------------------------- + TYPEINIT1_FACTORY(SvxMacroItem, SfxPoolItem, new SvxMacroItem(0)); -// ----------------------------------------------------------------------- + SvxMacro::SvxMacro( const OUString &rMacName, const OUString &rLanguage) : aMacName( rMacName ), aLibName( rLanguage), @@ -70,7 +70,7 @@ SvxMacro& SvxMacro::operator=( const SvxMacro& rBase ) return *this; } -// ----------------------------------------------------------------------- + SvxMacroTableDtor& SvxMacroTableDtor::operator=( const SvxMacroTableDtor& rTbl ) { @@ -190,7 +190,7 @@ bool SvxMacroTableDtor::Erase(sal_uInt16 nEvent) return false; } -// ----------------------------------------------------------------------- + bool SvxMacroItem::operator==( const SfxPoolItem& rAttr ) const { @@ -202,7 +202,7 @@ bool SvxMacroItem::operator==( const SfxPoolItem& rAttr ) const return rOwn == rOther; } -// ----------------------------------------------------------------------- + SfxPoolItem* SvxMacroItem::Clone( SfxItemPool* ) const { @@ -237,14 +237,14 @@ SfxItemPresentation SvxMacroItem::GetPresentation return SFX_ITEM_PRESENTATION_NONE; } -// ----------------------------------------------------------------------- + SvStream& SvxMacroItem::Store( SvStream& rStrm , sal_uInt16 ) const { return aMacroTable.Write( rStrm ); } -// ----------------------------------------------------------------------- + SfxPoolItem* SvxMacroItem::Create( SvStream& rStrm, sal_uInt16 nVersion ) const { @@ -253,14 +253,14 @@ SfxPoolItem* SvxMacroItem::Create( SvStream& rStrm, sal_uInt16 nVersion ) const return pAttr; } -// ----------------------------------------------------------------------- + void SvxMacroItem::SetMacro( sal_uInt16 nEvent, const SvxMacro& rMacro ) { aMacroTable.Insert( nEvent, rMacro); } -// ----------------------------------------------------------------------- + sal_uInt16 SvxMacroItem::GetVersion( sal_uInt16 nFileFormatVersion ) const { diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx index a6ec3016555d..90d952ad76de 100644 --- a/svl/source/items/poolio.cxx +++ b/svl/source/items/poolio.cxx @@ -461,7 +461,7 @@ void SfxItemPool_Impl::readTheItems ( delete pOldArr; } -// ----------------------------------------------------------------------- + SvStream &SfxItemPool::Load(SvStream &rStream) { @@ -988,7 +988,7 @@ SvStream &SfxItemPool::Load1_Impl(SvStream &rStream) return rStream; } -// ----------------------------------------------------------------------- + const SfxPoolItem* SfxItemPool::LoadSurrogate ( @@ -1155,7 +1155,7 @@ bool SfxItemPool::StoreSurrogate return true; } -// ----------------------------------------------------------------------- + sal_uInt32 SfxItemPool::GetSurrogate(const SfxPoolItem *pItem) const { @@ -1188,7 +1188,7 @@ sal_uInt32 SfxItemPool::GetSurrogate(const SfxPoolItem *pItem) const return SFX_ITEMS_NULL; } -// ----------------------------------------------------------------------- + bool SfxItemPool::IsInStoringRange( sal_uInt16 nWhich ) const { @@ -1220,7 +1220,7 @@ void SfxItemPool::SetStoringRange( sal_uInt16 nFrom, sal_uInt16 nTo ) pImp->nStoringEnd = nTo; } -// ----------------------------------------------------------------------- + void SfxItemPool::SetVersionMap ( @@ -1310,7 +1310,7 @@ void SfxItemPool::SetVersionMap } } -// ----------------------------------------------------------------------- + sal_uInt16 SfxItemPool::GetNewWhich ( @@ -1401,7 +1401,7 @@ sal_uInt16 SfxItemPool::GetNewWhich return nFileWhich; } -// ----------------------------------------------------------------------- + bool SfxItemPool::IsInVersionsRange( sal_uInt16 nWhich ) const @@ -1409,7 +1409,7 @@ bool SfxItemPool::IsInVersionsRange( sal_uInt16 nWhich ) const return nWhich >= pImp->nVerStart && nWhich <= pImp->nVerEnd; } -// ----------------------------------------------------------------------- + bool SfxItemPool::IsCurrentVersionLoading() const diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx index 530b8dfb2c3b..d2e1361e0a95 100644 --- a/svl/source/items/poolitem.cxx +++ b/svl/source/items/poolitem.cxx @@ -36,7 +36,7 @@ TYPEINIT1(SfxVoidItem, SfxPoolItem); TYPEINIT1(SfxSetItem, SfxPoolItem); // @@@ TYPEINIT1(SfxItemChangedHint, SfxHint); -// ------------------------------------------------------------------------ + #if OSL_DEBUG_LEVEL > 1 static sal_uLong nItemCount = 0; @@ -87,7 +87,7 @@ SfxPoolItem::SfxPoolItem(sal_uInt16 const nWhich) #endif } -// ----------------------------------------------------------------------- + SfxPoolItem::SfxPoolItem( const SfxPoolItem& rCpy ) : m_nRefCount(0) // don't copy that , m_nWhich(rCpy.Which()) // call function because of ChkThis() (WTF does that mean?) @@ -124,7 +124,7 @@ SfxPoolItem::SfxPoolItem( const SfxPoolItem& rCpy ) #endif } -// ------------------------------------------------------------------------ + SfxPoolItem::~SfxPoolItem() { DBG_DTOR(SfxPoolItem, 0); @@ -135,40 +135,40 @@ SfxPoolItem::~SfxPoolItem() #endif } -// ------------------------------------------------------------------------ + int SfxPoolItem::Compare( const SfxPoolItem& ) const { return 0; } -// ------------------------------------------------------------------------ + int SfxPoolItem::Compare( const SfxPoolItem& rWith, const IntlWrapper& ) const { return Compare( rWith ); } -// ------------------------------------------------------------------------ + bool SfxPoolItem::operator==( const SfxPoolItem& rCmp ) const { DBG_CHKTHIS(SfxPoolItem, 0); return rCmp.Type() == Type(); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxPoolItem::Create(SvStream &, sal_uInt16) const { DBG_CHKTHIS(SfxPoolItem, 0); return Clone(0); } -// ----------------------------------------------------------------------- + sal_uInt16 SfxPoolItem::GetVersion( sal_uInt16 ) const { DBG_CHKTHIS(SfxPoolItem, 0); return 0; } -// ----------------------------------------------------------------------- + SvStream& SfxPoolItem::Store(SvStream &rStream, sal_uInt16 ) const { DBG_CHKTHIS(SfxPoolItem, 0); @@ -200,7 +200,7 @@ void SfxPoolItem::writeUnicodeString(SvStream & rStream, const OUString& rString rStream.WriteUniOrByteString(rString, RTL_TEXTENCODING_UCS2); } -// ------------------------------------------------------------------------ + SfxItemPresentation SfxPoolItem::GetPresentation ( SfxItemPresentation /*ePresentation*/, // IN: wie formatiert werden soll @@ -273,7 +273,7 @@ SfxVoidItem::SfxVoidItem( const SfxVoidItem& rCopy): DBG_CTOR(SfxVoidItem, 0); } -// ------------------------------------------------------------------------ + bool SfxVoidItem::operator==( const SfxPoolItem& #ifdef DBG_UTIL rCmp @@ -285,7 +285,7 @@ rCmp return true; } -// ------------------------------------------------------------------------ + SfxItemPresentation SfxVoidItem::GetPresentation ( SfxItemPresentation /*ePresentation*/, @@ -300,7 +300,7 @@ SfxItemPresentation SfxVoidItem::GetPresentation return SFX_ITEM_PRESENTATION_NAMELESS; } -// ------------------------------------------------------------------------ + SfxPoolItem* SfxVoidItem::Clone(SfxItemPool *) const { DBG_CHKTHIS(SfxVoidItem, 0); @@ -317,7 +317,7 @@ SfxItemHandle::SfxItemHandle(SfxPoolItem &rItem): DBG_CTOR(SfxItemHandle, 0); } -// ------------------------------------------------------------------------ + SfxItemHandle::SfxItemHandle(const SfxItemHandle &rCopy): pRef(rCopy.pRef), pItem(rCopy.pItem) @@ -326,7 +326,7 @@ SfxItemHandle::SfxItemHandle(const SfxItemHandle &rCopy): ++(*pRef); } -// ------------------------------------------------------------------------ + const SfxItemHandle &SfxItemHandle::operator=(const SfxItemHandle &rCopy) { DBG_CHKTHIS(SfxItemHandle, 0); @@ -344,7 +344,7 @@ const SfxItemHandle &SfxItemHandle::operator=(const SfxItemHandle &rCopy) return *this; } -// ------------------------------------------------------------------------ + SfxItemHandle::~SfxItemHandle() { DBG_DTOR(SfxItemHandle, 0); @@ -355,19 +355,19 @@ SfxItemHandle::~SfxItemHandle() } } -// ------------------------------------------------------------------------ + bool SfxPoolItem::ScaleMetrics( long /*lMult*/, long /*lDiv*/ ) { return false; } -// ------------------------------------------------------------------------ + bool SfxPoolItem::HasMetrics() const { return false; } -// ----------------------------------------------------------------------- + bool SfxPoolItem::QueryValue( com::sun::star::uno::Any&, sal_uInt8 ) const { @@ -375,7 +375,7 @@ bool SfxPoolItem::QueryValue( com::sun::star::uno::Any&, sal_uInt8 ) const return false; } -// ----------------------------------------------------------------------- + bool SfxPoolItem::PutValue( const com::sun::star::uno::Any&, sal_uInt8 ) { diff --git a/svl/source/items/ptitem.cxx b/svl/source/items/ptitem.cxx index 5adf1b9b6e50..b032a376b2bf 100644 --- a/svl/source/items/ptitem.cxx +++ b/svl/source/items/ptitem.cxx @@ -34,18 +34,18 @@ DBG_NAME(SfxPointItem) #define TWIP_TO_MM100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L)) #define MM100_TO_TWIP(MM100) ((MM100) >= 0 ? (((MM100)*72L+63L)/127L) : (((MM100)*72L-63L)/127L)) -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxPointItem, SfxPoolItem); -// ----------------------------------------------------------------------- + SfxPointItem::SfxPointItem() { DBG_CTOR(SfxPointItem, 0); } -// ----------------------------------------------------------------------- + SfxPointItem::SfxPointItem( sal_uInt16 nW, const Point& rVal ) : SfxPoolItem( nW ), @@ -54,7 +54,7 @@ SfxPointItem::SfxPointItem( sal_uInt16 nW, const Point& rVal ) : DBG_CTOR(SfxPointItem, 0); } -// ----------------------------------------------------------------------- + SfxPointItem::SfxPointItem( const SfxPointItem& rItem ) : SfxPoolItem( rItem ), @@ -63,7 +63,7 @@ SfxPointItem::SfxPointItem( const SfxPointItem& rItem ) : DBG_CTOR(SfxPointItem, 0); } -// ----------------------------------------------------------------------- + SfxItemPresentation SfxPointItem::GetPresentation ( @@ -79,7 +79,7 @@ SfxItemPresentation SfxPointItem::GetPresentation return SFX_ITEM_PRESENTATION_NAMELESS; } -// ----------------------------------------------------------------------- + bool SfxPointItem::operator==( const SfxPoolItem& rItem ) const { @@ -88,7 +88,7 @@ bool SfxPointItem::operator==( const SfxPoolItem& rItem ) const return ((SfxPointItem&)rItem).aVal == aVal; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxPointItem::Clone(SfxItemPool *) const { @@ -96,7 +96,7 @@ SfxPoolItem* SfxPointItem::Clone(SfxItemPool *) const return new SfxPointItem( *this ); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxPointItem::Create(SvStream &rStream, sal_uInt16 ) const { @@ -106,7 +106,7 @@ SfxPoolItem* SfxPointItem::Create(SvStream &rStream, sal_uInt16 ) const return new SfxPointItem(Which(), aStr); } -// ----------------------------------------------------------------------- + SvStream& SfxPointItem::Store(SvStream &rStream, sal_uInt16 ) const { @@ -115,7 +115,7 @@ SvStream& SfxPointItem::Store(SvStream &rStream, sal_uInt16 ) const return rStream; } -// ----------------------------------------------------------------------- + bool SfxPointItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const @@ -139,7 +139,7 @@ bool SfxPointItem::QueryValue( uno::Any& rVal, return true; } -// ----------------------------------------------------------------------- + bool SfxPointItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) diff --git a/svl/source/items/rectitem.cxx b/svl/source/items/rectitem.cxx index 1c676767bc20..8a1da88a515a 100644 --- a/svl/source/items/rectitem.cxx +++ b/svl/source/items/rectitem.cxx @@ -31,18 +31,18 @@ DBG_NAME(SfxRectangleItem) -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxRectangleItem, SfxPoolItem); -// ----------------------------------------------------------------------- + SfxRectangleItem::SfxRectangleItem() { DBG_CTOR(SfxRectangleItem, 0); } -// ----------------------------------------------------------------------- + SfxRectangleItem::SfxRectangleItem( sal_uInt16 nW, const Rectangle& rVal ) : SfxPoolItem( nW ), @@ -51,7 +51,7 @@ SfxRectangleItem::SfxRectangleItem( sal_uInt16 nW, const Rectangle& rVal ) : DBG_CTOR(SfxRectangleItem, 0); } -// ----------------------------------------------------------------------- + SfxRectangleItem::SfxRectangleItem( const SfxRectangleItem& rItem ) : SfxPoolItem( rItem ), @@ -60,7 +60,7 @@ SfxRectangleItem::SfxRectangleItem( const SfxRectangleItem& rItem ) : DBG_CTOR(SfxRectangleItem, 0); } -// ----------------------------------------------------------------------- + SfxItemPresentation SfxRectangleItem::GetPresentation ( @@ -79,7 +79,7 @@ SfxItemPresentation SfxRectangleItem::GetPresentation return SFX_ITEM_PRESENTATION_NAMELESS; } -// ----------------------------------------------------------------------- + bool SfxRectangleItem::operator==( const SfxPoolItem& rItem ) const { @@ -88,7 +88,7 @@ bool SfxRectangleItem::operator==( const SfxPoolItem& rItem ) const return ((SfxRectangleItem&)rItem).aVal == aVal; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxRectangleItem::Clone(SfxItemPool *) const { @@ -96,7 +96,7 @@ SfxPoolItem* SfxRectangleItem::Clone(SfxItemPool *) const return new SfxRectangleItem( *this ); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxRectangleItem::Create(SvStream &rStream, sal_uInt16 ) const { @@ -106,7 +106,7 @@ SfxPoolItem* SfxRectangleItem::Create(SvStream &rStream, sal_uInt16 ) const return new SfxRectangleItem(Which(), aStr); } -// ----------------------------------------------------------------------- + SvStream& SfxRectangleItem::Store(SvStream &rStream, sal_uInt16 ) const { @@ -116,7 +116,7 @@ SvStream& SfxRectangleItem::Store(SvStream &rStream, sal_uInt16 ) const } -// ----------------------------------------------------------------------- + bool SfxRectangleItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId) const { @@ -141,7 +141,7 @@ bool SfxRectangleItem::QueryValue( com::sun::star::uno::Any& rVal, return true; } -// ----------------------------------------------------------------------- + bool SfxRectangleItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) { diff --git a/svl/source/items/rngitem.cxx b/svl/source/items/rngitem.cxx index 80ac48a7418e..841b13ab2cc7 100644 --- a/svl/source/items/rngitem.cxx +++ b/svl/source/items/rngitem.cxx @@ -27,14 +27,14 @@ static inline sal_uInt16 Count_Impl(const sal_uInt16 * pRanges) return nCount; } -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxRangeItem, SfxPoolItem); TYPEINIT1_AUTOFACTORY(SfxUShortRangesItem, SfxPoolItem); sal_uInt16 Count_Impl( const sal_uInt16 *pRanges ); -// ----------------------------------------------------------------------- + SfxRangeItem::SfxRangeItem() { @@ -42,7 +42,7 @@ SfxRangeItem::SfxRangeItem() nTo = 0; } -// ----------------------------------------------------------------------- + SfxRangeItem::SfxRangeItem( sal_uInt16 which, sal_uInt16 from, sal_uInt16 to ): SfxPoolItem( which ), @@ -51,7 +51,7 @@ SfxRangeItem::SfxRangeItem( sal_uInt16 which, sal_uInt16 from, sal_uInt16 to ): { } -// ----------------------------------------------------------------------- + SfxRangeItem::SfxRangeItem( const SfxRangeItem& rItem ) : SfxPoolItem( rItem ) @@ -60,7 +60,7 @@ SfxRangeItem::SfxRangeItem( const SfxRangeItem& rItem ) : nTo = rItem.nTo; } -// ----------------------------------------------------------------------- + SfxItemPresentation SfxRangeItem::GetPresentation ( @@ -75,7 +75,7 @@ SfxItemPresentation SfxRangeItem::GetPresentation return SFX_ITEM_PRESENTATION_NAMELESS; } -// ----------------------------------------------------------------------- + bool SfxRangeItem::operator==( const SfxPoolItem& rItem ) const { @@ -86,14 +86,14 @@ bool SfxRangeItem::operator==( const SfxPoolItem& rItem ) const return false; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxRangeItem::Clone(SfxItemPool *) const { return new SfxRangeItem( Which(), nFrom, nTo ); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxRangeItem::Create(SvStream &rStream, sal_uInt16) const { @@ -103,7 +103,7 @@ SfxPoolItem* SfxRangeItem::Create(SvStream &rStream, sal_uInt16) const return new SfxRangeItem( Which(), nVon, nBis ); } -// ----------------------------------------------------------------------- + SvStream& SfxRangeItem::Store(SvStream &rStream, sal_uInt16) const { diff --git a/svl/source/items/sitem.cxx b/svl/source/items/sitem.cxx index bdb1128217b1..14467d4457eb 100644 --- a/svl/source/items/sitem.cxx +++ b/svl/source/items/sitem.cxx @@ -26,7 +26,7 @@ DBG_NAME(SfxSetItem) -// -------------------------------------------------------------------------- + SfxSetItem::SfxSetItem( sal_uInt16 which, const SfxItemSet &rSet) : SfxPoolItem(which), @@ -35,7 +35,7 @@ SfxSetItem::SfxSetItem( sal_uInt16 which, const SfxItemSet &rSet) : DBG_CTOR(SfxSetItem, 0); } -// -------------------------------------------------------------------------- + SfxSetItem::SfxSetItem( sal_uInt16 which, SfxItemSet *pS) : SfxPoolItem(which), @@ -45,7 +45,7 @@ SfxSetItem::SfxSetItem( sal_uInt16 which, SfxItemSet *pS) : DBG_ASSERT(pS, "SfxSetItem without set constructed" ); } -// -------------------------------------------------------------------------- + SfxSetItem::SfxSetItem( const SfxSetItem& rCopy, SfxItemPool *pPool ) : SfxPoolItem(rCopy.Which()), @@ -54,7 +54,7 @@ SfxSetItem::SfxSetItem( const SfxSetItem& rCopy, SfxItemPool *pPool ) : DBG_CTOR(SfxSetItem, 0); } -// -------------------------------------------------------------------------- + SfxSetItem::~SfxSetItem() { @@ -62,7 +62,7 @@ SfxSetItem::~SfxSetItem() delete pSet; pSet = 0; } -// -------------------------------------------------------------------------- + bool SfxSetItem::operator==( const SfxPoolItem& rCmp) const { @@ -71,7 +71,7 @@ bool SfxSetItem::operator==( const SfxPoolItem& rCmp) const return *pSet == *(((const SfxSetItem &)rCmp).pSet); } -// -------------------------------------------------------------------------- + SfxItemPresentation SfxSetItem::GetPresentation ( @@ -86,7 +86,7 @@ SfxItemPresentation SfxSetItem::GetPresentation return SFX_ITEM_PRESENTATION_NONE; } -// -------------------------------------------------------------------------- + SvStream& SfxSetItem::Store(SvStream& rStream, sal_uInt16) const { diff --git a/svl/source/items/slstitm.cxx b/svl/source/items/slstitm.cxx index 751ff5c812a0..b8ef8f4aee0b 100644 --- a/svl/source/items/slstitm.cxx +++ b/svl/source/items/slstitm.cxx @@ -28,7 +28,7 @@ DBG_NAME(SfxStringListItem) -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxStringListItem, SfxPoolItem); diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx index 9da71b854baa..8beec542924c 100644 --- a/svl/source/items/srchitem.cxx +++ b/svl/source/items/srchitem.cxx @@ -58,7 +58,7 @@ using namespace com::sun::star::util; TYPEINIT1_FACTORY(SvxSearchItem, SfxPoolItem, new SvxSearchItem(0)); -// ----------------------------------------------------------------------- + static Sequence< OUString > lcl_GetNotifyNames() { @@ -96,7 +96,7 @@ static Sequence< OUString > lcl_GetNotifyNames() return aNames; } -// ----------------------------------------------------------------------- + SvxSearchItem::SvxSearchItem( const sal_uInt16 nId ) : SfxPoolItem( nId ), @@ -185,7 +185,7 @@ SvxSearchItem::SvxSearchItem( const sal_uInt16 nId ) : } -// ----------------------------------------------------------------------- + SvxSearchItem::SvxSearchItem( const SvxSearchItem& rItem ) : @@ -209,19 +209,19 @@ SvxSearchItem::SvxSearchItem( const SvxSearchItem& rItem ) : EnableNotification( lcl_GetNotifyNames() ); } -// ----------------------------------------------------------------------- + SvxSearchItem::~SvxSearchItem() { } -// ----------------------------------------------------------------------- + SfxPoolItem* SvxSearchItem::Clone( SfxItemPool *) const { return new SvxSearchItem(*this); } -// ----------------------------------------------------------------------- + //! used below static bool operator == ( const SearchOptions& rItem1, const SearchOptions& rItem2 ) @@ -446,7 +446,7 @@ bool SvxSearchItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMembe return true; } -// ----------------------------------------------------------------------- + bool SvxSearchItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) { diff --git a/svl/source/items/szitem.cxx b/svl/source/items/szitem.cxx index b5d09d19e9bc..d6fdec0039a8 100644 --- a/svl/source/items/szitem.cxx +++ b/svl/source/items/szitem.cxx @@ -30,18 +30,18 @@ DBG_NAME(SfxSizeItem) -// ----------------------------------------------------------------------- + TYPEINIT1_AUTOFACTORY(SfxSizeItem, SfxPoolItem); -// ----------------------------------------------------------------------- + SfxSizeItem::SfxSizeItem() { DBG_CTOR(SfxSizeItem, 0); } -// ----------------------------------------------------------------------- + SfxSizeItem::SfxSizeItem( sal_uInt16 nW, const Size& rVal ) : SfxPoolItem( nW ), @@ -50,7 +50,7 @@ SfxSizeItem::SfxSizeItem( sal_uInt16 nW, const Size& rVal ) : DBG_CTOR(SfxSizeItem, 0); } -// ----------------------------------------------------------------------- + SfxSizeItem::SfxSizeItem( const SfxSizeItem& rItem ) : SfxPoolItem( rItem ), @@ -59,7 +59,7 @@ SfxSizeItem::SfxSizeItem( const SfxSizeItem& rItem ) : DBG_CTOR(SfxSizeItem, 0); } -// ----------------------------------------------------------------------- + SfxItemPresentation SfxSizeItem::GetPresentation ( @@ -75,7 +75,7 @@ SfxItemPresentation SfxSizeItem::GetPresentation return SFX_ITEM_PRESENTATION_NAMELESS; } -// ----------------------------------------------------------------------- + bool SfxSizeItem::operator==( const SfxPoolItem& rItem ) const { @@ -84,7 +84,7 @@ bool SfxSizeItem::operator==( const SfxPoolItem& rItem ) const return ((SfxSizeItem&)rItem).aVal == aVal; } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxSizeItem::Clone(SfxItemPool *) const { @@ -92,7 +92,7 @@ SfxPoolItem* SfxSizeItem::Clone(SfxItemPool *) const return new SfxSizeItem( *this ); } -// ----------------------------------------------------------------------- + SfxPoolItem* SfxSizeItem::Create(SvStream &rStream, sal_uInt16 ) const { @@ -102,7 +102,7 @@ SfxPoolItem* SfxSizeItem::Create(SvStream &rStream, sal_uInt16 ) const return new SfxSizeItem(Which(), aStr); } -// ----------------------------------------------------------------------- + SvStream& SfxSizeItem::Store(SvStream &rStream, sal_uInt16 ) const { @@ -111,7 +111,7 @@ SvStream& SfxSizeItem::Store(SvStream &rStream, sal_uInt16 ) const return rStream; } -// ----------------------------------------------------------------------- + bool SfxSizeItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const { @@ -142,7 +142,7 @@ bool SfxSizeItem::QueryValue( com::sun::star::uno::Any& rVal, return true; } -// ----------------------------------------------------------------------- + bool SfxSizeItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) { diff --git a/svl/source/items/whiter.cxx b/svl/source/items/whiter.cxx index 403bfd1e69cf..d1502c74b151 100644 --- a/svl/source/items/whiter.cxx +++ b/svl/source/items/whiter.cxx @@ -23,7 +23,7 @@ DBG_NAME(SfxWhichIter) -// ----------------------------------------------------------------------- + SfxWhichIter::SfxWhichIter( const SfxItemSet& rSet, sal_uInt16 nFromWh, sal_uInt16 nToWh ): pRanges(rSet.GetRanges()), @@ -35,14 +35,14 @@ SfxWhichIter::SfxWhichIter( const SfxItemSet& rSet, sal_uInt16 nFromWh, sal_uInt FirstWhich(); } -// ----------------------------------------------------------------------- + SfxWhichIter::~SfxWhichIter() { DBG_DTOR(SfxWhichIter, 0); } -// ----------------------------------------------------------------------- + sal_uInt16 SfxWhichIter::NextWhich() { @@ -63,7 +63,7 @@ sal_uInt16 SfxWhichIter::NextWhich() return 0; } -// ----------------------------------------------------------------------- + sal_uInt16 SfxWhichIter::FirstWhich() { diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx index 14745c1d653b..9ebb0dd927e9 100644 --- a/svl/source/misc/documentlockfile.cxx +++ b/svl/source/misc/documentlockfile.cxx @@ -52,18 +52,18 @@ namespace svt { bool DocumentLockFile::m_bAllowInteraction = true; -// ---------------------------------------------------------------------- + DocumentLockFile::DocumentLockFile( const OUString& aOrigURL ) : LockFileCommon( aOrigURL, OUString( ".~lock." ) ) { } -// ---------------------------------------------------------------------- + DocumentLockFile::~DocumentLockFile() { } -// ---------------------------------------------------------------------- + void DocumentLockFile::WriteEntryToStream( uno::Sequence< OUString > aEntry, uno::Reference< io::XOutputStream > xOutput ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -84,7 +84,7 @@ void DocumentLockFile::WriteEntryToStream( uno::Sequence< OUString > aEntry, uno xOutput->writeBytes( aData ); } -// ---------------------------------------------------------------------- + bool DocumentLockFile::CreateOwnLockFile() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -131,7 +131,7 @@ bool DocumentLockFile::CreateOwnLockFile() return true; } -// ---------------------------------------------------------------------- + uno::Sequence< OUString > DocumentLockFile::GetLockData() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -155,7 +155,7 @@ uno::Sequence< OUString > DocumentLockFile::GetLockData() return ParseEntry( aBuffer, nCurPos ); } -// ---------------------------------------------------------------------- + uno::Reference< io::XInputStream > DocumentLockFile::OpenStream() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -167,7 +167,7 @@ uno::Reference< io::XInputStream > DocumentLockFile::OpenStream() return aSourceContent.openStream(); } -// ---------------------------------------------------------------------- + bool DocumentLockFile::OverwriteOwnLockFile() { // allows to overwrite the lock file with the current data @@ -194,7 +194,7 @@ bool DocumentLockFile::OverwriteOwnLockFile() return true; } -// ---------------------------------------------------------------------- + void DocumentLockFile::RemoveFile() { ::osl::MutexGuard aGuard( m_aMutex ); diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx index e0f3f89d0325..ea0a5965649f 100644 --- a/svl/source/misc/lockfilecommon.cxx +++ b/svl/source/misc/lockfilecommon.cxx @@ -53,7 +53,7 @@ using namespace ::com::sun::star; namespace svt { -// ---------------------------------------------------------------------- + LockFileCommon::LockFileCommon( const OUString& aOrigURL, const OUString& aPrefix ) { INetURLObject aDocURL = ResolveLinks( INetURLObject( aOrigURL ) ); @@ -65,12 +65,12 @@ LockFileCommon::LockFileCommon( const OUString& aOrigURL, const OUString& aPrefi m_aURL = INetURLObject( aShareURLString ).GetMainURL( INetURLObject::NO_DECODE ); } -// ---------------------------------------------------------------------- + LockFileCommon::~LockFileCommon() { } -// ---------------------------------------------------------------------- + INetURLObject LockFileCommon::ResolveLinks( const INetURLObject& aDocURL ) { if ( aDocURL.HasError() ) @@ -94,7 +94,7 @@ INetURLObject LockFileCommon::ResolveLinks( const INetURLObject& aDocURL ) return INetURLObject( aURLToCheck ); } -// ---------------------------------------------------------------------- + uno::Sequence< uno::Sequence< OUString > > LockFileCommon::ParseList( const uno::Sequence< sal_Int8 >& aBuffer ) { sal_Int32 nCurPos = 0; @@ -113,7 +113,7 @@ uno::Sequence< uno::Sequence< OUString > > LockFileCommon::ParseList( const uno: return aResult; } -// ---------------------------------------------------------------------- + uno::Sequence< OUString > LockFileCommon::ParseEntry( const uno::Sequence< sal_Int8 >& aBuffer, sal_Int32& io_nCurPos ) { uno::Sequence< OUString > aResult( LOCKFILE_ENTRYSIZE ); @@ -130,7 +130,7 @@ uno::Sequence< OUString > LockFileCommon::ParseEntry( const uno::Sequence< sal_I return aResult; } -// ---------------------------------------------------------------------- + OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sal_Int32& io_nCurPos ) { OStringBuffer aResult; @@ -168,7 +168,7 @@ OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sa return OStringToOUString( aResult.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ); } -// ---------------------------------------------------------------------- + OUString LockFileCommon::EscapeCharacters( const OUString& aSource ) { OUStringBuffer aBuffer; @@ -183,7 +183,7 @@ OUString LockFileCommon::EscapeCharacters( const OUString& aSource ) return aBuffer.makeStringAndClear(); } -// ---------------------------------------------------------------------- + OUString LockFileCommon::GetOOOUserName() { SvtUserOptions aUserOpt; @@ -195,7 +195,7 @@ OUString LockFileCommon::GetOOOUserName() return aName; } -// ---------------------------------------------------------------------- + OUString LockFileCommon::GetCurrentLocalTime() { OUString aTime; @@ -219,7 +219,7 @@ OUString LockFileCommon::GetCurrentLocalTime() return aTime; } -// ---------------------------------------------------------------------- + uno::Sequence< OUString > LockFileCommon::GenerateOwnEntry() { uno::Sequence< OUString > aResult( LOCKFILE_ENTRYSIZE ); diff --git a/svl/source/misc/sharecontrolfile.cxx b/svl/source/misc/sharecontrolfile.cxx index c1e69060fc0d..c174bb0f79a8 100644 --- a/svl/source/misc/sharecontrolfile.cxx +++ b/svl/source/misc/sharecontrolfile.cxx @@ -51,7 +51,7 @@ using namespace ::com::sun::star; namespace svt { -// ---------------------------------------------------------------------- + ShareControlFile::ShareControlFile( const OUString& aOrigURL ) : LockFileCommon( aOrigURL, OUString( ".~sharing." ) ) { @@ -61,7 +61,7 @@ ShareControlFile::ShareControlFile( const OUString& aOrigURL ) throw io::NotConnectedException(); } -// ---------------------------------------------------------------------- + ShareControlFile::~ShareControlFile() { try @@ -72,7 +72,7 @@ ShareControlFile::~ShareControlFile() {} } -// ---------------------------------------------------------------------- + void ShareControlFile::OpenStream() { // if it is called outside of constructor the mutex must be locked already @@ -128,7 +128,7 @@ void ShareControlFile::OpenStream() } } -// ---------------------------------------------------------------------- + void ShareControlFile::Close() { // if it is called outside of destructor the mutex must be locked @@ -154,7 +154,7 @@ void ShareControlFile::Close() } } -// ---------------------------------------------------------------------- + uno::Sequence< uno::Sequence< OUString > > ShareControlFile::GetUsersData() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -191,7 +191,7 @@ uno::Sequence< uno::Sequence< OUString > > ShareControlFile::GetUsersData() return m_aUsersData; } -// ---------------------------------------------------------------------- + void ShareControlFile::SetUsersDataAndStore( const uno::Sequence< uno::Sequence< OUString > >& aUsersData ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -227,7 +227,7 @@ void ShareControlFile::SetUsersDataAndStore( const uno::Sequence< uno::Sequence< m_aUsersData = aUsersData; } -// ---------------------------------------------------------------------- + uno::Sequence< OUString > ShareControlFile::InsertOwnEntry() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -273,7 +273,7 @@ uno::Sequence< OUString > ShareControlFile::InsertOwnEntry() return aNewEntry; } -// ---------------------------------------------------------------------- + bool ShareControlFile::HasOwnEntry() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -300,7 +300,7 @@ bool ShareControlFile::HasOwnEntry() return false; } -// ---------------------------------------------------------------------- + void ShareControlFile::RemoveEntry( const uno::Sequence< OUString >& aArgEntry ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -341,7 +341,7 @@ void ShareControlFile::RemoveEntry( const uno::Sequence< OUString >& aArgEntry ) } } -// ---------------------------------------------------------------------- + void ShareControlFile::RemoveFile() { ::osl::MutexGuard aGuard( m_aMutex ); diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx index f20611f6e0b6..a3b704697eab 100644 --- a/svl/source/uno/pathservice.cxx +++ b/svl/source/uno/pathservice.cxx @@ -26,7 +26,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> -// ----------------------------------------------------------------------- + class PathService : public ::cppu::WeakImplHelper2< css::frame::XConfigManager, css::lang::XServiceInfo > { @@ -79,7 +79,7 @@ public: {} }; -// ----------------------------------------------------------------------- + css::uno::Reference< css::uno::XInterface > PathService_CreateInstance ( SAL_UNUSED_PARAMETER const css::uno::Reference< @@ -89,6 +89,6 @@ css::uno::Reference< css::uno::XInterface > PathService_CreateInstance ( static_cast< cppu::OWeakObject* >(new PathService())); } -// ----------------------------------------------------------------------- + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svl/source/uno/registerservices.cxx b/svl/source/uno/registerservices.cxx index e188dbdb8055..1df00c98eaed 100644 --- a/svl/source/uno/registerservices.cxx +++ b/svl/source/uno/registerservices.cxx @@ -28,7 +28,7 @@ using css::uno::Reference; using css::uno::Sequence; -// ------------------------------------------------------------------------------------- + #define DECLARE_CREATEINSTANCE( ImplName ) \ Reference< css::uno::XInterface > SAL_CALL ImplName##_CreateInstance( const Reference< css::lang::XMultiServiceFactory >& ); @@ -37,7 +37,7 @@ DECLARE_CREATEINSTANCE( SvNumberFormatterServiceObj ) DECLARE_CREATEINSTANCE( SvNumberFormatsSupplierServiceObject ) DECLARE_CREATEINSTANCE( PathService ) -// ------------------------------------------------------------------------------------- + extern "C" { |