summaryrefslogtreecommitdiff
path: root/unotools/source/misc
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/misc')
-rw-r--r--unotools/source/misc/closeveto.cxx24
-rw-r--r--unotools/source/misc/componentresmodule.cxx16
-rw-r--r--unotools/source/misc/datetime.cxx6
-rw-r--r--unotools/source/misc/desktopterminationobserver.cxx20
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx20
-rw-r--r--unotools/source/misc/fontcvt.cxx36
-rw-r--r--unotools/source/misc/fontdefs.cxx4
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx20
-rw-r--r--unotools/source/misc/syslocale.cxx2
9 files changed, 74 insertions, 74 deletions
diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx
index b645240cfee1..b59c45342532 100644
--- a/unotools/source/misc/closeveto.cxx
+++ b/unotools/source/misc/closeveto.cxx
@@ -25,10 +25,10 @@
#include <rtl/ref.hxx>
#include <tools/diagnose_ex.h>
-//......................................................................................................................
+
namespace utl
{
-//......................................................................................................................
+
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::XInterface;
@@ -46,9 +46,9 @@ namespace utl
using ::com::sun::star::util::CloseVetoException;
using ::com::sun::star::lang::EventObject;
- //==================================================================================================================
+
//= CloseListener_Impl
- //==================================================================================================================
+
typedef ::cppu::WeakImplHelper1 < XCloseListener
> CloseListener_Base;
class CloseListener_Impl : public CloseListener_Base
@@ -100,18 +100,18 @@ namespace utl
(void)i_source;
}
- //==================================================================================================================
+
//= CloseVeto_Data
- //==================================================================================================================
+
struct CloseVeto_Data
{
Reference< XCloseable > xCloseable;
::rtl::Reference< CloseListener_Impl > pListener;
};
- //==================================================================================================================
+
//= operations
- //==================================================================================================================
+
namespace
{
@@ -146,9 +146,9 @@ namespace utl
}
}
- //==================================================================================================================
+
//= CloseVeto
- //==================================================================================================================
+
CloseVeto::CloseVeto( const Reference< XInterface >& i_closeable )
:m_pData( new CloseVeto_Data )
@@ -162,8 +162,8 @@ namespace utl
lcl_deinit( *m_pData );
}
-//......................................................................................................................
+
} // namespace utl
-//......................................................................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/componentresmodule.cxx b/unotools/source/misc/componentresmodule.cxx
index 101bf989ae62..8a01cae59864 100644
--- a/unotools/source/misc/componentresmodule.cxx
+++ b/unotools/source/misc/componentresmodule.cxx
@@ -23,14 +23,14 @@
#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
-//........................................................................
+
namespace utl
{
-//........................................................................
- //====================================================================
+
+
//= OComponentResModuleImpl
- //====================================================================
+
/** PIMPL-class for OComponentResourceModule
not threadsafe!
@@ -95,9 +95,9 @@ namespace utl
return m_pResources;
}
- //====================================================================
+
//= OComponentResourceModule
- //====================================================================
+
OComponentResourceModule::OComponentResourceModule( const OString& _rResFilePrefix )
:BaseClass()
@@ -130,8 +130,8 @@ namespace utl
BaseClass::onLastClient();
}
-//........................................................................
+
} // namespace utl
-//........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index 8283807e738c..bd89bde2ee00 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -140,7 +140,7 @@ namespace
}
}
-//.........................................................................
+
namespace utl
{
@@ -434,8 +434,8 @@ bool ISO8601parseTime(const OUString &aTimeStr, starutil::Time& rTime)
return bSuccess;
}
-//.........................................................................
+
} // namespace utl
-//.........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/desktopterminationobserver.cxx b/unotools/source/misc/desktopterminationobserver.cxx
index 55901ebc310f..a6432f172371 100644
--- a/unotools/source/misc/desktopterminationobserver.cxx
+++ b/unotools/source/misc/desktopterminationobserver.cxx
@@ -26,10 +26,10 @@
#include <list>
-//........................................................................
+
namespace utl
{
-//........................................................................
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -37,7 +37,7 @@ namespace utl
namespace
{
- //................................................................
+
typedef ::std::list< ITerminationListener* > Listeners;
struct ListenerAdminData
@@ -49,16 +49,16 @@ namespace utl
ListenerAdminData() : bAlreadyTerminated( false ), bCreatedAdapter( false ) { }
};
- //................................................................
+
ListenerAdminData& getListenerAdminData()
{
static ListenerAdminData s_aData;
return s_aData;
}
- //================================================================
+
//= OObserverImpl
- //================================================================
+
class OObserverImpl : public ::cppu::WeakImplHelper1< XTerminateListener >
{
public:
@@ -169,9 +169,9 @@ namespace utl
}
}
- //====================================================================
+
//= DesktopTerminationObserver
- //====================================================================
+
void DesktopTerminationObserver::registerTerminationListener( ITerminationListener* _pListener )
{
@@ -210,8 +210,8 @@ namespace utl
}
}
-//........................................................................
+
} // namespace utl
-//........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx
index d9446d59ba58..10308d2dc73f 100644
--- a/unotools/source/misc/eventlisteneradapter.cxx
+++ b/unotools/source/misc/eventlisteneradapter.cxx
@@ -25,17 +25,17 @@
#include <osl/diagnose.h>
#include <cppuhelper/implbase1.hxx>
-//.........................................................................
+
namespace utl
{
-//.........................................................................
+
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
- //=====================================================================
+
//= OEventListenerImpl
- //=====================================================================
+
class OEventListenerImpl : public ::cppu::WeakImplHelper1< XEventListener >
{
protected:
@@ -93,18 +93,18 @@ namespace utl
m_pAdapter->_disposing(_rSource);
}
- //=====================================================================
+
//= OEventListenerAdapterImpl
- //=====================================================================
+
struct OEventListenerAdapterImpl
{
public:
::std::vector< void* > aListeners;
};
- //=====================================================================
+
//= OEventListenerAdapter
- //=====================================================================
+
OEventListenerAdapter::OEventListenerAdapter()
:m_pImpl(new OEventListenerAdapterImpl)
@@ -170,8 +170,8 @@ namespace utl
m_pImpl->aListeners.push_back(pListenerImpl);
}
-//.........................................................................
+
} // namespace utl
-//.........................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index 277afed3960f..18c64a8963c9 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -32,7 +32,7 @@
//various holes in OpenSymbol which were filled by StarSymbol, i.e.
//destination mapping points which are empty in OpenSymbol
-//=======================================================================
+
// note: the character mappings that are only approximations
// are marked (with an empty comment)
@@ -110,7 +110,7 @@ static const sal_Unicode aStarBatsTab[224] =
0, 0, 0, 0xE03a
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aStarMathTab[224] =
{
@@ -186,7 +186,7 @@ static const sal_Unicode aStarMathTab[224] =
0x2124, 0x211a, 0x211d, 0x2102
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aWingDingsTab[224] =
{
@@ -262,7 +262,7 @@ static const sal_Unicode aWingDingsTab[224] =
0xe4c2, 0xe4c3, 0xe4c4, 0xe4c5
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aWingDings2Tab[224] =
{
@@ -338,7 +338,7 @@ static const sal_Unicode aWingDings2Tab[224] =
0, 0, 0, 0
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aWingDings3Tab[224] =
{
@@ -414,7 +414,7 @@ static const sal_Unicode aWingDings3Tab[224] =
0, 0, 0, 0
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aWebDingsTab[224] =
{
@@ -490,7 +490,7 @@ static const sal_Unicode aWebDingsTab[224] =
0xe3db, 0xe3dc, 0xe3dd, 0xe3de
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aAdobeSymbolTab[224] =
{
@@ -567,7 +567,7 @@ static const sal_Unicode aAdobeSymbolTab[224] =
0xe167, 0xe168, 0xe169, 0,
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aMonotypeSortsTab[224] =
{
@@ -643,7 +643,7 @@ static const sal_Unicode aMonotypeSortsTab[224] =
0x27bc, 0x27bd, 0x27be, 0,
};
-// -----------------------------------------------------------------------
+
static const sal_Unicode aMTExtraTab[224] =
{
@@ -793,7 +793,7 @@ static const sal_Unicode aAdobeSymbolToAppleSymbolTab[224] =
0x23AB, 0x23AC, 0x23AD, 0x00FF
};
-//=======================================================================
+
static sal_Unicode ImplStarSymbolToStarBats( sal_Unicode c )
{
@@ -1334,7 +1334,7 @@ StarSymbolToMSMultiFont *CreateStarSymbolToMSMultiFont(bool bPerfectOnly)
return new StarSymbolToMSMultiFontImpl(bPerfectOnly);
}
-//=======================================================================
+
sal_Unicode ConvertChar::RecodeChar( sal_Unicode cChar ) const
{
@@ -1372,7 +1372,7 @@ sal_Unicode ConvertChar::RecodeChar( sal_Unicode cChar ) const
return cRetVal ? cRetVal : cChar;
}
-// -----------------------------------------------------------------------
+
// recode the string assuming the character codes are symbol codes
// from an traditional symbol font (i.e. U+F020..U+F0FF)
@@ -1400,7 +1400,7 @@ void ConvertChar::RecodeString( OUString& rStr, sal_Int32 nIndex, sal_Int32 nLen
rStr = aTmpStr.makeStringAndClear();
}
-//=======================================================================
+
struct RecodeTable { const char* pOrgName; ConvertChar aCvt;};
@@ -1434,7 +1434,7 @@ static const RecodeTable aAppleSymbolRecodeTable[] = {
static ConvertChar aImplStarSymbolCvt = { NULL, "StarBats", ImplStarSymbolToStarBats };
-// -----------------------------------------------------------------------
+
const ConvertChar* ConvertChar::GetRecodeData( const OUString& rOrgFontName, const OUString& rMapFontName )
{
@@ -1480,7 +1480,7 @@ const ConvertChar* ConvertChar::GetRecodeData( const OUString& rOrgFontName, con
return pCvt;
}
-//=======================================================================
+
FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rOrgName, sal_uLong nFlags )
{
@@ -1511,7 +1511,7 @@ FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rOrgName,
return (FontToSubsFontConverter)pCvt;
}
-// -----------------------------------------------------------------------
+
void DestroyFontToSubsFontConverter(
SAL_UNUSED_PARAMETER FontToSubsFontConverter )
@@ -1519,7 +1519,7 @@ void DestroyFontToSubsFontConverter(
//TODO: nothing to do for now, because we use static ImplCvtChars
}
-// -----------------------------------------------------------------------
+
sal_Unicode ConvertFontToSubsFontChar(
FontToSubsFontConverter hConverter, sal_Unicode cChar )
@@ -1530,7 +1530,7 @@ sal_Unicode ConvertFontToSubsFontChar(
return cChar;
}
-// -----------------------------------------------------------------------
+
OUString GetFontToSubsFontName( FontToSubsFontConverter hConverter )
{
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index 489374eb44a7..0e02129280c6 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -488,7 +488,7 @@ OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex )
return OUString( rTokenStr.getStr() + nTokenStart, nTokenLen );
}
-// =======================================================================
+
static bool ImplIsFontToken( const OUString& rName, const OUString& rToken )
{
@@ -522,7 +522,7 @@ void AddTokenFontName( OUString& rName, const OUString& rNewToken )
ImplAppendFontToken( rName, rNewToken );
}
-// =======================================================================
+
OUString GetSubsFontName( const OUString& rName, sal_uLong nFlags )
{
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index 626a8b5042c9..b4d95ad3d5c4 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -23,10 +23,10 @@
#include <cppuhelper/implbase1.hxx>
#include <tools/debug.hxx>
-//............................................................................
+
namespace utl
{
-//............................................................................
+
using ::com::sun::star::uno::XInterface;
using ::com::sun::star::uno::Reference;
@@ -39,9 +39,9 @@ namespace utl
using ::com::sun::star::util::XCloseListener;
using ::com::sun::star::util::CloseVetoException;
- //========================================================================
+
//= DisposableComponent
- //========================================================================
+
DisposableComponent::DisposableComponent( const Reference< XInterface >& _rxComponent )
:m_xComponent( _rxComponent, UNO_QUERY )
@@ -66,9 +66,9 @@ namespace utl
}
}
- //========================================================================
+
//= CloseableComponentImpl
- //========================================================================
+
DBG_NAME( CloseableComponentImpl )
typedef ::cppu::WeakImplHelper1 < XCloseListener
> CloseableComponentImpl_Base;
@@ -212,9 +212,9 @@ namespace utl
// same reasoning for this assertion as in ->notifyClosing
}
- //========================================================================
+
//= CloseableComponentImpl
- //========================================================================
+
DBG_NAME( CloseableComponent )
CloseableComponent::CloseableComponent( const Reference< XInterface >& _rxComponent )
@@ -231,8 +231,8 @@ namespace utl
DBG_DTOR( CloseableComponent, NULL );
}
-//............................................................................
+
} // namespace utl
-//............................................................................
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx
index 863d88873c5b..86021cc475ba 100644
--- a/unotools/source/misc/syslocale.cxx
+++ b/unotools/source/misc/syslocale.cxx
@@ -115,7 +115,7 @@ void SvtSysLocale_Impl::setDateAcceptancePatternsConfig()
}
}
-// ====================================================================
+
SvtSysLocale::SvtSysLocale()
{