summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/dataaccess/documentdefinition.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/core/dataaccess/documentdefinition.cxx')
-rw-r--r--dbaccess/source/core/dataaccess/documentdefinition.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx
index 9c89e4da2b8a..511cc0147775 100644
--- a/dbaccess/source/core/dataaccess/documentdefinition.cxx
+++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx
@@ -156,6 +156,9 @@ namespace dbaccess
// OEmbedObjectHolder
typedef ::cppu::WeakComponentImplHelper< embed::XStateChangeListener > TEmbedObjectHolder;
+
+ namespace {
+
class OEmbedObjectHolder : public ::cppu::BaseMutex
,public TEmbedObjectHolder
{
@@ -184,6 +187,8 @@ namespace dbaccess
virtual void SAL_CALL disposing( const lang::EventObject& Source ) override;
};
+ }
+
void SAL_CALL OEmbedObjectHolder::disposing()
{
if ( m_xBroadCaster.is() )
@@ -235,6 +240,8 @@ namespace dbaccess
}
};
+ namespace {
+
// LockModifiable
class LockModifiable
{
@@ -267,9 +274,14 @@ namespace dbaccess
Reference< XModifiable2 > m_xModifiable;
};
+ }
+
// LifetimeCoupler
typedef ::cppu::WeakImplHelper< css::lang::XEventListener
> LifetimeCoupler_Base;
+
+ namespace {
+
/** helper class which couples the lifetime of a component to the lifetime
of another component
@@ -309,11 +321,15 @@ namespace dbaccess
protected:
};
+ }
+
void SAL_CALL LifetimeCoupler::disposing( const css::lang::EventObject& /*Source*/ )
{
m_xClient.clear();
}
+ namespace {
+
// ODocumentSaveContinuation
class ODocumentSaveContinuation : public OInteraction< XInteractionDocumentSave >
{
@@ -330,6 +346,8 @@ namespace dbaccess
virtual void SAL_CALL setName( const OUString& _sName,const Reference<XContent>& _xParent) override;
};
+ }
+
void SAL_CALL ODocumentSaveContinuation::setName( const OUString& _sName,const Reference<XContent>& _xParent)
{
m_sName = _sName;
@@ -531,6 +549,8 @@ IPropertyArrayHelper* ODocumentDefinition::createArrayHelper( ) const
return new OPropertyArrayHelper( ::comphelper::concatSequences( aProps, aManualProps ) );
}
+namespace {
+
class OExecuteImpl
{
bool& m_rbSet;
@@ -539,8 +559,6 @@ public:
~OExecuteImpl(){ m_rbSet = false; }
};
-namespace
-{
bool lcl_extractOpenMode( const Any& _rValue, sal_Int32& _out_rMode )
{
OpenCommandArgument aOpenCommand;