summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/dataaccess/commandcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/core/dataaccess/commandcontainer.cxx')
-rw-r--r--dbaccess/source/core/dataaccess/commandcontainer.cxx26
1 files changed, 6 insertions, 20 deletions
diff --git a/dbaccess/source/core/dataaccess/commandcontainer.cxx b/dbaccess/source/core/dataaccess/commandcontainer.cxx
index 34d7283b1837..695b952ca2f4 100644
--- a/dbaccess/source/core/dataaccess/commandcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/commandcontainer.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -28,19 +29,11 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_dbaccess.hxx"
-#ifndef _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_
#include "commandcontainer.hxx"
-#endif
-#ifndef _DBA_COREDATAACESS_COMMANDDEFINITION_HXX_
#include "commanddefinition.hxx"
-#endif
-#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
-#endif
-#ifndef DBACCESS_SHARED_DBASTRINGS_HRC
#include "dbastrings.hrc"
-#endif
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -51,16 +44,14 @@ using namespace ::osl;
using namespace ::comphelper;
using namespace ::cppu;
-//........................................................................
namespace dbaccess
{
-//........................................................................
//==========================================================================
//= OCommandContainer
//==========================================================================
DBG_NAME(OCommandContainer)
-//--------------------------------------------------------------------------
+
OCommandContainer::OCommandContainer( const Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB
,const Reference< XInterface >& _xParentContainer
,const TContentPtr& _pImpl
@@ -71,15 +62,15 @@ OCommandContainer::OCommandContainer( const Reference< ::com::sun::star::lang::X
{
DBG_CTOR(OCommandContainer, NULL);
}
-//--------------------------------------------------------------------------
+
OCommandContainer::~OCommandContainer()
{
DBG_DTOR(OCommandContainer, NULL);
}
-// -----------------------------------------------------------------------------
+
IMPLEMENT_FORWARD_XINTERFACE2( OCommandContainer,ODefinitionContainer,OCommandContainer_BASE)
IMPLEMENT_TYPEPROVIDER2(OCommandContainer,ODefinitionContainer,OCommandContainer_BASE);
-//--------------------------------------------------------------------------
+
Reference< XContent > OCommandContainer::createObject( const ::rtl::OUString& _rName)
{
const ODefinitionContainer_Impl& rDefinitions( getDefinitions() );
@@ -91,25 +82,20 @@ Reference< XContent > OCommandContainer::createObject( const ::rtl::OUString& _r
return new OCommandDefinition( *this, _rName, m_aContext.getLegacyServiceFactory(), pElementContent );
}
-// -----------------------------------------------------------------------------
Reference< XInterface > SAL_CALL OCommandContainer::createInstanceWithArguments(const Sequence< Any >& /*aArguments*/ ) throw (Exception, RuntimeException)
{
return createInstance( );
}
-// -----------------------------------------------------------------------------
Reference< XInterface > SAL_CALL OCommandContainer::createInstance( ) throw (Exception, RuntimeException)
{
return m_aContext.createComponent( (::rtl::OUString)( m_bTables ? SERVICE_SDB_TABLEDEFINITION : SERVICE_SDB_COMMAND_DEFINITION ) );
}
-// -----------------------------------------------------------------------------
::rtl::OUString OCommandContainer::determineContentType() const
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "application/vnd.org.openoffice.DatabaseCommandDefinitionContainer" ) );
}
-//........................................................................
} // namespace dbaccess
-//........................................................................
-
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */