20 #ifndef INCLUDED_SDEXT_SOURCE_MINIMIZER_UNODIALOG_HXX
21 #define INCLUDED_SDEXT_SOURCE_MINIMIZER_UNODIALOG_HXX
23 #include <com/sun/star/uno/Sequence.h>
24 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
25 #include <com/sun/star/frame/XController.hpp>
26 #include <com/sun/star/frame/XFrame.hpp>
27 #include <com/sun/star/beans/XMultiPropertySet.hpp>
28 #include <com/sun/star/awt/XControl.hpp>
29 #include <com/sun/star/awt/XControlModel.hpp>
30 #include <com/sun/star/container/XNameContainer.hpp>
31 #include <com/sun/star/container/XNameAccess.hpp>
32 #include <com/sun/star/uno/XComponentContext.hpp>
33 #include <com/sun/star/awt/XActionListener.hpp>
34 #include <com/sun/star/awt/XButton.hpp>
35 #include <com/sun/star/awt/XCheckBox.hpp>
36 #include <com/sun/star/awt/XComboBox.hpp>
37 #include <com/sun/star/awt/XRadioButton.hpp>
38 #include <com/sun/star/awt/XListBox.hpp>
39 #include <com/sun/star/awt/XFixedText.hpp>
40 #include <com/sun/star/awt/XUnoControlDialog.hpp>
41 #include <com/sun/star/awt/XReschedule.hpp>
48 UnoDialog(
const css::uno::Reference< css::uno::XComponentContext >& rxMSF, css::uno::Reference< css::frame::XFrame >
const & rxFrame );
54 css::uno::Reference< css::uno::XInterface >
insertControlModel(
const OUString& rServiceName,
const OUString& rName,
55 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
59 css::uno::Reference< css::awt::XButton >
insertButton(
const OUString& rName,
60 const css::uno::Reference< css::awt::XActionListener >& xActionListener,
const css::uno::Sequence< OUString >& rPropertyNames,
61 const css::uno::Sequence< css::uno::Any >& rPropertyValues );
63 css::uno::Reference< css::awt::XFixedText >
insertFixedText(
const OUString& rName,
64 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
66 css::uno::Reference< css::awt::XCheckBox >
insertCheckBox(
const OUString& rName,
67 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
70 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
72 css::uno::Reference< css::awt::XComboBox >
insertComboBox(
const OUString& rName,
73 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
75 css::uno::Reference< css::awt::XRadioButton >
insertRadioButton(
const OUString& rName,
76 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
78 css::uno::Reference< css::awt::XListBox >
insertListBox(
const OUString& rName,
79 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
81 css::uno::Reference< css::awt::XControl >
insertImage(
const OUString& rName,
82 const css::uno::Sequence< OUString >& rPropertyNames,
const css::uno::Sequence< css::uno::Any >& rPropertyValues );
84 void setControlProperty(
const OUString& rControlName,
const OUString& rPropertyName,
const css::uno::Any& rPropertyValue );
85 css::uno::Any
getControlProperty(
const OUString& rControlName,
const OUString& rPropertyName );
92 css::uno::Reference<css::awt::XControl>
getControl(
const OUString& rControlName)
const {
return mxDialog->getControl(rControlName); }
94 void setPropertyValues(
const css::uno::Sequence<OUString>& rNameSeq,
const css::uno::Sequence<css::uno::Any>& rValueSeq)
98 css::uno::Reference< css::uno::XComponentContext >
mxContext;
111 css::uno::Reference< css::awt::XUnoControlDialog >
mxDialog;
116 #endif // INCLUDED_SDEXT_SOURCE_MINIMIZER_UNODIALOG_HXX
void disableControl(const OUString &rControlName)
css::uno::Any getControlProperty(const OUString &rControlName, const OUString &rPropertyName)
css::uno::Reference< css::awt::XReschedule > mxReschedule
css::uno::Reference< css::uno::XInterface > mxDialogModel
css::uno::Reference< css::awt::XListBox > insertListBox(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
css::uno::Reference< css::awt::XControl > insertImage(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
void setPropertyValues(const css::uno::Sequence< OUString > &rNameSeq, const css::uno::Sequence< css::uno::Any > &rValueSeq)
css::uno::Reference< css::awt::XControl > insertFormattedField(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
void setControlProperty(const OUString &rControlName, const OUString &rPropertyName, const css::uno::Any &rPropertyValue)
css::uno::Reference< css::awt::XUnoControlDialog > mxDialog
css::uno::Reference< css::awt::XControlModel > mxControlModel
css::uno::Reference< css::awt::XFixedText > insertFixedText(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
css::uno::Reference< css::lang::XMultiServiceFactory > mxDialogModelMSF
void endExecute(bool bStatus)
const css::uno::Reference< css::frame::XController > & controller() const
css::uno::Reference< css::awt::XComboBox > insertComboBox(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
css::uno::Reference< css::awt::XRadioButton > insertRadioButton(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
void enableControl(const OUString &rControlName)
css::uno::Reference< css::container::XNameAccess > mxDialogModelNameAccess
css::uno::Reference< css::uno::XComponentContext > mxContext
UnoDialog(const css::uno::Reference< css::uno::XComponentContext > &rxMSF, css::uno::Reference< css::frame::XFrame > const &rxFrame)
css::uno::Reference< css::awt::XCheckBox > insertCheckBox(const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
css::uno::Reference< css::frame::XController > mxController
css::uno::Reference< css::container::XNameContainer > mxDialogModelNameContainer
css::uno::Reference< css::awt::XControl > mxControl
css::uno::Reference< css::uno::XInterface > insertControlModel(const OUString &rServiceName, const OUString &rName, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)
void setVisible(const OUString &rName, bool bVisible)
css::uno::Reference< css::awt::XControl > getControl(const OUString &rControlName) const
css::uno::Reference< css::beans::XMultiPropertySet > mxDialogModelMultiPropertySet
css::uno::Reference< css::awt::XButton > insertButton(const OUString &rName, const css::uno::Reference< css::awt::XActionListener > &xActionListener, const css::uno::Sequence< OUString > &rPropertyNames, const css::uno::Sequence< css::uno::Any > &rPropertyValues)