22#include <com/sun/star/awt/XWindow.hpp>
23#include <com/sun/star/beans/PropertyAttribute.hpp>
24#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
30#include <osl/diagnose.h>
33extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
35 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& )
37 return cppu::acquire(new ::dbaui::RowsetOrderDialog(context));
39extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
41 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& )
43 return cppu::acquire(new ::dbaui::RowsetFilterDialog(context));
49#define PROPERTY_ID_QUERYCOMPOSER 100
50#define PROPERTY_ID_ROWSET 101
81 return css::uno::Sequence<sal_Int8>();
95 css::uno::Sequence< css::beans::Property > aProps;
96 describeProperties(aProps);
97 return new ::cppu::OPropertyArrayHelper(aProps);
108 if ( !::dbtools::isEmbeddedInDatabase(
m_xRowSet, xConnection ) )
111 if ( xRowsetProps.is() )
121 if ( xSuppColumns.is() )
122 xColumns = xSuppColumns->getColumns();
124 if ( !xColumns.is() || !xColumns->hasElements() )
128 xSuppColumns.set(
m_xComposer, css::uno::UNO_QUERY);
129 if ( xSuppColumns.is() )
130 xColumns = xSuppColumns->getColumns();
133 OSL_ENSURE( xColumns.is() && xColumns->hasElements(),
"ComposerDialog::createDialog: not much fun without any columns!" );
140 if ( !xConnection.is() || !xColumns.is() || !
m_xComposer.is() )
157 return "com.sun.star.uno.comp.sdb.RowsetFilterDialog";
162 for (
const OUString& s : aSupported)
163 if (s == _rServiceName)
170 return {
"com.sun.star.sdb.FilterDialog" };
175 return std::make_unique<DlgFilterCrit>(_pParent,
m_aContext, _rxConnection,
m_xComposer, _rxColumns);
213 return "com.sun.star.uno.comp.sdb.RowsetOrderDialog";
218 for (
const OUString& s : aSupported)
219 if (s == _rServiceName)
226 return {
"com.sun.star.sdb.OrderDialog" };
231 return std::make_unique<DlgOrderCrit>(pParent, rxConnection,
m_xComposer, rxColumns);
262 if ( _nExecutionResult )
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
::cppu::IPropertyArrayHelper * getArrayHelper()
css::uno::Reference< css::sdbc::XRowSet > m_xRowSet
ComposerDialog(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > m_xComposer
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual ~ComposerDialog() override
virtual std::unique_ptr< weld::GenericDialogController > createComposerDialog(weld::Window *_pParent, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::container::XNameAccess > &_rxColumns)=0
virtual std::unique_ptr< weld::DialogController > createDialog(const css::uno::Reference< css::awt::XWindow > &rParent) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
const OUString & GetOriginalOrder() const
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual void executedDialog(sal_Int16 _nExecutionResult) override
virtual std::unique_ptr< weld::GenericDialogController > createComposerDialog(weld::Window *_pParent, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::container::XNameAccess > &_rxColumns) override
RowsetFilterDialog(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual std::unique_ptr< weld::GenericDialogController > createComposerDialog(weld::Window *_pParent, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::container::XNameAccess > &_rxColumns) override
RowsetOrderDialog(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual void executedDialog(sal_Int16 _nExecutionResult) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override=0
std::unique_ptr< weld::DialogController > m_xDialog
virtual void executedDialog(sal_Int16)
virtual OUString SAL_CALL getImplementationName() override=0
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
css::uno::Reference< css::uno::XComponentContext > m_aContext
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#define PROPERTY_ID_QUERYCOMPOSER
#define PROPERTY_ID_ROWSET
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_uno_comp_sdb_RowsetFilterDialog_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_uno_comp_sdb_RowsetOrderDialog_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
#define DBG_UNHANDLED_EXCEPTION(...)
Sequence< PropertyValue > aArguments
constexpr OUStringLiteral PROPERTY_QUERYCOMPOSER
constexpr OUStringLiteral PROPERTY_ROWSET
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
constexpr OUStringLiteral PROPERTY_ACTIVE_CONNECTION(u"ActiveConnection")