1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: TableFilterDlg.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_dbaccess.hxx"
34 #ifndef _DBU_REGHELPER_HXX_
35 #include "dbu_reghelper.hxx"
37 #ifndef _DBAUI_TABLEFILTERDLG_HXX
38 #include "TableFilterDlg.hxx"
40 #ifndef _DBAUI_TABLESSINGLEDLG_HXX_
41 #include "TablesSingleDlg.hxx"
45 using namespace dbaui
;
47 extern "C" void SAL_CALL
createRegistryInfo_OTableFilterDialog()
49 static OMultiInstanceAutoRegistration
< OTableFilterDialog
> aAutoRegistration
;
52 //.........................................................................
55 //.........................................................................
57 using namespace ::com::sun::star::uno
;
58 using namespace ::com::sun::star::lang
;
59 using namespace ::com::sun::star::beans
;
61 //=========================================================================
62 //-------------------------------------------------------------------------
63 OTableFilterDialog::OTableFilterDialog(const Reference
< XMultiServiceFactory
>& _rxORB
)
64 :ODatabaseAdministrationDialog(_rxORB
)
67 //-------------------------------------------------------------------------
68 Sequence
<sal_Int8
> SAL_CALL
OTableFilterDialog::getImplementationId( ) throw(RuntimeException
)
70 static ::cppu::OImplementationId aId
;
71 return aId
.getImplementationId();
74 //-------------------------------------------------------------------------
75 Reference
< XInterface
> SAL_CALL
OTableFilterDialog::Create(const Reference
< XMultiServiceFactory
>& _rxFactory
)
77 return *(new OTableFilterDialog(_rxFactory
));
80 //-------------------------------------------------------------------------
81 ::rtl::OUString SAL_CALL
OTableFilterDialog::getImplementationName() throw(RuntimeException
)
83 return getImplementationName_Static();
86 //-------------------------------------------------------------------------
87 ::rtl::OUString
OTableFilterDialog::getImplementationName_Static() throw(RuntimeException
)
89 return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.comp.dbu.OTableFilterDialog"));
92 //-------------------------------------------------------------------------
93 ::comphelper::StringSequence SAL_CALL
OTableFilterDialog::getSupportedServiceNames() throw(RuntimeException
)
95 return getSupportedServiceNames_Static();
98 //-------------------------------------------------------------------------
99 ::comphelper::StringSequence
OTableFilterDialog::getSupportedServiceNames_Static() throw(RuntimeException
)
101 ::comphelper::StringSequence
aSupported(1);
102 aSupported
.getArray()[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.TableFilterDialog"));
106 //-------------------------------------------------------------------------
107 Reference
<XPropertySetInfo
> SAL_CALL
OTableFilterDialog::getPropertySetInfo() throw(RuntimeException
)
109 Reference
<XPropertySetInfo
> xInfo( createPropertySetInfo( getInfoHelper() ) );
113 //-------------------------------------------------------------------------
114 ::cppu::IPropertyArrayHelper
& OTableFilterDialog::getInfoHelper()
116 return *const_cast<OTableFilterDialog
*>(this)->getArrayHelper();
119 //------------------------------------------------------------------------------
120 ::cppu::IPropertyArrayHelper
* OTableFilterDialog::createArrayHelper( ) const
122 Sequence
< Property
> aProps
;
123 describeProperties(aProps
);
124 return new ::cppu::OPropertyArrayHelper(aProps
);
126 //------------------------------------------------------------------------------
127 Dialog
* OTableFilterDialog::createDialog(Window
* _pParent
)
129 OTableSubscriptionDialog
* pDlg
= new OTableSubscriptionDialog(_pParent
, m_pDatasourceItems
, m_aContext
.getLegacyServiceFactory(),m_aInitialSelection
);
133 //.........................................................................
135 //.........................................................................