25#include <com/sun/star/beans/XPropertySetInfo.hpp>
26#include <com/sun/star/beans/PropertyAttribute.hpp>
27#include <com/sun/star/sdb/XTextConnectionSettings.hpp>
38 using ::com::sun::star::uno::Reference;
39 using ::com::sun::star::uno::XInterface;
40 using ::com::sun::star::uno::Any;
41 using ::com::sun::star::uno::XComponentContext;
42 using ::com::sun::star::beans::XPropertySetInfo;
43 using ::com::sun::star::uno::Sequence;
44 using ::com::sun::star::beans::Property;
46 namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute;
52 class OTextConnectionSettingsDialog;
56 typedef ::cppu::ImplInheritanceHelper< ODatabaseAdministrationDialog
57 , css::sdb::XTextConnectionSettings
63 class OTextConnectionSettingsDialog
70 explicit OTextConnectionSettingsDialog(
const Reference<XComponentContext>& _rContext );
72 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId()
override;
75 virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo()
override;
76 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper()
override;
77 virtual ::cppu::IPropertyArrayHelper* createArrayHelper()
const override;
80 virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
const Any& rValue )
override;
81 virtual sal_Bool SAL_CALL convertFastPropertyValue( Any& rConvertedValue, Any& rOldValue, sal_Int32 nHandle,
const Any& rValue)
override;
82 virtual void SAL_CALL getFastPropertyValue( Any& rValue, sal_Int32 nHandle )
const override;
85 virtual void SAL_CALL
setPropertyValue(
const OUString& p1,
const css::uno::Any& p2)
override
86 { ODatabaseAdministrationDialog::setPropertyValue(p1, p2); }
88 {
return ODatabaseAdministrationDialog::getPropertyValue(p1); }
89 virtual void SAL_CALL addPropertyChangeListener(
const OUString& p1,
const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
override
90 { ODatabaseAdministrationDialog::addPropertyChangeListener(p1, p2); }
91 virtual void SAL_CALL removePropertyChangeListener(
const OUString& p1,
const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
override
92 { ODatabaseAdministrationDialog::removePropertyChangeListener(p1, p2); }
93 virtual void SAL_CALL addVetoableChangeListener(
const OUString& p1,
const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
override
94 { ODatabaseAdministrationDialog::addVetoableChangeListener(p1, p2); }
95 virtual void SAL_CALL removeVetoableChangeListener(
const OUString& p1,
const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
override
96 { ODatabaseAdministrationDialog::removeVetoableChangeListener(p1, p2); }
97 virtual void SAL_CALL setTitle(
const OUString& p1)
override
99 virtual sal_Int16 SAL_CALL execute()
override
104 virtual std::unique_ptr<weld::DialogController> createDialog(
const css::uno::Reference<css::awt::XWindow>& rParent)
override;
105 using OTextConnectionSettingsDialog_BASE::getFastPropertyValue;
111 OTextConnectionSettingsDialog::OTextConnectionSettingsDialog(
const Reference<XComponentContext>& _rContext )
114 TextConnectionSettingsDialog::bindItemStorages( *m_pDatasourceItems,
m_aPropertyValues );
117 css::uno::Sequence<sal_Int8>
118 OTextConnectionSettingsDialog::getImplementationId()
120 return css::uno::Sequence<sal_Int8>();
123 OUString SAL_CALL OTextConnectionSettingsDialog::getImplementationName()
125 return "com.sun.star.comp.dbaccess.OTextConnectionSettingsDialog";
127 sal_Bool SAL_CALL OTextConnectionSettingsDialog::supportsService(
const OUString& _rServiceName)
130 for (
const OUString& s : aSupported)
131 if (s == _rServiceName)
136 css::uno::Sequence< OUString > SAL_CALL OTextConnectionSettingsDialog::getSupportedServiceNames()
138 return {
"com.sun.star.sdb.TextConnectionSettings" };
141 Reference< XPropertySetInfo > SAL_CALL OTextConnectionSettingsDialog::getPropertySetInfo()
143 return createPropertySetInfo( getInfoHelper() );
148 return *getArrayHelper();
153 Sequence< Property > aProps;
154 describeProperties( aProps );
159 sal_Int32 nProp = aProps.getLength();
160 aProps.realloc( nProp + 6 );
161 auto pProps = aProps.getArray();
167 PropertyAttribute::TRANSIENT
174 PropertyAttribute::TRANSIENT
181 PropertyAttribute::TRANSIENT
188 PropertyAttribute::TRANSIENT
195 PropertyAttribute::TRANSIENT
202 PropertyAttribute::TRANSIENT
205 return new ::cppu::OPropertyArrayHelper( aProps );
208 std::unique_ptr<weld::DialogController> OTextConnectionSettingsDialog::createDialog(
const css::uno::Reference<css::awt::XWindow>& rParent)
213 void SAL_CALL OTextConnectionSettingsDialog::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle,
const Any& _rValue )
218 pos->second->setPropertyValue( _rValue );
222 OTextConnectionSettingsDialog::setFastPropertyValue_NoBroadcast( _nHandle, _rValue );
226 sal_Bool SAL_CALL OTextConnectionSettingsDialog::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle,
const Any& _rValue)
228 bool bModified =
false;
234 _rConvertedValue = _rValue;
235 pos->second->getPropertyValue( _rOldValue );
240 bModified = OTextConnectionSettingsDialog::convertFastPropertyValue( _rConvertedValue, _rOldValue, _nHandle, _rValue );
246 void SAL_CALL OTextConnectionSettingsDialog::getFastPropertyValue( Any& _rValue, sal_Int32 _nHandle )
const
251 pos->second->getPropertyValue( _rValue );
255 OTextConnectionSettingsDialog::getFastPropertyValue( _rValue, _nHandle );
261extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
263 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& )
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
virtual void SAL_CALL setTitle(const OUString &aTitle) override
virtual sal_Int16 SAL_CALL execute() override
css::uno::Sequence< OUString > getSupportedServiceNames()
::cppu::ImplInheritanceHelper< ODatabaseAdministrationDialog, css::sdb::XTextConnectionSettings > OTextConnectionSettingsDialog_BASE
::comphelper::OPropertyArrayUsageHelper< OTextConnectionSettingsDialog > OTextConnectionSettingsDialog_PBASE
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
::std::map< PropertyId, css::uno::Any > PropertyValues
#define PROPERTY_ID_HEADER_LINE
#define PROPERTY_ID_FIELD_DELIMITER
#define PROPERTY_ID_ENCODING
#define PROPERTY_ID_STRING_DELIMITER
#define PROPERTY_ID_THOUSAND_DELIMITER
#define PROPERTY_ID_DECIMAL_DELIMITER
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_dbaccess_OTextConnectionSettingsDialog_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
PropertyValues m_aPropertyValues