27#include <com/sun/star/awt/XWindow.hpp>
28#include <com/sun/star/beans/PropertyAttribute.hpp>
29#include <com/sun/star/sdbc/SQLException.hpp>
37extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
39 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& )
62 return css::uno::Sequence<sal_Int8>();
67 return "org.openoffice.comp.dbu.OSQLMessageDialog";
72 return {
"com.sun.star.sdb.ErrorMessageDialog" };
80 if ((
args.getLength() == 3) && (
args[0] >>= title) && (
args[1] >>= parentWindow)) {
83 {
"Title",
Any(title)},
84 {
"ParentWindow",
Any(parentWindow)},
85 {
"SQLException",
args[2]}
101 throw IllegalArgumentException();
104 _rConvertedValue = aInfo.
get();
128 describeProperties(aProps);
129 return new ::cppu::OPropertyArrayHelper(aProps);
138 OSL_FAIL(
"OSQLMessageDialog::createDialog : You should use the SQLException property to specify the error to display!");
139 return std::make_unique<OSQLMessageBox>(pParent, SQLException());
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
::cppu::IPropertyArrayHelper * getArrayHelper()
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, sal_Int32 _nHandle, const css::uno::Any &_rValue) override
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Any m_aException
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual std::unique_ptr< weld::DialogController > createDialog(const css::uno::Reference< css::awt::XWindow > &rParent) override
virtual void SAL_CALL initialize(css::uno::Sequence< css::uno::Any > const &args) override
OSQLMessageDialog(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
#define PROPERTY_ID_SQLEXCEPTION
#define PROPERTY_ID_HELP_URL
constexpr OUStringLiteral PROPERTY_SQLEXCEPTION(u"SQLException")
constexpr OUStringLiteral PROPERTY_HELP_URL(u"HelpURL")
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * org_openoffice_comp_dbu_OSQLMessageDialog_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)