2000-09-18 23:16:46 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 11:42:13 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
2008-04-10 11:42:13 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
2008-04-10 11:42:13 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
2008-04-10 11:42:13 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
2008-04-10 11:42:13 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
2008-04-10 11:42:13 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 23:16:46 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_
|
|
|
|
#define _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_
|
|
|
|
|
|
|
|
#include "definitioncontainer.hxx"
|
2006-07-10 14:09:08 +00:00
|
|
|
|
2004-08-02 14:07:12 +00:00
|
|
|
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
2006-07-10 14:09:08 +00:00
|
|
|
|
2004-08-02 14:07:12 +00:00
|
|
|
#include <cppuhelper/implbase1.hxx>
|
2000-09-18 23:16:46 +00:00
|
|
|
|
2000-10-18 15:16:39 +00:00
|
|
|
//........................................................................
|
|
|
|
namespace dbaccess
|
|
|
|
{
|
|
|
|
//........................................................................
|
2000-09-18 23:16:46 +00:00
|
|
|
//==========================================================================
|
2006-07-10 14:09:08 +00:00
|
|
|
//= OCommandContainer
|
2000-09-18 23:16:46 +00:00
|
|
|
//==========================================================================
|
|
|
|
|
2006-07-10 14:09:08 +00:00
|
|
|
typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XSingleServiceFactory
|
|
|
|
> OCommandContainer_BASE;
|
|
|
|
|
2004-08-02 14:07:12 +00:00
|
|
|
class OCommandContainer : public ODefinitionContainer
|
|
|
|
,public OCommandContainer_BASE
|
2000-09-18 23:16:46 +00:00
|
|
|
{
|
2004-08-02 14:07:12 +00:00
|
|
|
sal_Bool m_bTables;
|
2006-07-10 14:09:08 +00:00
|
|
|
|
2000-09-18 23:16:46 +00:00
|
|
|
public:
|
|
|
|
/** constructs the container.<BR>
|
|
|
|
*/
|
|
|
|
OCommandContainer(
|
2004-08-02 14:07:12 +00:00
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB
|
|
|
|
,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xParentContainer
|
|
|
|
,const TContentPtr& _pImpl
|
2006-07-10 14:09:08 +00:00
|
|
|
,sal_Bool _bTables
|
2000-09-18 23:16:46 +00:00
|
|
|
);
|
|
|
|
|
2004-08-02 14:07:12 +00:00
|
|
|
DECLARE_XINTERFACE( )
|
|
|
|
DECLARE_TYPEPROVIDER( );
|
|
|
|
|
2006-07-10 14:09:08 +00:00
|
|
|
// XSingleServiceFactory
|
2004-08-02 14:07:12 +00:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance( ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
|
2006-07-10 14:09:08 +00:00
|
|
|
|
2000-09-18 23:16:46 +00:00
|
|
|
protected:
|
2004-08-02 14:07:12 +00:00
|
|
|
virtual ~OCommandContainer();
|
|
|
|
|
2006-07-10 14:09:08 +00:00
|
|
|
// ODefinitionContainer
|
2004-08-02 14:07:12 +00:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent > createObject(const ::rtl::OUString& _rName);
|
2008-12-09 07:25:38 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// OContentHelper overridables
|
|
|
|
virtual ::rtl::OUString determineContentType() const;
|
2000-09-18 23:16:46 +00:00
|
|
|
};
|
|
|
|
|
2000-10-18 15:16:39 +00:00
|
|
|
//........................................................................
|
|
|
|
} // namespace dbaccess
|
|
|
|
//........................................................................
|
2000-09-18 23:16:46 +00:00
|
|
|
|
|
|
|
#endif // _DBA_COREDATAACCESS_COMMANDCONTAINER_HXX_
|
|
|
|
|
|
|
|
|