summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /embeddedobj
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (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 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/embedobj.cxx32
-rw-r--r--embeddedobj/source/commonembedding/miscobj.cxx46
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx68
-rw-r--r--embeddedobj/source/commonembedding/specialobject.cxx4
-rw-r--r--embeddedobj/source/general/docholder.cxx64
-rw-r--r--embeddedobj/source/general/dummyobject.cxx76
-rw-r--r--embeddedobj/source/general/xcreator.cxx22
-rw-r--r--embeddedobj/source/msole/olecomponent.cxx98
-rw-r--r--embeddedobj/source/msole/oleembed.cxx36
-rw-r--r--embeddedobj/source/msole/olemisc.cxx48
-rw-r--r--embeddedobj/source/msole/olepersist.cxx88
-rw-r--r--embeddedobj/source/msole/ownview.cxx32
-rw-r--r--embeddedobj/source/msole/xdialogcreator.cxx18
-rw-r--r--embeddedobj/source/msole/xolefactory.cxx20
-rw-r--r--embeddedobj/test/MainThreadExecutor/xexecutor.cxx12
-rw-r--r--embeddedobj/test/mtexecutor/bitmapcreator.cxx14
-rw-r--r--embeddedobj/test/mtexecutor/mainthreadexecutor.cxx18
17 files changed, 348 insertions, 348 deletions
diff --git a/embeddedobj/source/commonembedding/embedobj.cxx b/embeddedobj/source/commonembedding/embedobj.cxx
index 6983fc0de2e3..9347de8bbbdf 100644
--- a/embeddedobj/source/commonembedding/embedobj.cxx
+++ b/embeddedobj/source/commonembedding/embedobj.cxx
@@ -69,7 +69,7 @@ awt::Rectangle GetRectangleInterception( const awt::Rectangle& aRect1, const awt
return aResult;
}
-//----------------------------------------------
+
sal_Int32 OCommonEmbeddedObject::ConvertVerbToState_Impl( sal_Int32 nVerb )
{
for ( sal_Int32 nInd = 0; nInd < m_aVerbTable.getLength(); nInd++ )
@@ -79,7 +79,7 @@ sal_Int32 OCommonEmbeddedObject::ConvertVerbToState_Impl( sal_Int32 nVerb )
throw lang::IllegalArgumentException(); // TODO: unexpected verb provided
}
-//----------------------------------------------
+
void OCommonEmbeddedObject::Deactivate()
{
uno::Reference< util::XModifiable > xModif( m_pDocHolder->GetComponent(), uno::UNO_QUERY );
@@ -112,7 +112,7 @@ void OCommonEmbeddedObject::Deactivate()
xClientSite->visibilityChanged( sal_False );
}
-//----------------------------------------------
+
void OCommonEmbeddedObject::StateChangeNotification_Impl( sal_Bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState ,::osl::ResettableMutexGuard& rGuard )
{
if ( m_pInterfaceContainer )
@@ -150,7 +150,7 @@ void OCommonEmbeddedObject::StateChangeNotification_Impl( sal_Bool bBeforeChange
}
}
-//----------------------------------------------
+
void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState )
{
// TODO: may be needs interaction handler to detect wherether the object state
@@ -390,7 +390,7 @@ void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState )
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
}
-//----------------------------------------------
+
uno::Sequence< sal_Int32 > OCommonEmbeddedObject::GetIntermediateStatesSequence_Impl( sal_Int32 nNewState )
{
sal_Int32 nCurInd = 0;
@@ -417,7 +417,7 @@ uno::Sequence< sal_Int32 > OCommonEmbeddedObject::GetIntermediateStatesSequence_
return m_pIntermediateStatesSeqs[nCurInd][nDestInd];
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState )
throw ( embed::UnreachableStateException,
embed::WrongStateException,
@@ -490,7 +490,7 @@ void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState )
}
}
-//----------------------------------------------
+
uno::Sequence< sal_Int32 > SAL_CALL OCommonEmbeddedObject::getReachableStates()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -505,7 +505,7 @@ uno::Sequence< sal_Int32 > SAL_CALL OCommonEmbeddedObject::getReachableStates()
return m_aAcceptedStates;
}
-//----------------------------------------------
+
sal_Int32 SAL_CALL OCommonEmbeddedObject::getCurrentState()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -520,7 +520,7 @@ sal_Int32 SAL_CALL OCommonEmbeddedObject::getCurrentState()
return m_nObjectState;
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::doVerb( sal_Int32 nVerbID )
throw ( lang::IllegalArgumentException,
embed::WrongStateException,
@@ -569,7 +569,7 @@ void SAL_CALL OCommonEmbeddedObject::doVerb( sal_Int32 nVerbID )
}
}
-//----------------------------------------------
+
uno::Sequence< embed::VerbDescriptor > SAL_CALL OCommonEmbeddedObject::getSupportedVerbs()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -584,7 +584,7 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL OCommonEmbeddedObject::getSuppor
return m_aObjectVerbs;
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::setClientSite(
const uno::Reference< embed::XEmbeddedClient >& xClient )
throw ( embed::WrongStateException,
@@ -605,7 +605,7 @@ void SAL_CALL OCommonEmbeddedObject::setClientSite(
}
}
-//----------------------------------------------
+
uno::Reference< embed::XEmbeddedClient > SAL_CALL OCommonEmbeddedObject::getClientSite()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -620,7 +620,7 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL OCommonEmbeddedObject::getClie
return m_xClientSite;
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::update()
throw ( embed::WrongStateException,
uno::Exception,
@@ -637,7 +637,7 @@ void SAL_CALL OCommonEmbeddedObject::update()
PostEvent_Impl( OUString( "OnVisAreaChanged" ) );
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::setUpdateMode( sal_Int32 nMode )
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -656,7 +656,7 @@ void SAL_CALL OCommonEmbeddedObject::setUpdateMode( sal_Int32 nMode )
m_nUpdateMode = nMode;
}
-//----------------------------------------------
+
sal_Int64 SAL_CALL OCommonEmbeddedObject::getStatus( sal_Int64 )
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -667,7 +667,7 @@ sal_Int64 SAL_CALL OCommonEmbeddedObject::getStatus( sal_Int64 )
return m_nMiscStatus;
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::setContainerName( const OUString& sName )
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/commonembedding/miscobj.cxx b/embeddedobj/source/commonembedding/miscobj.cxx
index e21b38657731..e8849f17dc6f 100644
--- a/embeddedobj/source/commonembedding/miscobj.cxx
+++ b/embeddedobj/source/commonembedding/miscobj.cxx
@@ -40,7 +40,7 @@ using namespace ::com::sun::star;
uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl( const uno::Sequence< beans::PropertyValue >& aMedDescr,
sal_Bool bCanUseDocumentBaseURL );
-//------------------------------------------------------
+
OCommonEmbeddedObject::OCommonEmbeddedObject( const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Sequence< beans::NamedValue >& aObjProps )
: m_pDocHolder( NULL )
@@ -64,7 +64,7 @@ OCommonEmbeddedObject::OCommonEmbeddedObject( const uno::Reference< uno::XCompon
CommonInit_Impl( aObjProps );
}
-//------------------------------------------------------
+
OCommonEmbeddedObject::OCommonEmbeddedObject(
const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Sequence< beans::NamedValue >& aObjProps,
@@ -92,7 +92,7 @@ OCommonEmbeddedObject::OCommonEmbeddedObject(
LinkInit_Impl( aObjProps, aMediaDescr, aObjectDescr );
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::CommonInit_Impl( const uno::Sequence< beans::NamedValue >& aObjectProps )
{
OSL_ENSURE( m_xContext.is(), "No ServiceFactory is provided!\n" );
@@ -215,7 +215,7 @@ void OCommonEmbeddedObject::CommonInit_Impl( const uno::Sequence< beans::NamedVa
}
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::LinkInit_Impl(
const uno::Sequence< beans::NamedValue >& aObjectProps,
const uno::Sequence< beans::PropertyValue >& aMediaDescr,
@@ -259,7 +259,7 @@ void OCommonEmbeddedObject::LinkInit_Impl(
m_pDocHolder->SetOutplaceDispatchInterceptor( xDispatchInterceptor );
}
-//------------------------------------------------------
+
OCommonEmbeddedObject::~OCommonEmbeddedObject()
{
if ( m_pInterfaceContainer || m_pDocHolder )
@@ -293,7 +293,7 @@ OCommonEmbeddedObject::~OCommonEmbeddedObject()
}
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::requestPositioning( const awt::Rectangle& aRect )
{
// the method is called in case object is inplace active and the object window was resized
@@ -317,7 +317,7 @@ void OCommonEmbeddedObject::requestPositioning( const awt::Rectangle& aRect )
}
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::PostEvent_Impl( const OUString& aEventName )
{
if ( m_pInterfaceContainer )
@@ -352,7 +352,7 @@ void OCommonEmbeddedObject::PostEvent_Impl( const OUString& aEventName )
}
}
-//------------------------------------------------------
+
uno::Any SAL_CALL OCommonEmbeddedObject::queryInterface( const uno::Type& rType )
throw( uno::RuntimeException )
{
@@ -386,21 +386,21 @@ uno::Any SAL_CALL OCommonEmbeddedObject::queryInterface( const uno::Type& rType
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::acquire()
throw()
{
::cppu::OWeakObject::acquire() ;
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::release()
throw()
{
::cppu::OWeakObject::release() ;
}
-//------------------------------------------------------
+
uno::Sequence< uno::Type > SAL_CALL OCommonEmbeddedObject::getTypes()
throw( uno::RuntimeException )
{
@@ -442,7 +442,7 @@ uno::Sequence< uno::Type > SAL_CALL OCommonEmbeddedObject::getTypes()
}
-//------------------------------------------------------
+
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getImplementationId()
throw( uno::RuntimeException )
{
@@ -461,7 +461,7 @@ uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getImplementationId()
return pID->getImplementationId() ;
}
-//------------------------------------------------------
+
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
throw ( uno::RuntimeException )
{
@@ -471,7 +471,7 @@ uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
return m_aClassID;
}
-//------------------------------------------------------
+
OUString SAL_CALL OCommonEmbeddedObject::getClassName()
throw ( uno::RuntimeException )
{
@@ -481,7 +481,7 @@ OUString SAL_CALL OCommonEmbeddedObject::getClassName()
return m_aClassName;
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::setClassInfo(
const uno::Sequence< sal_Int8 >& /*aClassID*/, const OUString& /*aClassName*/ )
throw ( lang::NoSupportException,
@@ -491,7 +491,7 @@ void SAL_CALL OCommonEmbeddedObject::setClassInfo(
throw lang::NoSupportException(); //TODO:
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > SAL_CALL OCommonEmbeddedObject::getComponent()
throw ( uno::RuntimeException )
{
@@ -510,7 +510,7 @@ uno::Reference< util::XCloseable > SAL_CALL OCommonEmbeddedObject::getComponent(
return uno::Reference< util::XCloseable >( m_pDocHolder->GetComponent(), uno::UNO_QUERY );
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -525,7 +525,7 @@ void SAL_CALL OCommonEmbeddedObject::addStateChangeListener( const uno::Referenc
xListener );
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::removeStateChangeListener(
const uno::Reference< embed::XStateChangeListener >& xListener )
throw (uno::RuntimeException)
@@ -536,7 +536,7 @@ void SAL_CALL OCommonEmbeddedObject::removeStateChangeListener(
xListener );
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::close( sal_Bool bDeliverOwnership )
throw ( util::CloseVetoException,
uno::RuntimeException )
@@ -641,7 +641,7 @@ void SAL_CALL OCommonEmbeddedObject::close( sal_Bool bDeliverOwnership )
m_bClosed = sal_True; // the closing succeeded
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -655,7 +655,7 @@ void SAL_CALL OCommonEmbeddedObject::addCloseListener( const uno::Reference< uti
m_pInterfaceContainer->addInterface( ::getCppuType( (const uno::Reference< util::XCloseListener >*)0 ), xListener );
}
-//----------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw (uno::RuntimeException)
{
@@ -665,7 +665,7 @@ void SAL_CALL OCommonEmbeddedObject::removeCloseListener( const uno::Reference<
xListener );
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -679,7 +679,7 @@ void SAL_CALL OCommonEmbeddedObject::addEventListener( const uno::Reference< doc
m_pInterfaceContainer->addInterface( ::getCppuType( (const uno::Reference< document::XEventListener >*)0 ), xListener );
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::removeEventListener( const uno::Reference< document::XEventListener >& xListener )
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 1a09f57b5569..97d788a412af 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -57,7 +57,7 @@
using namespace ::com::sun::star;
-//------------------------------------------------------
+
uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl( const uno::Sequence< beans::PropertyValue >& aMedDescr,
sal_Bool bCanUseDocumentBaseURL )
{
@@ -84,7 +84,7 @@ uno::Sequence< beans::PropertyValue > GetValuableArgs_Impl( const uno::Sequence<
return aResult;
}
-//------------------------------------------------------
+
uno::Sequence< beans::PropertyValue > addAsTemplate( const uno::Sequence< beans::PropertyValue >& aOrig )
{
sal_Bool bAsTemplateSet = sal_False;
@@ -113,7 +113,7 @@ uno::Sequence< beans::PropertyValue > addAsTemplate( const uno::Sequence< beans:
return aResult;
}
-//------------------------------------------------------
+
uno::Reference< io::XInputStream > createTempInpStreamFromStor(
const uno::Reference< embed::XStorage >& xStorage,
const uno::Reference< uno::XComponentContext >& xContext )
@@ -170,7 +170,7 @@ uno::Reference< io::XInputStream > createTempInpStreamFromStor(
}
-//------------------------------------------------------
+
static void TransferMediaType( const uno::Reference< embed::XStorage >& i_rSource, const uno::Reference< embed::XStorage >& i_rTarget )
{
try
@@ -186,7 +186,7 @@ static void TransferMediaType( const uno::Reference< embed::XStorage >& i_rSourc
}
}
-//------------------------------------------------------
+
static uno::Reference< util::XCloseable > CreateDocument( const uno::Reference< uno::XComponentContext >& _rxContext,
const OUString& _rDocumentServiceName, bool _bEmbeddedScriptSupport, const bool i_bDocumentRecoverySupport )
{
@@ -215,7 +215,7 @@ static uno::Reference< util::XCloseable > CreateDocument( const uno::Reference<
return uno::Reference< util::XCloseable >( xDocument, uno::UNO_QUERY );
}
-//------------------------------------------------------
+
static void SetDocToEmbedded( const uno::Reference< frame::XModel > xDocument, const OUString& aModuleName )
{
if ( xDocument.is() )
@@ -238,7 +238,7 @@ static void SetDocToEmbedded( const uno::Reference< frame::XModel > xDocument, c
}
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::XStorage >& xNewParentStorage,
const uno::Reference< embed::XStorage >& xNewObjectStorage,
const OUString& aNewName )
@@ -273,7 +273,7 @@ void OCommonEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::X
}
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::XStorage >& xNewParentStorage,
const OUString& aNewName )
{
@@ -288,7 +288,7 @@ void OCommonEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::X
SwitchOwnPersistence( xNewParentStorage, xNewOwnStorage, aNewName );
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::EmbedAndReparentDoc_Impl( const uno::Reference< util::XCloseable >& i_rxDocument ) const
{
SetDocToEmbedded( uno::Reference< frame::XModel >( i_rxDocument, uno::UNO_QUERY ), m_aModuleName );
@@ -305,7 +305,7 @@ void OCommonEmbeddedObject::EmbedAndReparentDoc_Impl( const uno::Reference< util
}
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > OCommonEmbeddedObject::InitNewDocument_Impl()
{
uno::Reference< util::XCloseable > xDocument( CreateDocument( m_xContext, GetDocumentServiceName(),
@@ -365,7 +365,7 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::InitNewDocument_Impl()
return xDocument;
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > OCommonEmbeddedObject::LoadLink_Impl()
{
uno::Reference< util::XCloseable > xDocument( CreateDocument( m_xContext, GetDocumentServiceName(),
@@ -437,7 +437,7 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::LoadLink_Impl()
}
-//------------------------------------------------------
+
OUString OCommonEmbeddedObject::GetFilterName( sal_Int32 nVersion ) const
{
OUString aFilterName = GetPresetFilterName();
@@ -453,7 +453,7 @@ OUString OCommonEmbeddedObject::GetFilterName( sal_Int32 nVersion ) const
return aFilterName;
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::FillDefaultLoadArgs_Impl( const uno::Reference< embed::XStorage >& i_rxStorage,
::comphelper::NamedValueCollection& o_rLoadArgs ) const
{
@@ -469,7 +469,7 @@ void OCommonEmbeddedObject::FillDefaultLoadArgs_Impl( const uno::Reference< embe
o_rLoadArgs.put( "FilterName", aFilterName );
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > OCommonEmbeddedObject::LoadDocumentFromStorage_Impl()
{
ENSURE_OR_THROW( m_xObjectStorage.is(), "no object storage" );
@@ -559,7 +559,7 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::LoadDocumentFromStorag
return xDocument;
}
-//------------------------------------------------------
+
uno::Reference< io::XInputStream > OCommonEmbeddedObject::StoreDocumentToTempStream_Impl(
sal_Int32 nStorageFormat,
const OUString& aBaseURL,
@@ -612,7 +612,7 @@ uno::Reference< io::XInputStream > OCommonEmbeddedObject::StoreDocumentToTempStr
return aResult;
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::SaveObject_Impl()
{
if ( m_xClientSite.is() )
@@ -638,7 +638,7 @@ void OCommonEmbeddedObject::SaveObject_Impl()
}
}
-//------------------------------------------------------
+
OUString OCommonEmbeddedObject::GetBaseURL_Impl() const
{
OUString aBaseURL;
@@ -681,7 +681,7 @@ OUString OCommonEmbeddedObject::GetBaseURL_Impl() const
return aBaseURL;
}
-//------------------------------------------------------
+
OUString OCommonEmbeddedObject::GetBaseURLFrom_Impl(
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
@@ -710,7 +710,7 @@ OUString OCommonEmbeddedObject::GetBaseURLFrom_Impl(
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::SwitchDocToStorage_Impl( const uno::Reference< document::XStorageBasedDocument >& xDoc, const uno::Reference< embed::XStorage >& xStorage )
{
xDoc->switchToStorage( xStorage );
@@ -723,7 +723,7 @@ void OCommonEmbeddedObject::SwitchDocToStorage_Impl( const uno::Reference< docum
m_xRecoveryStorage.clear();
}
-//------------------------------------------------------
+
void OCommonEmbeddedObject::StoreDocToStorage_Impl( const uno::Reference< embed::XStorage >& xStorage,
sal_Int32 nStorageFormat,
const OUString& aBaseURL,
@@ -784,7 +784,7 @@ void OCommonEmbeddedObject::StoreDocToStorage_Impl( const uno::Reference< embed:
}
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > OCommonEmbeddedObject::CreateDocFromMediaDescr_Impl(
const uno::Sequence< beans::PropertyValue >& aMedDescr )
{
@@ -822,7 +822,7 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::CreateDocFromMediaDesc
return xDocument;
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > OCommonEmbeddedObject::CreateTempDocFromLink_Impl()
{
uno::Reference< util::XCloseable > xResult;
@@ -889,7 +889,7 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::CreateTempDocFromLink_
return xResult;
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::setPersistentEntry(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -1119,7 +1119,7 @@ void SAL_CALL OCommonEmbeddedObject::setPersistentEntry(
}
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::storeToEntry( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
@@ -1245,7 +1245,7 @@ void SAL_CALL OCommonEmbeddedObject::storeToEntry( const uno::Reference< embed::
// TODO: should the listener notification be done?
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
@@ -1387,7 +1387,7 @@ void SAL_CALL OCommonEmbeddedObject::storeAsEntry( const uno::Reference< embed::
// TODO: should the listener notification be done here or in saveCompleted?
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew )
throw ( embed::WrongStateException,
uno::Exception,
@@ -1470,7 +1470,7 @@ void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew )
}
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL OCommonEmbeddedObject::hasEntry()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1490,7 +1490,7 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::hasEntry()
return sal_False;
}
-//------------------------------------------------------
+
OUString SAL_CALL OCommonEmbeddedObject::getEntryName()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1514,7 +1514,7 @@ OUString SAL_CALL OCommonEmbeddedObject::getEntryName()
return m_aEntryName;
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::storeOwn()
throw ( embed::WrongStateException,
io::IOException,
@@ -1602,7 +1602,7 @@ void SAL_CALL OCommonEmbeddedObject::storeOwn()
PostEvent_Impl( OUString( "OnSaveDone" ) );
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL OCommonEmbeddedObject::isReadonly()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1626,7 +1626,7 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isReadonly()
return m_bReadOnly;
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::reload(
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
@@ -1751,7 +1751,7 @@ void SAL_CALL OCommonEmbeddedObject::reload(
}
}
-//------------------------------------------------------
+
void SAL_CALL OCommonEmbeddedObject::breakLink( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName )
throw ( lang::IllegalArgumentException,
@@ -1845,7 +1845,7 @@ void SAL_CALL OCommonEmbeddedObject::breakLink( const uno::Reference< embed::XSt
m_aLinkURL = OUString();
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL OCommonEmbeddedObject::isLink()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1857,7 +1857,7 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isLink()
return m_bIsLink;
}
-//------------------------------------------------------
+
OUString SAL_CALL OCommonEmbeddedObject::getLinkURL()
throw ( embed::WrongStateException,
uno::Exception,
diff --git a/embeddedobj/source/commonembedding/specialobject.cxx b/embeddedobj/source/commonembedding/specialobject.cxx
index 7aca13b50b65..b94c5321f469 100644
--- a/embeddedobj/source/commonembedding/specialobject.cxx
+++ b/embeddedobj/source/commonembedding/specialobject.cxx
@@ -50,7 +50,7 @@ OSpecialEmbeddedObject::OSpecialEmbeddedObject( const uno::Reference< uno::XComp
m_nObjectState = embed::EmbedStates::LOADED;
}
-//------------------------------------------------------
+
uno::Any SAL_CALL OSpecialEmbeddedObject::queryInterface( const uno::Type& rType )
throw( uno::RuntimeException )
{
@@ -71,7 +71,7 @@ uno::Any SAL_CALL OSpecialEmbeddedObject::queryInterface( const uno::Type& rType
}
-//------------------------------------------------------
+
uno::Sequence< uno::Type > SAL_CALL OSpecialEmbeddedObject::getTypes()
throw( uno::RuntimeException )
{
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx
index 1e3f7106884a..558d0179465b 100644
--- a/embeddedobj/source/general/docholder.cxx
+++ b/embeddedobj/source/general/docholder.cxx
@@ -188,7 +188,7 @@ DocumentHolder::DocumentHolder( const uno::Reference< uno::XComponentContext >&
m_aOutplaceFrameProps[2] <<= aArg;
}
-//---------------------------------------------------------------------------
+
DocumentHolder::~DocumentHolder()
{
m_refCount++; // to allow deregistration as a listener
@@ -213,7 +213,7 @@ DocumentHolder::~DocumentHolder()
FreeOffice();
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::CloseFrame()
{
uno::Reference< util::XCloseBroadcaster > xCloseBroadcaster( m_xFrame, uno::UNO_QUERY );
@@ -243,7 +243,7 @@ void DocumentHolder::CloseFrame()
m_xFrame = uno::Reference< frame::XFrame >();
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::FreeOffice()
{
uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create( m_xContext );
@@ -269,7 +269,7 @@ void DocumentHolder::FreeOffice()
// }
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::CloseDocument( sal_Bool bDeliverOwnership, sal_Bool bWaitForClose )
{
uno::Reference< util::XCloseBroadcaster > xBroadcaster( m_xComponent, uno::UNO_QUERY );
@@ -299,7 +299,7 @@ void DocumentHolder::CloseDocument( sal_Bool bDeliverOwnership, sal_Bool bWaitFo
m_xComponent = 0;
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::PlaceFrame( const awt::Rectangle& aNewRect )
{
OSL_ENSURE( m_xFrame.is() && m_xOwnWindow.is(),
@@ -329,7 +329,7 @@ void DocumentHolder::PlaceFrame( const awt::Rectangle& aNewRect )
}
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::ResizeWindows_Impl( const awt::Rectangle& aHatchRect )
{
OSL_ENSURE( m_xFrame.is() && m_xOwnWindow.is() /*&& m_xHatchWindow.is()*/,
@@ -357,7 +357,7 @@ void DocumentHolder::ResizeWindows_Impl( const awt::Rectangle& aHatchRect )
awt::PosSize::POSSIZE );
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::SetFrameLMVisibility( const uno::Reference< frame::XFrame >& xFrame, sal_Bool bVisible )
{
sal_Bool bResult = sal_False;
@@ -387,7 +387,7 @@ sal_Bool DocumentHolder::SetFrameLMVisibility( const uno::Reference< frame::XFra
return bResult;
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::ShowInplace( const uno::Reference< awt::XWindowPeer >& xParent,
const awt::Rectangle& aRectangleToShow,
const uno::Reference< frame::XDispatchProvider >& xContDisp )
@@ -514,7 +514,7 @@ sal_Bool DocumentHolder::ShowInplace( const uno::Reference< awt::XWindowPeer >&
return sal_False;
}
-//---------------------------------------------------------------------------
+
uno::Reference< container::XIndexAccess > DocumentHolder::RetrieveOwnMenu_Impl()
{
uno::Reference< container::XIndexAccess > xResult;
@@ -568,7 +568,7 @@ uno::Reference< container::XIndexAccess > DocumentHolder::RetrieveOwnMenu_Impl()
return xResult;
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::FindConnectPoints(
const uno::Reference< container::XIndexAccess >& xMenu,
sal_Int32 nConnectPoints[2] )
@@ -598,7 +598,7 @@ void DocumentHolder::FindConnectPoints(
}
}
-//---------------------------------------------------------------------------
+
uno::Reference< container::XIndexAccess > DocumentHolder::MergeMenusForInplace(
const uno::Reference< container::XIndexAccess >& xContMenu,
const uno::Reference< frame::XDispatchProvider >& xContDisp,
@@ -645,7 +645,7 @@ uno::Reference< container::XIndexAccess > DocumentHolder::MergeMenusForInplace(
return uno::Reference< container::XIndexAccess >( xMergedMenu, uno::UNO_QUERY_THROW );
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::MergeMenus_Impl( const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xOwnLM,
const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xContLM,
const uno::Reference< frame::XDispatchProvider >& xContDisp,
@@ -772,7 +772,7 @@ sal_Bool DocumentHolder::ShowUI( const uno::Reference< ::com::sun::star::frame::
return bResult;
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::HideUI( const uno::Reference< ::com::sun::star::frame::XLayoutManager >& xContainerLM )
{
sal_Bool bResult = sal_False;
@@ -820,7 +820,7 @@ sal_Bool DocumentHolder::HideUI( const uno::Reference< ::com::sun::star::frame::
return bResult;
}
-//---------------------------------------------------------------------------
+
uno::Reference< frame::XFrame > DocumentHolder::GetDocFrame()
{
// the frame for outplace activation
@@ -916,7 +916,7 @@ uno::Reference< frame::XFrame > DocumentHolder::GetDocFrame()
return m_xFrame;
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::SetComponent( const uno::Reference< util::XCloseable >& xDoc, sal_Bool bReadOnly )
{
if ( m_xComponent.is() )
@@ -953,7 +953,7 @@ void DocumentHolder::SetComponent( const uno::Reference< util::XCloseable >& xDo
LoadDocToFrame(sal_False);
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::LoadDocToFrame( sal_Bool bInPlace )
{
if ( m_xFrame.is() && m_xComponent.is() )
@@ -1002,7 +1002,7 @@ sal_Bool DocumentHolder::LoadDocToFrame( sal_Bool bInPlace )
return sal_True;
}
-//---------------------------------------------------------------------------
+
void DocumentHolder::Show()
{
if( m_xFrame.is() )
@@ -1016,7 +1016,7 @@ void DocumentHolder::Show()
GetDocFrame();
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::SetExtent( sal_Int64 nAspect, const awt::Size& aSize )
{
uno::Reference< embed::XVisualObject > xDocVis( m_xComponent, uno::UNO_QUERY );
@@ -1036,7 +1036,7 @@ sal_Bool DocumentHolder::SetExtent( sal_Int64 nAspect, const awt::Size& aSize )
return sal_False;
}
-//---------------------------------------------------------------------------
+
sal_Bool DocumentHolder::GetExtent( sal_Int64 nAspect, awt::Size *pSize )
{
uno::Reference< embed::XVisualObject > xDocVis( m_xComponent, uno::UNO_QUERY );
@@ -1056,7 +1056,7 @@ sal_Bool DocumentHolder::GetExtent( sal_Int64 nAspect, awt::Size *pSize )
return sal_False;
}
-//---------------------------------------------------------------------------
+
sal_Int32 DocumentHolder::GetMapUnit( sal_Int64 nAspect )
{
uno::Reference< embed::XVisualObject > xDocVis( m_xComponent, uno::UNO_QUERY );
@@ -1075,7 +1075,7 @@ sal_Int32 DocumentHolder::GetMapUnit( sal_Int64 nAspect )
return 0;
}
-//---------------------------------------------------------------------------
+
awt::Rectangle DocumentHolder::CalculateBorderedArea( const awt::Rectangle& aRect )
{
return awt::Rectangle( aRect.X + m_aBorderWidths.Left + HATCH_BORDER_WIDTH,
@@ -1084,7 +1084,7 @@ awt::Rectangle DocumentHolder::CalculateBorderedArea( const awt::Rectangle& aRec
aRect.Height - m_aBorderWidths.Top - m_aBorderWidths.Bottom - 2*HATCH_BORDER_WIDTH );
}
-//---------------------------------------------------------------------------
+
awt::Rectangle DocumentHolder::AddBorderToArea( const awt::Rectangle& aRect )
{
return awt::Rectangle( aRect.X - m_aBorderWidths.Left - HATCH_BORDER_WIDTH,
@@ -1093,7 +1093,7 @@ awt::Rectangle DocumentHolder::AddBorderToArea( const awt::Rectangle& aRect )
aRect.Height + m_aBorderWidths.Top + m_aBorderWidths.Bottom + 2*HATCH_BORDER_WIDTH );
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::disposing( const com::sun::star::lang::EventObject& aSource )
throw (uno::RuntimeException)
{
@@ -1116,7 +1116,7 @@ void SAL_CALL DocumentHolder::disposing( const com::sun::star::lang::EventObject
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::queryClosing( const lang::EventObject& aSource, sal_Bool /*bGetsOwnership*/ )
throw (util::CloseVetoException, uno::RuntimeException)
{
@@ -1124,7 +1124,7 @@ void SAL_CALL DocumentHolder::queryClosing( const lang::EventObject& aSource, sa
throw util::CloseVetoException();
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource )
throw (uno::RuntimeException)
{
@@ -1146,7 +1146,7 @@ void SAL_CALL DocumentHolder::notifyClosing( const lang::EventObject& aSource )
}
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::queryTermination( const lang::EventObject& )
throw (frame::TerminationVetoException, uno::RuntimeException)
{
@@ -1154,7 +1154,7 @@ void SAL_CALL DocumentHolder::queryTermination( const lang::EventObject& )
throw frame::TerminationVetoException();
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::notifyTermination( const lang::EventObject& aSource )
throw (uno::RuntimeException)
{
@@ -1166,7 +1166,7 @@ void SAL_CALL DocumentHolder::notifyTermination( const lang::EventObject& aSourc
xDesktop->removeTerminateListener( ( frame::XTerminateListener* )this );
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent )
throw ( uno::RuntimeException )
{
@@ -1176,7 +1176,7 @@ void SAL_CALL DocumentHolder::modified( const lang::EventObject& aEvent )
m_pEmbedObj->PostEvent_Impl( OUString( "OnVisAreaChanged" ) );
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::notifyEvent( const document::EventObject& Event )
throw ( uno::RuntimeException )
{
@@ -1192,7 +1192,7 @@ void SAL_CALL DocumentHolder::notifyEvent( const document::EventObject& Event )
}
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::borderWidthsChanged( const uno::Reference< uno::XInterface >& aObject,
const frame::BorderWidths& aNewSize )
throw ( uno::RuntimeException )
@@ -1212,7 +1212,7 @@ void SAL_CALL DocumentHolder::borderWidthsChanged( const uno::Reference< uno::XI
}
}
-//---------------------------------------------------------------------------
+
void SAL_CALL DocumentHolder::requestPositioning( const awt::Rectangle& aRect )
throw (uno::RuntimeException)
{
@@ -1226,7 +1226,7 @@ void SAL_CALL DocumentHolder::requestPositioning( const awt::Rectangle& aRect )
}
}
-//---------------------------------------------------------------------------
+
awt::Rectangle SAL_CALL DocumentHolder::calcAdjustedRectangle( const awt::Rectangle& aRect )
throw (uno::RuntimeException)
{
diff --git a/embeddedobj/source/general/dummyobject.cxx b/embeddedobj/source/general/dummyobject.cxx
index 94679bb145e0..cddbc0c3db78 100644
--- a/embeddedobj/source/general/dummyobject.cxx
+++ b/embeddedobj/source/general/dummyobject.cxx
@@ -37,7 +37,7 @@
using namespace ::com::sun::star;
-//----------------------------------------------
+
void ODummyEmbeddedObject::CheckInit()
{
if ( m_bDisposed )
@@ -48,7 +48,7 @@ void ODummyEmbeddedObject::CheckInit()
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
}
-//----------------------------------------------
+
void ODummyEmbeddedObject::PostEvent_Impl( const OUString& aEventName )
{
if ( m_pInterfaceContainer )
@@ -83,12 +83,12 @@ void ODummyEmbeddedObject::PostEvent_Impl( const OUString& aEventName )
}
}
-//----------------------------------------------
+
ODummyEmbeddedObject::~ODummyEmbeddedObject()
{
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::changeState( sal_Int32 nNewState )
throw ( embed::UnreachableStateException,
embed::WrongStateException,
@@ -104,7 +104,7 @@ void SAL_CALL ODummyEmbeddedObject::changeState( sal_Int32 nNewState )
throw embed::UnreachableStateException();
}
-//----------------------------------------------
+
uno::Sequence< sal_Int32 > SAL_CALL ODummyEmbeddedObject::getReachableStates()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -118,7 +118,7 @@ uno::Sequence< sal_Int32 > SAL_CALL ODummyEmbeddedObject::getReachableStates()
return aResult;
}
-//----------------------------------------------
+
sal_Int32 SAL_CALL ODummyEmbeddedObject::getCurrentState()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -129,7 +129,7 @@ sal_Int32 SAL_CALL ODummyEmbeddedObject::getCurrentState()
return m_nObjectState;
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::doVerb( sal_Int32 )
throw ( lang::IllegalArgumentException,
embed::WrongStateException,
@@ -143,7 +143,7 @@ void SAL_CALL ODummyEmbeddedObject::doVerb( sal_Int32 )
// no supported verbs
}
-//----------------------------------------------
+
uno::Sequence< embed::VerbDescriptor > SAL_CALL ODummyEmbeddedObject::getSupportedVerbs()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -154,7 +154,7 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL ODummyEmbeddedObject::getSupport
return uno::Sequence< embed::VerbDescriptor >();
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::setClientSite(
const uno::Reference< embed::XEmbeddedClient >& xClient )
throw ( embed::WrongStateException,
@@ -166,7 +166,7 @@ void SAL_CALL ODummyEmbeddedObject::setClientSite(
m_xClientSite = xClient;
}
-//----------------------------------------------
+
uno::Reference< embed::XEmbeddedClient > SAL_CALL ODummyEmbeddedObject::getClientSite()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -177,7 +177,7 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL ODummyEmbeddedObject::getClien
return m_xClientSite;
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::update()
throw ( embed::WrongStateException,
uno::Exception,
@@ -187,7 +187,7 @@ void SAL_CALL ODummyEmbeddedObject::update()
CheckInit();
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::setUpdateMode( sal_Int32 )
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -196,7 +196,7 @@ void SAL_CALL ODummyEmbeddedObject::setUpdateMode( sal_Int32 )
CheckInit();
}
-//----------------------------------------------
+
sal_Int64 SAL_CALL ODummyEmbeddedObject::getStatus( sal_Int64 )
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -207,7 +207,7 @@ sal_Int64 SAL_CALL ODummyEmbeddedObject::getStatus( sal_Int64 )
return 0;
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::setContainerName( const OUString& )
throw ( uno::RuntimeException )
{
@@ -215,7 +215,7 @@ void SAL_CALL ODummyEmbeddedObject::setContainerName( const OUString& )
CheckInit();
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const awt::Size& aSize )
throw ( lang::IllegalArgumentException,
embed::WrongStateException,
@@ -236,7 +236,7 @@ void SAL_CALL ODummyEmbeddedObject::setVisualAreaSize( sal_Int64 nAspect, const
m_bHasCachedSize = sal_True;
}
-//----------------------------------------------
+
awt::Size SAL_CALL ODummyEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
throw ( lang::IllegalArgumentException,
embed::WrongStateException,
@@ -260,7 +260,7 @@ awt::Size SAL_CALL ODummyEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect )
return m_aCachedSize;
}
-//----------------------------------------------
+
sal_Int32 SAL_CALL ODummyEmbeddedObject::getMapUnit( sal_Int64 nAspect )
throw ( uno::Exception,
uno::RuntimeException)
@@ -277,7 +277,7 @@ sal_Int32 SAL_CALL ODummyEmbeddedObject::getMapUnit( sal_Int64 nAspect )
return embed::EmbedMapUnits::ONE_100TH_MM;
}
-//----------------------------------------------
+
embed::VisualRepresentation SAL_CALL ODummyEmbeddedObject::getPreferredVisualRepresentation( sal_Int64 )
throw ( lang::IllegalArgumentException,
embed::WrongStateException,
@@ -292,7 +292,7 @@ embed::VisualRepresentation SAL_CALL ODummyEmbeddedObject::getPreferredVisualRep
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::setPersistentEntry(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -359,7 +359,7 @@ void SAL_CALL ODummyEmbeddedObject::setPersistentEntry(
3 );
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::storeToEntry( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
@@ -381,7 +381,7 @@ void SAL_CALL ODummyEmbeddedObject::storeToEntry( const uno::Reference< embed::X
m_xParentStorage->copyElementTo( m_aEntryName, xStorage, sEntName );
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
@@ -409,7 +409,7 @@ void SAL_CALL ODummyEmbeddedObject::storeAsEntry( const uno::Reference< embed::X
m_aNewEntryName = sEntName;
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew )
throw ( embed::WrongStateException,
uno::Exception,
@@ -443,7 +443,7 @@ void SAL_CALL ODummyEmbeddedObject::saveCompleted( sal_Bool bUseNew )
m_bWaitSaveCompleted = sal_False;
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -462,7 +462,7 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::hasEntry()
return sal_False;
}
-//------------------------------------------------------
+
OUString SAL_CALL ODummyEmbeddedObject::getEntryName()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -478,7 +478,7 @@ OUString SAL_CALL ODummyEmbeddedObject::getEntryName()
return m_aEntryName;
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::storeOwn()
throw ( embed::WrongStateException,
io::IOException,
@@ -497,7 +497,7 @@ void SAL_CALL ODummyEmbeddedObject::storeOwn()
return;
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL ODummyEmbeddedObject::isReadonly()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -514,7 +514,7 @@ sal_Bool SAL_CALL ODummyEmbeddedObject::isReadonly()
return sal_True;
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::reload(
const uno::Sequence< beans::PropertyValue >& /* lArguments */,
const uno::Sequence< beans::PropertyValue >& /* lObjArgs */ )
@@ -535,7 +535,7 @@ void SAL_CALL ODummyEmbeddedObject::reload(
// nothing to reload
}
-//------------------------------------------------------
+
uno::Sequence< sal_Int8 > SAL_CALL ODummyEmbeddedObject::getClassID()
throw ( uno::RuntimeException )
{
@@ -547,7 +547,7 @@ uno::Sequence< sal_Int8 > SAL_CALL ODummyEmbeddedObject::getClassID()
return uno::Sequence< sal_Int8 >();
}
-//------------------------------------------------------
+
OUString SAL_CALL ODummyEmbeddedObject::getClassName()
throw ( uno::RuntimeException )
{
@@ -558,7 +558,7 @@ OUString SAL_CALL ODummyEmbeddedObject::getClassName()
return OUString();
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::setClassInfo(
const uno::Sequence< sal_Int8 >& /*aClassID*/, const OUString& /*aClassName*/ )
throw ( lang::NoSupportException,
@@ -567,7 +567,7 @@ void SAL_CALL ODummyEmbeddedObject::setClassInfo(
throw lang::NoSupportException();
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > SAL_CALL ODummyEmbeddedObject::getComponent()
throw ( uno::RuntimeException )
{
@@ -577,7 +577,7 @@ uno::Reference< util::XCloseable > SAL_CALL ODummyEmbeddedObject::getComponent()
return uno::Reference< util::XCloseable >();
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -592,7 +592,7 @@ void SAL_CALL ODummyEmbeddedObject::addStateChangeListener( const uno::Reference
xListener );
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::removeStateChangeListener(
const uno::Reference< embed::XStateChangeListener >& xListener )
throw (uno::RuntimeException)
@@ -603,7 +603,7 @@ void SAL_CALL ODummyEmbeddedObject::removeStateChangeListener(
xListener );
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::close( sal_Bool bDeliverOwnership )
throw ( util::CloseVetoException,
uno::RuntimeException )
@@ -659,7 +659,7 @@ void SAL_CALL ODummyEmbeddedObject::close( sal_Bool bDeliverOwnership )
m_bDisposed = sal_True; // the object is disposed now for outside
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -673,7 +673,7 @@ void SAL_CALL ODummyEmbeddedObject::addCloseListener( const uno::Reference< util
m_pInterfaceContainer->addInterface( ::getCppuType( (const uno::Reference< util::XCloseListener >*)0 ), xListener );
}
-//----------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw (uno::RuntimeException)
{
@@ -683,7 +683,7 @@ void SAL_CALL ODummyEmbeddedObject::removeCloseListener( const uno::Reference< u
xListener );
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -697,7 +697,7 @@ void SAL_CALL ODummyEmbeddedObject::addEventListener( const uno::Reference< docu
m_pInterfaceContainer->addInterface( ::getCppuType( (const uno::Reference< document::XEventListener >*)0 ), xListener );
}
-//------------------------------------------------------
+
void SAL_CALL ODummyEmbeddedObject::removeEventListener( const uno::Reference< document::XEventListener >& xListener )
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/general/xcreator.cxx b/embeddedobj/source/general/xcreator.cxx
index d79fcc58515d..521f97d6fce9 100644
--- a/embeddedobj/source/general/xcreator.cxx
+++ b/embeddedobj/source/general/xcreator.cxx
@@ -39,7 +39,7 @@
using namespace ::com::sun::star;
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL UNOEmbeddedObjectCreator::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(2);
@@ -48,20 +48,20 @@ uno::Sequence< OUString > SAL_CALL UNOEmbeddedObjectCreator::impl_staticGetSuppo
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL UNOEmbeddedObjectCreator::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.embed.EmbeddedObjectCreator");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new UNOEmbeddedObjectCreator( comphelper::getComponentContext(xServiceManager) ) );
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInstanceInitNew(
const uno::Sequence< sal_Int8 >& aClassID,
const OUString& aClassName,
@@ -106,7 +106,7 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
return xEmbFact->createInstanceUserInit( aClassID, aClassName, xStorage, sEntName, embed::EntryInitModes::TRUNCATE_INIT, uno::Sequence < beans::PropertyValue >(), lObjArgs);
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInstanceInitFromEntry(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -226,7 +226,7 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInstanceInitFromMediaDescriptor(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -288,7 +288,7 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInstanceUserInit(
const uno::Sequence< sal_Int8 >& aClassID,
const OUString& sClassName,
@@ -332,7 +332,7 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
aObjectArgs );
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInstanceLink(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -405,7 +405,7 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInstanceLinkUserInit(
const uno::Sequence< sal_Int8 >& aClassID,
const OUString& aClassName,
@@ -438,7 +438,7 @@ uno::Reference< uno::XInterface > SAL_CALL UNOEmbeddedObjectCreator::createInsta
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL UNOEmbeddedObjectCreator::getImplementationName()
throw ( uno::RuntimeException )
{
@@ -451,7 +451,7 @@ sal_Bool SAL_CALL UNOEmbeddedObjectCreator::supportsService( const OUString& Ser
return cppu::supportsService(this, ServiceName);
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL UNOEmbeddedObjectCreator::getSupportedServiceNames()
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx
index 7181083246ae..1ebeca499422 100644
--- a/embeddedobj/source/msole/olecomponent.cxx
+++ b/embeddedobj/source/msole/olecomponent.cxx
@@ -227,7 +227,7 @@ struct OleComponentNative_Impl {
uno::Sequence< datatransfer::DataFlavor > GetFlavorsForAspects( sal_uInt32 nSupportedAspects );
};
-//----------------------------------------------
+
DWORD GetAspectFromFlavor( const datatransfer::DataFlavor& aFlavor )
{
if ( aFlavor.MimeType.indexOf( ";Aspect=THUMBNAIL" ) != -1 )
@@ -240,7 +240,7 @@ DWORD GetAspectFromFlavor( const datatransfer::DataFlavor& aFlavor )
return DVASPECT_CONTENT;
}
-//----------------------------------------------
+
OUString GetFlavorSuffixFromAspect( DWORD nAsp )
{
OUString aResult;
@@ -257,7 +257,7 @@ OUString GetFlavorSuffixFromAspect( DWORD nAsp )
return aResult;
}
-//----------------------------------------------
+
HRESULT OpenIStorageFromURL_Impl( const OUString& aURL, IStorage** ppIStorage )
{
OSL_ENSURE( ppIStorage, "The pointer must not be empty!" );
@@ -274,7 +274,7 @@ HRESULT OpenIStorageFromURL_Impl( const OUString& aURL, IStorage** ppIStorage )
ppIStorage );
}
-//----------------------------------------------
+
sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium,
const datatransfer::DataFlavor& aFlavor,
uno::Any& aResult )
@@ -368,7 +368,7 @@ sal_Bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium
return bAnyIsReady;
}
-//----------------------------------------------
+
sal_Bool OleComponentNative_Impl::GraphicalFlavor( const datatransfer::DataFlavor& aFlavor )
{
// Actually all the required graphical formats must be supported
@@ -380,7 +380,7 @@ sal_Bool OleComponentNative_Impl::GraphicalFlavor( const datatransfer::DataFlavo
return sal_False;
}
-//----------------------------------------------
+
sal_Bool GetClassIDFromSequence_Impl( uno::Sequence< sal_Int8 > aSeq, CLSID& aResult )
{
if ( aSeq.getLength() == 16 )
@@ -397,7 +397,7 @@ sal_Bool GetClassIDFromSequence_Impl( uno::Sequence< sal_Int8 > aSeq, CLSID& aRe
return sal_False;
}
-//----------------------------------------------
+
OUString WinAccToVcl_Impl( const sal_Unicode* pStr )
{
OUString aResult;
@@ -422,7 +422,7 @@ OUString WinAccToVcl_Impl( const sal_Unicode* pStr )
return aResult;
}
-//----------------------------------------------
+
OleComponent::OleComponent( const uno::Reference< lang::XMultiServiceFactory >& xFactory, OleEmbeddedObject* pUnoOleObject )
: m_pInterfaceContainer( NULL )
, m_bDisposed( sal_False )
@@ -452,7 +452,7 @@ OleComponent::OleComponent( const uno::Reference< lang::XMultiServiceFactory >&
}
-//----------------------------------------------
+
OleComponent::~OleComponent()
{
OSL_ENSURE( !m_pOleWrapClientSite && !m_pImplAdviseSink && !m_pInterfaceContainer && !m_bOleInitialized,
@@ -479,14 +479,14 @@ OleComponent::~OleComponent()
delete m_pNativeImpl;
}
-//----------------------------------------------
+
void OleComponentNative_Impl::AddSupportedFormat( const FORMATETC& aFormatEtc )
{
FORMATETC* pFormatToInsert = new FORMATETC( aFormatEtc );
m_aFormatsList.push_back( pFormatToInsert );
}
-//----------------------------------------------
+
FORMATETC* OleComponentNative_Impl::GetSupportedFormatForAspect( sal_uInt32 nRequestedAspect )
{
for ( FormatEtcList::iterator aIter = m_aFormatsList.begin();
@@ -498,7 +498,7 @@ FORMATETC* OleComponentNative_Impl::GetSupportedFormatForAspect( sal_uInt32 nReq
return NULL;
}
-//----------------------------------------------
+
void OleComponent::Dispose()
{
// the mutex must be locked before this method is called
@@ -542,7 +542,7 @@ void OleComponent::Dispose()
m_bDisposed = sal_True;
}
-//----------------------------------------------
+
void OleComponent::disconnectEmbeddedObject()
{
// must not be called from destructor of UNO OLE object!!!
@@ -550,7 +550,7 @@ void OleComponent::disconnectEmbeddedObject()
m_pUnoOleObject = NULL;
}
-//----------------------------------------------
+
void OleComponent::CreateNewIStorage_Impl()
{
// TODO: in future a global memory could be used instead of file.
@@ -577,7 +577,7 @@ void OleComponent::CreateNewIStorage_Impl()
throw io::IOException(); // TODO: transport error code?
}
-//----------------------------------------------
+
uno::Sequence< datatransfer::DataFlavor > OleComponentNative_Impl::GetFlavorsForAspects( sal_uInt32 nSupportedAspects )
{
uno::Sequence< datatransfer::DataFlavor > aResult;
@@ -600,7 +600,7 @@ uno::Sequence< datatransfer::DataFlavor > OleComponentNative_Impl::GetFlavorsFor
return aResult;
}
-//----------------------------------------------
+
void OleComponent::RetrieveObjectDataFlavors_Impl()
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -652,7 +652,7 @@ void OleComponent::RetrieveObjectDataFlavors_Impl()
}
}
-//----------------------------------------------
+
sal_Bool OleComponent::InitializeObject_Impl()
// There will be no static objects!
{
@@ -717,7 +717,7 @@ sal_Bool OleComponent::InitializeObject_Impl()
return sal_True;
}
-//----------------------------------------------
+
void OleComponent::LoadEmbeddedObject( const OUString& aTempURL )
{
if ( !aTempURL.getLength() )
@@ -742,7 +742,7 @@ void OleComponent::LoadEmbeddedObject( const OUString& aTempURL )
throw uno::RuntimeException(); // TODO
}
-//----------------------------------------------
+
void OleComponent::CreateObjectFromClipboard()
{
if ( m_pNativeImpl->m_pIStorage )
@@ -781,7 +781,7 @@ void OleComponent::CreateObjectFromClipboard()
throw uno::RuntimeException(); // TODO
}
-//----------------------------------------------
+
void OleComponent::CreateNewEmbeddedObject( const uno::Sequence< sal_Int8 >& aSeqCLSID )
{
CLSID aClsID;
@@ -815,7 +815,7 @@ void OleComponent::CreateNewEmbeddedObject( const uno::Sequence< sal_Int8 >& aSe
// TODO: getExtent???
}
-//----------------------------------------------
+
void OleComponent::CreateObjectFromData( const uno::Reference< datatransfer::XTransferable >& )
// Static objects are not supported, they should be inserted as graphics
{
@@ -826,7 +826,7 @@ void OleComponent::CreateObjectFromData( const uno::Reference< datatransfer::XTr
// OleQueryCreateFromData...
}
-//----------------------------------------------
+
void OleComponent::CreateObjectFromFile( const OUString& aFileURL )
{
if ( m_pNativeImpl->m_pIStorage )
@@ -856,7 +856,7 @@ void OleComponent::CreateObjectFromFile( const OUString& aFileURL )
throw uno::RuntimeException(); // TODO
}
-//----------------------------------------------
+
void OleComponent::CreateLinkFromFile( const OUString& aFileURL )
{
if ( m_pNativeImpl->m_pIStorage )
@@ -885,7 +885,7 @@ void OleComponent::CreateLinkFromFile( const OUString& aFileURL )
throw uno::RuntimeException(); // TODO
}
-//----------------------------------------------
+
void OleComponent::InitEmbeddedCopyOfLink( OleComponent* pOleLinkComponent )
{
if ( !pOleLinkComponent || !pOleLinkComponent->m_pNativeImpl->m_pObj )
@@ -979,7 +979,7 @@ void OleComponent::InitEmbeddedCopyOfLink( OleComponent* pOleLinkComponent )
throw uno::RuntimeException(); // TODO
}
-//----------------------------------------------
+
void OleComponent::RunObject()
{
OSL_ENSURE( m_pNativeImpl->m_pOleObject, "The pointer can not be set to NULL here!\n" );
@@ -1000,7 +1000,7 @@ void OleComponent::RunObject()
}
}
-//----------------------------------------------
+
awt::Size OleComponent::CalculateWithFactor( const awt::Size& aSize,
const awt::Size& aMultiplier,
const awt::Size& aDivisor )
@@ -1019,14 +1019,14 @@ awt::Size OleComponent::CalculateWithFactor( const awt::Size& aSize,
return aResult;
}
-//----------------------------------------------
+
void OleComponent::CloseObject()
{
if ( m_pNativeImpl->m_pOleObject && OleIsRunning( m_pNativeImpl->m_pOleObject ) )
m_pNativeImpl->m_pOleObject->Close( OLECLOSE_NOSAVE ); // must be saved before
}
-//----------------------------------------------
+
uno::Sequence< embed::VerbDescriptor > OleComponent::GetVerbList()
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1065,7 +1065,7 @@ uno::Sequence< embed::VerbDescriptor > OleComponent::GetVerbList()
return m_aVerbList;
}
-//----------------------------------------------
+
void OleComponent::ExecuteVerb( sal_Int32 nVerbID )
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1086,7 +1086,7 @@ void OleComponent::ExecuteVerb( sal_Int32 nVerbID )
m_pNativeImpl->m_pOleObject->SetHostNames( L"app name", L"untitled" );
}
-//----------------------------------------------
+
void OleComponent::SetHostName( const OUString&,
const OUString& )
{
@@ -1096,7 +1096,7 @@ void OleComponent::SetHostName( const OUString&,
// TODO: use aContName and aEmbDocName in m_pNativeImpl->m_pOleObject->SetHostNames()
}
-//----------------------------------------------
+
void OleComponent::SetExtent( const awt::Size& aVisAreaSize, sal_Int64 nAspect )
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1118,7 +1118,7 @@ void OleComponent::SetExtent( const awt::Size& aVisAreaSize, sal_Int64 nAspect )
}
}
-//----------------------------------------------
+
awt::Size OleComponent::GetExtent( sal_Int64 nAspect )
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1200,7 +1200,7 @@ awt::Size OleComponent::GetExtent( sal_Int64 nAspect )
return aSize;
}
-//----------------------------------------------
+
awt::Size OleComponent::GetCachedExtent( sal_Int64 nAspect )
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1226,7 +1226,7 @@ awt::Size OleComponent::GetCachedExtent( sal_Int64 nAspect )
return awt::Size( aSize.cx, aSize.cy );
}
-//----------------------------------------------
+
awt::Size OleComponent::GetReccomendedExtent( sal_Int64 nAspect )
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1241,7 +1241,7 @@ awt::Size OleComponent::GetReccomendedExtent( sal_Int64 nAspect )
return awt::Size( aSize.cx, aSize.cy );
}
-//----------------------------------------------
+
sal_Int64 OleComponent::GetMiscStatus( sal_Int64 nAspect )
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1252,7 +1252,7 @@ sal_Int64 OleComponent::GetMiscStatus( sal_Int64 nAspect )
return ( sal_Int64 )nResult; // first 32 bits are for MS flags
}
-//----------------------------------------------
+
uno::Sequence< sal_Int8 > OleComponent::GetCLSID()
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1270,7 +1270,7 @@ uno::Sequence< sal_Int8 > OleComponent::GetCLSID()
aCLSID.Data4[6], aCLSID.Data4[7] );
}
-//----------------------------------------------
+
sal_Bool OleComponent::IsDirty()
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1288,7 +1288,7 @@ sal_Bool OleComponent::IsDirty()
return ( hr != S_FALSE );
}
-//----------------------------------------------
+
void OleComponent::StoreOwnTmpIfNecessary()
{
if ( !m_pNativeImpl->m_pOleObject )
@@ -1334,7 +1334,7 @@ void OleComponent::StoreOwnTmpIfNecessary()
}
}
-//----------------------------------------------
+
sal_Bool OleComponent::SaveObject_Impl()
{
sal_Bool bResult = sal_False;
@@ -1358,7 +1358,7 @@ sal_Bool OleComponent::SaveObject_Impl()
return bResult;
}
-//----------------------------------------------
+
sal_Bool OleComponent::OnShowWindow_Impl( bool bShow )
{
sal_Bool bResult = sal_False;
@@ -1383,7 +1383,7 @@ sal_Bool OleComponent::OnShowWindow_Impl( bool bShow )
return bResult;
}
-//----------------------------------------------
+
void OleComponent::OnViewChange_Impl( sal_uInt32 dwAspect )
{
// TODO: check if it is enough or may be saving notifications are required for Visio2000
@@ -1405,7 +1405,7 @@ void OleComponent::OnViewChange_Impl( sal_uInt32 dwAspect )
}
}
-//----------------------------------------------
+
void OleComponent::OnClose_Impl()
{
::rtl::Reference< OleEmbeddedObject > xLockObject;
@@ -1427,7 +1427,7 @@ void OleComponent::OnClose_Impl()
}
// XCloseable
-//----------------------------------------------
+
void SAL_CALL OleComponent::close( sal_Bool bDeliverOwnership )
throw ( util::CloseVetoException,
uno::RuntimeException )
@@ -1481,7 +1481,7 @@ void SAL_CALL OleComponent::close( sal_Bool bDeliverOwnership )
Dispose();
}
-//----------------------------------------------
+
void SAL_CALL OleComponent::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -1495,7 +1495,7 @@ void SAL_CALL OleComponent::addCloseListener( const uno::Reference< util::XClose
m_pInterfaceContainer->addInterface( ::getCppuType( ( const uno::Reference< util::XCloseListener >* )0 ), xListener );
}
-//----------------------------------------------
+
void SAL_CALL OleComponent::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -1509,7 +1509,7 @@ void SAL_CALL OleComponent::removeCloseListener( const uno::Reference< util::XCl
}
// XTransferable
-//----------------------------------------------
+
uno::Any SAL_CALL OleComponent::getTransferData( const datatransfer::DataFlavor& aFlavor )
throw ( datatransfer::UnsupportedFlavorException,
io::IOException,
@@ -1612,7 +1612,7 @@ uno::Any SAL_CALL OleComponent::getTransferData( const datatransfer::DataFlavor&
return aResult;
}
-//----------------------------------------------
+
uno::Sequence< datatransfer::DataFlavor > SAL_CALL OleComponent::getTransferDataFlavors()
throw ( uno::RuntimeException )
{
@@ -1628,7 +1628,7 @@ uno::Sequence< datatransfer::DataFlavor > SAL_CALL OleComponent::getTransferData
return m_aDataFlavors;
}
-//----------------------------------------------
+
sal_Bool SAL_CALL OleComponent::isDataFlavorSupported( const datatransfer::DataFlavor& aFlavor )
throw ( uno::RuntimeException )
{
@@ -1675,7 +1675,7 @@ void SAL_CALL OleComponent::addEventListener( const uno::Reference< lang::XEvent
m_pInterfaceContainer->addInterface( ::getCppuType( ( const uno::Reference< lang::XEventListener >* )0 ), xListener );
}
-//----------------------------------------------
+
void SAL_CALL OleComponent::removeEventListener( const uno::Reference< lang::XEventListener >& xListener )
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index b0c8abc0f88a..011306189be5 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -57,7 +57,7 @@
using namespace ::com::sun::star;
#ifdef WNT
-//----------------------------------------------
+
void OleEmbeddedObject::SwitchComponentToRunningState_Impl()
{
if ( m_pOleComponent )
@@ -83,7 +83,7 @@ void OleEmbeddedObject::SwitchComponentToRunningState_Impl()
}
}
-//----------------------------------------------
+
uno::Sequence< sal_Int32 > OleEmbeddedObject::GetReachableStatesList_Impl(
const uno::Sequence< embed::VerbDescriptor >& aVerbList )
{
@@ -100,7 +100,7 @@ uno::Sequence< sal_Int32 > OleEmbeddedObject::GetReachableStatesList_Impl(
return aStates;
}
-//----------------------------------------------
+
uno::Sequence< sal_Int32 > OleEmbeddedObject::GetIntermediateVerbsSequence_Impl( sal_Int32 nNewState )
{
SAL_WARN_IF( m_nObjectState == embed::EmbedStates::LOADED, "embeddedobj.ole", "Loaded object is switched to running state without verbs using!" );
@@ -115,7 +115,7 @@ uno::Sequence< sal_Int32 > OleEmbeddedObject::GetIntermediateVerbsSequence_Impl(
return uno::Sequence< sal_Int32 >();
}
#endif
-//----------------------------------------------
+
void OleEmbeddedObject::MoveListeners()
{
if ( m_pInterfaceContainer )
@@ -200,7 +200,7 @@ void OleEmbeddedObject::MoveListeners()
}
}
-//----------------------------------------------
+
uno::Reference< embed::XStorage > OleEmbeddedObject::CreateTemporarySubstorage( OUString& o_aStorageName )
{
uno::Reference< embed::XStorage > xResult;
@@ -224,7 +224,7 @@ uno::Reference< embed::XStorage > OleEmbeddedObject::CreateTemporarySubstorage(
return xResult;
}
-//----------------------------------------------
+
OUString OleEmbeddedObject::MoveToTemporarySubstream()
{
OUString aResult;
@@ -244,7 +244,7 @@ OUString OleEmbeddedObject::MoveToTemporarySubstream()
return aResult;
}
-//----------------------------------------------
+
sal_Bool OleEmbeddedObject::TryToConvertToOOo()
{
sal_Bool bResult = sal_False;
@@ -433,7 +433,7 @@ sal_Bool OleEmbeddedObject::TryToConvertToOOo()
return bResult;
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::changeState( sal_Int32 nNewState )
throw ( embed::UnreachableStateException,
embed::WrongStateException,
@@ -593,7 +593,7 @@ void SAL_CALL OleEmbeddedObject::changeState( sal_Int32 nNewState )
}
}
-//----------------------------------------------
+
uno::Sequence< sal_Int32 > SAL_CALL OleEmbeddedObject::getReachableStates()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -637,7 +637,7 @@ uno::Sequence< sal_Int32 > SAL_CALL OleEmbeddedObject::getReachableStates()
}
}
-//----------------------------------------------
+
sal_Int32 SAL_CALL OleEmbeddedObject::getCurrentState()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -749,7 +749,7 @@ namespace
}
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID )
throw ( lang::IllegalArgumentException,
embed::WrongStateException,
@@ -888,7 +888,7 @@ void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID )
}
}
-//----------------------------------------------
+
uno::Sequence< embed::VerbDescriptor > SAL_CALL OleEmbeddedObject::getSupportedVerbs()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -930,7 +930,7 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL OleEmbeddedObject::getSupportedV
}
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setClientSite(
const uno::Reference< embed::XEmbeddedClient >& xClient )
throw ( embed::WrongStateException,
@@ -961,7 +961,7 @@ void SAL_CALL OleEmbeddedObject::setClientSite(
}
}
-//----------------------------------------------
+
uno::Reference< embed::XEmbeddedClient > SAL_CALL OleEmbeddedObject::getClientSite()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -986,7 +986,7 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL OleEmbeddedObject::getClientSi
return m_xClientSite;
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::update()
throw ( embed::WrongStateException,
uno::Exception,
@@ -1021,7 +1021,7 @@ void SAL_CALL OleEmbeddedObject::update()
}
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setUpdateMode( sal_Int32 nMode )
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1050,7 +1050,7 @@ void SAL_CALL OleEmbeddedObject::setUpdateMode( sal_Int32 nMode )
m_nUpdateMode = nMode;
}
-//----------------------------------------------
+
sal_Int64 SAL_CALL OleEmbeddedObject::getStatus( sal_Int64
nAspect
)
@@ -1093,7 +1093,7 @@ sal_Int64 SAL_CALL OleEmbeddedObject::getStatus( sal_Int64
return ( nResult | embed::EmbedMisc::EMBED_NEEDSSIZEONLOAD );
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setContainerName( const OUString& sName )
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/msole/olemisc.cxx b/embeddedobj/source/msole/olemisc.cxx
index 7da5e94bc0ff..e1351c84ec06 100644
--- a/embeddedobj/source/msole/olemisc.cxx
+++ b/embeddedobj/source/msole/olemisc.cxx
@@ -34,7 +34,7 @@ using namespace ::com::sun::star;
sal_Bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory );
-//------------------------------------------------------
+
OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceFactory >& xFactory,
const uno::Sequence< sal_Int8 >& aClassID,
const OUString& aClassName )
@@ -68,7 +68,7 @@ OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceF
{
}
-//------------------------------------------------------
+
// In case of loading from persistent entry the classID of the object
// will be retrieved from the entry, during construction it is unknown
OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceFactory >& xFactory, sal_Bool bLink )
@@ -100,7 +100,7 @@ OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceF
{
}
#ifdef WNT
-//------------------------------------------------------
+
// this constructor let object be initialized from clipboard
OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceFactory >& xFactory )
: m_pOleComponent( NULL )
@@ -131,7 +131,7 @@ OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceF
{
}
#endif
-//------------------------------------------------------
+
OleEmbeddedObject::~OleEmbeddedObject()
{
OSL_ENSURE( !m_pInterfaceContainer && !m_pOleComponent && !m_xObjectStream.is(),
@@ -153,7 +153,7 @@ OleEmbeddedObject::~OleEmbeddedObject()
KillFile_Impl( m_aTempDumpURL, m_xFactory );
}
-//------------------------------------------------------
+
void OleEmbeddedObject::MakeEventListenerNotification_Impl( const OUString& aEventName )
{
if ( m_pInterfaceContainer )
@@ -179,7 +179,7 @@ void OleEmbeddedObject::MakeEventListenerNotification_Impl( const OUString& aEve
}
}
#ifdef WNT
-//----------------------------------------------
+
void OleEmbeddedObject::StateChangeNotification_Impl( sal_Bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState )
{
if ( m_pInterfaceContainer )
@@ -220,7 +220,7 @@ void OleEmbeddedObject::StateChangeNotification_Impl( sal_Bool bBeforeChange, sa
}
}
#endif
-//------------------------------------------------------
+
void OleEmbeddedObject::GetRidOfComponent()
{
#ifdef WNT
@@ -249,7 +249,7 @@ void OleEmbeddedObject::GetRidOfComponent()
#endif
}
-//------------------------------------------------------
+
void OleEmbeddedObject::Dispose()
{
if ( m_pInterfaceContainer )
@@ -296,7 +296,7 @@ void OleEmbeddedObject::Dispose()
m_bDisposed = true;
}
-//------------------------------------------------------
+
uno::Sequence< sal_Int8 > SAL_CALL OleEmbeddedObject::getClassID()
throw ( uno::RuntimeException )
{
@@ -316,7 +316,7 @@ uno::Sequence< sal_Int8 > SAL_CALL OleEmbeddedObject::getClassID()
return m_aClassID;
}
-//------------------------------------------------------
+
OUString SAL_CALL OleEmbeddedObject::getClassName()
throw ( uno::RuntimeException )
{
@@ -336,7 +336,7 @@ OUString SAL_CALL OleEmbeddedObject::getClassName()
return m_aClassName;
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setClassInfo(
const uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
throw ( lang::NoSupportException,
@@ -356,7 +356,7 @@ void SAL_CALL OleEmbeddedObject::setClassInfo(
throw lang::NoSupportException(); //TODO:
}
-//------------------------------------------------------
+
uno::Reference< util::XCloseable > SAL_CALL OleEmbeddedObject::getComponent()
throw ( uno::RuntimeException )
{
@@ -390,7 +390,7 @@ uno::Reference< util::XCloseable > SAL_CALL OleEmbeddedObject::getComponent()
return uno::Reference< util::XCloseable >( static_cast< ::cppu::OWeakObject* >( m_pOleComponent ), uno::UNO_QUERY );
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::addStateChangeListener( const uno::Reference< embed::XStateChangeListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -415,7 +415,7 @@ void SAL_CALL OleEmbeddedObject::addStateChangeListener( const uno::Reference< e
xListener );
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::removeStateChangeListener(
const uno::Reference< embed::XStateChangeListener >& xListener )
throw (uno::RuntimeException)
@@ -437,7 +437,7 @@ void SAL_CALL OleEmbeddedObject::removeStateChangeListener(
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::close( sal_Bool bDeliverOwnership )
throw ( util::CloseVetoException,
uno::RuntimeException )
@@ -501,7 +501,7 @@ void SAL_CALL OleEmbeddedObject::close( sal_Bool bDeliverOwnership )
Dispose();
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::addCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -525,7 +525,7 @@ void SAL_CALL OleEmbeddedObject::addCloseListener( const uno::Reference< util::X
m_pInterfaceContainer->addInterface( ::getCppuType( (const uno::Reference< util::XCloseListener >*)0 ), xListener );
}
-//----------------------------------------------
+
void SAL_CALL OleEmbeddedObject::removeCloseListener( const uno::Reference< util::XCloseListener >& xListener )
throw (uno::RuntimeException)
{
@@ -548,7 +548,7 @@ void SAL_CALL OleEmbeddedObject::removeCloseListener( const uno::Reference< util
xListener );
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::addEventListener( const uno::Reference< document::XEventListener >& xListener )
throw ( uno::RuntimeException )
{
@@ -572,7 +572,7 @@ void SAL_CALL OleEmbeddedObject::addEventListener( const uno::Reference< documen
m_pInterfaceContainer->addInterface( ::getCppuType( (const uno::Reference< document::XEventListener >*)0 ), xListener );
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::removeEventListener(
const uno::Reference< document::XEventListener >& xListener )
throw ( uno::RuntimeException )
@@ -597,7 +597,7 @@ void SAL_CALL OleEmbeddedObject::removeEventListener(
}
// XInplaceObject ( wrapper related implementation )
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setObjectRectangles( const awt::Rectangle& aPosRect,
const awt::Rectangle& aClipRect )
throw ( embed::WrongStateException,
@@ -617,7 +617,7 @@ void SAL_CALL OleEmbeddedObject::setObjectRectangles( const awt::Rectangle& aPos
throw embed::WrongStateException();
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::enableModeless( sal_Bool bEnable )
throw ( embed::WrongStateException,
uno::Exception,
@@ -636,7 +636,7 @@ void SAL_CALL OleEmbeddedObject::enableModeless( sal_Bool bEnable )
throw embed::WrongStateException();
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::translateAccelerators(
const uno::Sequence< awt::KeyEvent >& aKeys )
throw ( embed::WrongStateException,
@@ -655,7 +655,7 @@ void SAL_CALL OleEmbeddedObject::translateAccelerators(
}
// XChild
-//------------------------------------------------------
+
com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL OleEmbeddedObject::getParent() throw (::com::sun::star::uno::RuntimeException)
{
// begin wrapping related part ====================
@@ -670,7 +670,7 @@ com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL OleEm
return m_xParent;
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setParent( const com::sun::star::uno::Reference< com::sun::star::uno::XInterface >& xParent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException)
{
// begin wrapping related part ====================
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx
index 528d0fc5bdfa..0f2b4db2bdd7 100644
--- a/embeddedobj/source/msole/olepersist.cxx
+++ b/embeddedobj/source/msole/olepersist.cxx
@@ -49,7 +49,7 @@
using namespace ::com::sun::star;
using namespace ::comphelper;
-//-------------------------------------------------------------------------
+
sal_Bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory )
{
if ( !xFactory.is() )
@@ -72,7 +72,7 @@ sal_Bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMulti
return bRet;
}
-//----------------------------------------------
+
OUString GetNewTempFileURL_Impl( const uno::Reference< lang::XMultiServiceFactory >& xFactory )
{
SAL_WARN_IF( !xFactory.is(), "embeddedobj.ole", "No factory is provided!" );
@@ -98,7 +98,7 @@ OUString GetNewTempFileURL_Impl( const uno::Reference< lang::XMultiServiceFactor
return aResult;
}
-//-----------------------------------------------
+
OUString GetNewFilledTempFile_Impl( const uno::Reference< io::XInputStream >& xInStream,
const uno::Reference< lang::XMultiServiceFactory >& xFactory )
throw ( io::IOException,
@@ -182,7 +182,7 @@ OUString GetNewFilledTempFile_Impl( const uno::Reference< embed::XOptimizedStora
return aResult;
}
-//------------------------------------------------------
+
void SetStreamMediaType_Impl( const uno::Reference< io::XStream >& xStream, const OUString& aMediaType )
{
uno::Reference< beans::XPropertySet > xPropSet( xStream, uno::UNO_QUERY );
@@ -192,7 +192,7 @@ void SetStreamMediaType_Impl( const uno::Reference< io::XStream >& xStream, cons
xPropSet->setPropertyValue("MediaType", uno::makeAny( aMediaType ) );
}
#endif
-//------------------------------------------------------
+
void LetCommonStoragePassBeUsed_Impl( const uno::Reference< io::XStream >& xStream )
{
uno::Reference< beans::XPropertySet > xPropSet( xStream, uno::UNO_QUERY );
@@ -203,7 +203,7 @@ void LetCommonStoragePassBeUsed_Impl( const uno::Reference< io::XStream >& xStre
uno::makeAny( (sal_Bool)sal_True ) );
}
#ifdef WNT
-//------------------------------------------------------
+
void VerbExecutionController::StartControlExecution()
{
osl::MutexGuard aGuard( m_aVerbExecutionMutex );
@@ -217,7 +217,7 @@ void VerbExecutionController::StartControlExecution()
}
}
-//------------------------------------------------------
+
sal_Bool VerbExecutionController::EndControlExecution_WasModified()
{
osl::MutexGuard aGuard( m_aVerbExecutionMutex );
@@ -232,7 +232,7 @@ sal_Bool VerbExecutionController::EndControlExecution_WasModified()
return bResult;
}
-//------------------------------------------------------
+
void VerbExecutionController::ModificationNotificationIsDone()
{
osl::MutexGuard aGuard( m_aVerbExecutionMutex );
@@ -241,7 +241,7 @@ void VerbExecutionController::ModificationNotificationIsDone()
m_bChangedOnVerbExecution = sal_True;
}
#endif
-//-----------------------------------------------
+
void VerbExecutionController::LockNotification()
{
osl::MutexGuard aGuard( m_aVerbExecutionMutex );
@@ -249,7 +249,7 @@ void VerbExecutionController::LockNotification()
m_nNotificationLock++;
}
-//-----------------------------------------------
+
void VerbExecutionController::UnlockNotification()
{
osl::MutexGuard aGuard( m_aVerbExecutionMutex );
@@ -257,7 +257,7 @@ void VerbExecutionController::UnlockNotification()
m_nNotificationLock--;
}
-//-----------------------------------------------
+
uno::Reference< io::XStream > OleEmbeddedObject::GetNewFilledTempStream_Impl( const uno::Reference< io::XInputStream >& xInStream )
throw( io::IOException )
{
@@ -279,7 +279,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::GetNewFilledTempStream_Impl( co
return xTempFile;
}
-//------------------------------------------------------
+
uno::Reference< io::XStream > OleEmbeddedObject::TryToGetAcceptableFormat_Impl( const uno::Reference< io::XStream >& xStream )
throw ( uno::Exception )
{
@@ -361,7 +361,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToGetAcceptableFormat_Impl(
return uno::Reference< io::XStream >();
}
-//------------------------------------------------------
+
void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStream >& xTargetStream,
const uno::Reference< io::XStream >& xCachedVisualRepresentation )
throw ( uno::Exception )
@@ -513,7 +513,7 @@ void OleEmbeddedObject::InsertVisualCache_Impl( const uno::Reference< io::XStrea
xTransacted->commit();
}
-//------------------------------------------------------
+
void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< io::XStream >& xTargetStream )
throw ( uno::Exception )
{
@@ -547,14 +547,14 @@ void OleEmbeddedObject::RemoveVisualCache_Impl( const uno::Reference< io::XStrea
xTransacted->commit();
}
-//------------------------------------------------------
+
void OleEmbeddedObject::SetVisReplInStream( sal_Bool bExists )
{
m_bVisReplInitialized = sal_True;
m_bVisReplInStream = bExists;
}
-//------------------------------------------------------
+
sal_Bool OleEmbeddedObject::HasVisReplInStream()
{
if ( !m_bVisReplInitialized )
@@ -620,7 +620,7 @@ sal_Bool OleEmbeddedObject::HasVisReplInStream()
return m_bVisReplInStream;
}
-//------------------------------------------------------
+
uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepresentation_Impl(
const uno::Reference< io::XStream >& xStream,
sal_Bool bAllowToRepair50 )
@@ -755,7 +755,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepres
return xResult;
}
-//------------------------------------------------------
+
void OleEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::XStorage >& xNewParentStorage,
const uno::Reference< io::XStream >& xNewObjectStream,
const OUString& aNewName )
@@ -781,7 +781,7 @@ void OleEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::XStor
m_aEntryName = aNewName;
}
-//------------------------------------------------------
+
void OleEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::XStorage >& xNewParentStorage,
const OUString& aNewName )
{
@@ -797,7 +797,7 @@ void OleEmbeddedObject::SwitchOwnPersistence( const uno::Reference< embed::XStor
}
#ifdef WNT
-//----------------------------------------------
+
sal_Bool OleEmbeddedObject::SaveObject_Impl()
{
sal_Bool bResult = sal_False;
@@ -817,7 +817,7 @@ sal_Bool OleEmbeddedObject::SaveObject_Impl()
return bResult;
}
-//----------------------------------------------
+
sal_Bool OleEmbeddedObject::OnShowWindow_Impl( sal_Bool bShow )
{
::osl::ResettableMutexGuard aGuard( m_aMutex );
@@ -861,14 +861,14 @@ sal_Bool OleEmbeddedObject::OnShowWindow_Impl( sal_Bool bShow )
return bResult;
}
-//------------------------------------------------------
+
void OleEmbeddedObject::OnIconChanged_Impl()
{
// TODO/LATER: currently this notification seems to be impossible
// MakeEventListenerNotification_Impl( OUString( "OnIconChanged" ) );
}
-//------------------------------------------------------
+
void OleEmbeddedObject::OnViewChanged_Impl()
{
if ( m_bDisposed )
@@ -900,7 +900,7 @@ void OleEmbeddedObject::OnViewChanged_Impl()
// ===============================================================
}
-//------------------------------------------------------
+
void OleEmbeddedObject::OnClosed_Impl()
{
if ( m_bDisposed )
@@ -914,7 +914,7 @@ void OleEmbeddedObject::OnClosed_Impl()
}
}
-//------------------------------------------------------
+
OUString OleEmbeddedObject::CreateTempURLEmpty_Impl()
{
SAL_WARN_IF( !m_aTempURL.isEmpty(), "embeddedobj.ole", "The object has already the temporary file!" );
@@ -923,7 +923,7 @@ OUString OleEmbeddedObject::CreateTempURLEmpty_Impl()
return m_aTempURL;
}
-//------------------------------------------------------
+
OUString OleEmbeddedObject::GetTempURL_Impl()
{
if ( m_aTempURL.isEmpty() )
@@ -950,7 +950,7 @@ OUString OleEmbeddedObject::GetTempURL_Impl()
return m_aTempURL;
}
-//------------------------------------------------------
+
void OleEmbeddedObject::CreateOleComponent_Impl( OleComponent* pOleComponent )
{
if ( !m_pOleComponent )
@@ -967,7 +967,7 @@ void OleEmbeddedObject::CreateOleComponent_Impl( OleComponent* pOleComponent )
}
}
-//------------------------------------------------------
+
void OleEmbeddedObject::CreateOleComponentAndLoad_Impl( OleComponent* pOleComponent )
{
if ( !m_pOleComponent )
@@ -988,7 +988,7 @@ void OleEmbeddedObject::CreateOleComponentAndLoad_Impl( OleComponent* pOleCompon
}
}
-//------------------------------------------------------
+
void OleEmbeddedObject::CreateOleComponentFromClipboard_Impl( OleComponent* pOleComponent )
{
if ( !m_pOleComponent )
@@ -1004,7 +1004,7 @@ void OleEmbeddedObject::CreateOleComponentFromClipboard_Impl( OleComponent* pOle
}
}
-//------------------------------------------------------
+
uno::Reference< io::XOutputStream > OleEmbeddedObject::GetStreamForSaving()
{
if ( !m_xObjectStream.is() )
@@ -1023,7 +1023,7 @@ uno::Reference< io::XOutputStream > OleEmbeddedObject::GetStreamForSaving()
return xOutStream;
}
-//----------------------------------------------
+
void OleEmbeddedObject::StoreObjectToStream( uno::Reference< io::XOutputStream > xOutStream )
throw ( uno::Exception )
{
@@ -1062,7 +1062,7 @@ void OleEmbeddedObject::StoreObjectToStream( uno::Reference< io::XOutputStream >
// probably it must be specified on storing
}
#endif
-//------------------------------------------------------
+
void OleEmbeddedObject::StoreToLocation_Impl(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -1274,7 +1274,7 @@ void OleEmbeddedObject::StoreToLocation_Impl(
}
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::setPersistentEntry(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -1484,7 +1484,7 @@ void SAL_CALL OleEmbeddedObject::setPersistentEntry(
#endif
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::storeToEntry( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
@@ -1518,7 +1518,7 @@ void SAL_CALL OleEmbeddedObject::storeToEntry( const uno::Reference< embed::XSto
// TODO: should the listener notification be done?
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::storeAsEntry( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lArguments,
@@ -1552,7 +1552,7 @@ void SAL_CALL OleEmbeddedObject::storeAsEntry( const uno::Reference< embed::XSto
// TODO: should the listener notification be done here or in saveCompleted?
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew )
throw ( embed::WrongStateException,
uno::Exception,
@@ -1653,7 +1653,7 @@ void SAL_CALL OleEmbeddedObject::saveCompleted( sal_Bool bUseNew )
}
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1682,7 +1682,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::hasEntry()
return sal_False;
}
-//------------------------------------------------------
+
OUString SAL_CALL OleEmbeddedObject::getEntryName()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1716,7 +1716,7 @@ OUString SAL_CALL OleEmbeddedObject::getEntryName()
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::storeOwn()
throw ( embed::WrongStateException,
io::IOException,
@@ -1836,7 +1836,7 @@ void SAL_CALL OleEmbeddedObject::storeOwn()
MakeEventListenerNotification_Impl( OUString( "OnVisAreaChanged" ));
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -1869,7 +1869,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::isReadonly()
return m_bReadOnly;
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::reload(
const uno::Sequence< beans::PropertyValue >& lArguments,
const uno::Sequence< beans::PropertyValue >& lObjArgs )
@@ -1913,7 +1913,7 @@ void SAL_CALL OleEmbeddedObject::reload(
// use meaningfull part of lArguments
}
-//------------------------------------------------------
+
void SAL_CALL OleEmbeddedObject::breakLink( const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName )
throw ( lang::IllegalArgumentException,
@@ -2033,7 +2033,7 @@ void SAL_CALL OleEmbeddedObject::breakLink( const uno::Reference< embed::XStorag
}
}
-//------------------------------------------------------
+
sal_Bool SAL_CALL OleEmbeddedObject::isLink()
throw ( embed::WrongStateException,
uno::RuntimeException )
@@ -2054,7 +2054,7 @@ sal_Bool SAL_CALL OleEmbeddedObject::isLink()
return m_bIsLink;
}
-//------------------------------------------------------
+
OUString SAL_CALL OleEmbeddedObject::getLinkURL()
throw ( embed::WrongStateException,
uno::Exception,
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx
index 6bba050ea12e..bbfe1d44286f 100644
--- a/embeddedobj/source/msole/ownview.cxx
+++ b/embeddedobj/source/msole/ownview.cxx
@@ -56,7 +56,7 @@ uno::Reference< io::XStream > TryToGetAcceptableFormat_Impl( const uno::Referenc
//========================================================
// Dummy interaction handler
//========================================================
-//--------------------------------------------------------
+
class DummyHandler_Impl : public ::cppu::WeakImplHelper1< task::XInteractionHandler >
{
public:
@@ -67,12 +67,12 @@ public:
throw( uno::RuntimeException );
};
-//--------------------------------------------------------
+
DummyHandler_Impl::~DummyHandler_Impl()
{
}
-//--------------------------------------------------------
+
void SAL_CALL DummyHandler_Impl::handle( const uno::Reference< task::XInteractionRequest >& )
throw( uno::RuntimeException )
{
@@ -82,7 +82,7 @@ void SAL_CALL DummyHandler_Impl::handle( const uno::Reference< task::XInteractio
//========================================================
// Object viewer
//========================================================
-//--------------------------------------------------------
+
OwnView_Impl::OwnView_Impl( const uno::Reference< lang::XMultiServiceFactory >& xFactory,
const uno::Reference< io::XInputStream >& xInputStream )
: m_xFactory( xFactory )
@@ -95,7 +95,7 @@ OwnView_Impl::OwnView_Impl( const uno::Reference< lang::XMultiServiceFactory >&
m_aTempFileURL = GetNewFilledTempFile_Impl( xInputStream, m_xFactory );
}
-//--------------------------------------------------------
+
OwnView_Impl::~OwnView_Impl()
{
try {
@@ -108,7 +108,7 @@ OwnView_Impl::~OwnView_Impl()
} catch( uno::Exception& ) {}
}
-//--------------------------------------------------------
+
sal_Bool OwnView_Impl::CreateModelFromURL( const OUString& aFileURL )
{
sal_Bool bResult = sal_False;
@@ -177,7 +177,7 @@ sal_Bool OwnView_Impl::CreateModelFromURL( const OUString& aFileURL )
return bResult;
}
-//--------------------------------------------------------
+
sal_Bool OwnView_Impl::CreateModel( sal_Bool bUseNative )
{
sal_Bool bResult = sal_False;
@@ -192,7 +192,7 @@ sal_Bool OwnView_Impl::CreateModel( sal_Bool bUseNative )
return bResult;
}
-//--------------------------------------------------------
+
OUString OwnView_Impl::GetFilterNameFromExtentionAndInStream(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
const OUString& aNameWithExtention,
@@ -254,7 +254,7 @@ OUString OwnView_Impl::GetFilterNameFromExtentionAndInStream(
return aFilterName;
}
-//--------------------------------------------------------
+
sal_Bool OwnView_Impl::ReadContentsAndGenerateTempFile( const uno::Reference< io::XInputStream >& xInStream,
sal_Bool bParseHeader )
{
@@ -402,7 +402,7 @@ sal_Bool OwnView_Impl::ReadContentsAndGenerateTempFile( const uno::Reference< io
return !bFailed;
}
-//--------------------------------------------------------
+
void OwnView_Impl::CreateNative()
{
if ( !m_aNativeTempURL.isEmpty() )
@@ -475,7 +475,7 @@ void OwnView_Impl::CreateNative()
{}
}
-//--------------------------------------------------------
+
sal_Bool OwnView_Impl::Open()
{
sal_Bool bResult = sal_False;
@@ -540,7 +540,7 @@ sal_Bool OwnView_Impl::Open()
return bResult;
}
-//--------------------------------------------------------
+
void OwnView_Impl::Close()
{
uno::Reference< frame::XModel > xModel;
@@ -580,7 +580,7 @@ void OwnView_Impl::Close()
m_bBusy = sal_False;
}
-//--------------------------------------------------------
+
void SAL_CALL OwnView_Impl::notifyEvent( const document::EventObject& aEvent )
throw ( uno::RuntimeException )
{
@@ -617,14 +617,14 @@ void SAL_CALL OwnView_Impl::notifyEvent( const document::EventObject& aEvent )
}
}
-//--------------------------------------------------------
+
void SAL_CALL OwnView_Impl::queryClosing( const lang::EventObject&, sal_Bool )
throw ( util::CloseVetoException,
uno::RuntimeException )
{
}
-//--------------------------------------------------------
+
void SAL_CALL OwnView_Impl::notifyClosing( const lang::EventObject& Source )
throw ( uno::RuntimeException )
{
@@ -633,7 +633,7 @@ void SAL_CALL OwnView_Impl::notifyClosing( const lang::EventObject& Source )
m_xModel = uno::Reference< frame::XModel >();
}
-//--------------------------------------------------------
+
void SAL_CALL OwnView_Impl::disposing( const lang::EventObject& Source )
throw (uno::RuntimeException)
{
diff --git a/embeddedobj/source/msole/xdialogcreator.cxx b/embeddedobj/source/msole/xdialogcreator.cxx
index c191075076db..c0f45fc556eb 100644
--- a/embeddedobj/source/msole/xdialogcreator.cxx
+++ b/embeddedobj/source/msole/xdialogcreator.cxx
@@ -69,7 +69,7 @@ typedef UINT STDAPICALLTYPE OleUIInsertObjectA_Type(LPOLEUIINSERTOBJECTA);
using namespace ::com::sun::star;
using namespace ::comphelper;
-//-------------------------------------------------------------------------
+
uno::Sequence< sal_Int8 > GetRelatedInternalID_Impl( const uno::Sequence< sal_Int8 >& aClassID )
{
// Writer
@@ -105,7 +105,7 @@ uno::Sequence< sal_Int8 > GetRelatedInternalID_Impl( const uno::Sequence< sal_In
return aClassID;
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL MSOLEDialogObjectCreator::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(2);
@@ -114,20 +114,20 @@ uno::Sequence< OUString > SAL_CALL MSOLEDialogObjectCreator::impl_staticGetSuppo
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL MSOLEDialogObjectCreator::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.embed.MSOLEObjectSystemCreator");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL MSOLEDialogObjectCreator::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new MSOLEDialogObjectCreator( xServiceManager ) );
}
-//-------------------------------------------------------------------------
+
embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDialog(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -281,7 +281,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
#endif
}
-//-------------------------------------------------------------------------
+
embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitFromClipboard(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntryName,
@@ -333,21 +333,21 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitF
#endif
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL MSOLEDialogObjectCreator::getImplementationName()
throw ( uno::RuntimeException )
{
return impl_staticGetImplementationName();
}
-//-------------------------------------------------------------------------
+
sal_Bool SAL_CALL MSOLEDialogObjectCreator::supportsService( const OUString& ServiceName )
throw ( uno::RuntimeException )
{
return cppu::supportsService(this, ServiceName);
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL MSOLEDialogObjectCreator::getSupportedServiceNames()
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/source/msole/xolefactory.cxx b/embeddedobj/source/msole/xolefactory.cxx
index 6545bdb6b895..7f9a87f54a6b 100644
--- a/embeddedobj/source/msole/xolefactory.cxx
+++ b/embeddedobj/source/msole/xolefactory.cxx
@@ -33,7 +33,7 @@ using namespace ::com::sun::star;
// TODO: do not create OLE objects that represent OOo documents
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OleEmbeddedObjectFactory::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(2);
@@ -42,20 +42,20 @@ uno::Sequence< OUString > SAL_CALL OleEmbeddedObjectFactory::impl_staticGetSuppo
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL OleEmbeddedObjectFactory::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.embed.OLEEmbeddedObjectFactory");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new OleEmbeddedObjectFactory( xServiceManager ) );
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInstanceInitFromEntry(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -128,7 +128,7 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInstanceInitFromMediaDescriptor(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -169,7 +169,7 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInstanceInitNew(
const uno::Sequence< sal_Int8 >& aClassID,
const OUString& aClassName,
@@ -211,7 +211,7 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInstanceLink(
const uno::Reference< embed::XStorage >& xStorage,
const OUString& sEntName,
@@ -254,7 +254,7 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInstanceUserInit(
const uno::Sequence< sal_Int8 >& aClassID,
const OUString& aClassName,
@@ -301,7 +301,7 @@ uno::Reference< uno::XInterface > SAL_CALL OleEmbeddedObjectFactory::createInsta
return xResult;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL OleEmbeddedObjectFactory::getImplementationName()
throw ( uno::RuntimeException )
{
@@ -314,7 +314,7 @@ sal_Bool SAL_CALL OleEmbeddedObjectFactory::supportsService( const OUString& Ser
return cppu::supportsService(this, ServiceName);
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OleEmbeddedObjectFactory::getSupportedServiceNames()
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/test/MainThreadExecutor/xexecutor.cxx b/embeddedobj/test/MainThreadExecutor/xexecutor.cxx
index 1fdbb1092ac8..e696aaa25616 100644
--- a/embeddedobj/test/MainThreadExecutor/xexecutor.cxx
+++ b/embeddedobj/test/MainThreadExecutor/xexecutor.cxx
@@ -52,7 +52,7 @@ MainThreadExecutor_Impl::MainThreadExecutor_Impl( const uno::Reference< task::XJ
{
}
-//-------------------------------------------------------------------------
+
uno::Any SAL_CALL UNOMainThreadExecutor::execute( const uno::Sequence< beans::NamedValue >& aArguments )
throw ( lang::IllegalArgumentException,
uno::Exception,
@@ -82,7 +82,7 @@ uno::Any SAL_CALL UNOMainThreadExecutor::execute( const uno::Sequence< beans::Na
return uno::Any();
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL UNOMainThreadExecutor::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(1);
@@ -90,20 +90,20 @@ uno::Sequence< OUString > SAL_CALL UNOMainThreadExecutor::impl_staticGetSupporte
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL UNOMainThreadExecutor::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.thread.MainThreadExecutor");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL UNOMainThreadExecutor::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new UNOMainThreadExecutor( xServiceManager ) );
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL UNOMainThreadExecutor::getImplementationName()
throw ( uno::RuntimeException )
{
@@ -116,7 +116,7 @@ sal_Bool SAL_CALL UNOMainThreadExecutor::supportsService( const OUString& Servic
return cppu::supportsService(this, ServiceName);
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL UNOMainThreadExecutor::getSupportedServiceNames()
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/test/mtexecutor/bitmapcreator.cxx b/embeddedobj/test/mtexecutor/bitmapcreator.cxx
index 3c81ccaa41c7..1c75fd9655f7 100644
--- a/embeddedobj/test/mtexecutor/bitmapcreator.cxx
+++ b/embeddedobj/test/mtexecutor/bitmapcreator.cxx
@@ -26,7 +26,7 @@
using namespace ::com::sun::star;
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL VCLBitmapCreator::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(2);
@@ -35,20 +35,20 @@ uno::Sequence< OUString > SAL_CALL VCLBitmapCreator::impl_staticGetSupportedServ
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL VCLBitmapCreator::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.embed.BitmapCreator");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL VCLBitmapCreator::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new VCLBitmapCreator( xServiceManager ) );
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL VCLBitmapCreator::createInstance()
throw ( uno::Exception,
@@ -60,7 +60,7 @@ uno::Reference< uno::XInterface > SAL_CALL VCLBitmapCreator::createInstance()
return aResult;
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL VCLBitmapCreator::createInstanceWithArguments(
const uno::Sequence< uno::Any >& aArguments )
throw ( uno::Exception,
@@ -84,7 +84,7 @@ uno::Reference< uno::XInterface > SAL_CALL VCLBitmapCreator::createInstanceWithA
return aResult;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL VCLBitmapCreator::getImplementationName()
throw ( uno::RuntimeException )
{
@@ -97,7 +97,7 @@ sal_Bool SAL_CALL VCLBitmapCreator::supportsService( const OUString& ServiceName
return cppu::supportsService(this, ServiceName);
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL VCLBitmapCreator::getSupportedServiceNames()
throw ( uno::RuntimeException )
{
diff --git a/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx b/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx
index 1a0b70f6fa64..f363295914f2 100644
--- a/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx
+++ b/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx
@@ -24,7 +24,7 @@
using namespace ::com::sun::star;
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL MainThreadExecutor::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(2);
@@ -33,20 +33,20 @@ uno::Sequence< OUString > SAL_CALL MainThreadExecutor::impl_staticGetSupportedSe
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL MainThreadExecutor::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.thread.MainThreadExecutor");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL MainThreadExecutor::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new MainThreadExecutor( xServiceManager ) );
}
-//-------------------------------------------------------------------------
+
uno::Any SAL_CALL MainThreadExecutor::execute( const uno::Sequence< beans::NamedValue >& aArguments )
throw ( lang::IllegalArgumentException,
uno::Exception,
@@ -76,7 +76,7 @@ uno::Any SAL_CALL MainThreadExecutor::execute( const uno::Sequence< beans::Named
return uno::Any();
}
-//-------------------------------------------------------------------------
+
IMPL_STATIC_LINK( MainThreadExecutor, worker, MainThreadExecutorRequest*, pThreadExecutorRequest )
{
pThreadExecutorRequest->doIt();
@@ -85,7 +85,7 @@ IMPL_STATIC_LINK( MainThreadExecutor, worker, MainThreadExecutorRequest*, pThrea
return 0;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL MainThreadExecutor::getImplementationName()
throw ( uno::RuntimeException )
{
@@ -98,14 +98,14 @@ sal_Bool SAL_CALL MainThreadExecutor::supportsService( const OUString& ServiceNa
return cppu::supportsService(this, ServiceName);
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL MainThreadExecutor::getSupportedServiceNames()
throw ( uno::RuntimeException )
{
return impl_staticGetSupportedServiceNames();
}
-//-------------------------------------------------------------------------
+
MainThreadExecutorRequest::MainThreadExecutorRequest( const uno::Reference< task::XJob >& xJob,
const uno::Sequence< beans::NamedValue >& aValues )
: m_xJob( xJob )
@@ -113,7 +113,7 @@ MainThreadExecutorRequest::MainThreadExecutorRequest( const uno::Reference< task
{
}
-//-------------------------------------------------------------------------
+
void MainThreadExecutorRequest::doIt()
{
if ( m_xJob.is() )