21#include <com/sun/star/beans/PropertyAttribute.hpp>
39 :OGenericUnoDialog( _rxContext )
40 ,m_pItemPoolDefaults(nullptr)
43 PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
64 return css::uno::Sequence<sal_Int8>();
70 return "org.openoffice.comp.form.ui.OControlFontDialog";
76 return {
"com.sun.star.form.ControlFontDialog" };
81 Reference<XPropertySet> xGridModel;
95 Reference<XPropertySetInfo> xInfo( createPropertySetInfo(
getInfoHelper() ) );
108 Sequence< Property > aProps;
109 describeProperties(aProps);
110 return new ::cppu::OPropertyArrayHelper(aProps);
117 OSL_ENSURE(
m_xControlModel.is(),
"OControlFontDialog::createDialog: no introspectee set!");
129 OSL_ENSURE(
m_xDialog,
"OControlFontDialog::executedDialog: no dialog anymore?!!");
141extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
143 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
static weld::Window * GetFrameWeld(const css::uno::Reference< css::awt::XWindow > &rWindow)
::cppu::IPropertyArrayHelper * getArrayHelper()
static void translateItemsToProperties(const SfxItemSet &_rSet, const css::uno::Reference< css::beans::XPropertySet > &_rxModel)
fills the given property set with values obtained from the given item set
static void destroyItemSet(std::unique_ptr< SfxItemSet > &_rpSet, rtl::Reference< SfxItemPool > &_rpPool, std::vector< SfxPoolItem * > *&_rpDefaults)
destroys an item previously created with <method>createItemSet</method>
static void createItemSet(std::unique_ptr< SfxItemSet > &_rpSet, rtl::Reference< SfxItemPool > &_rpPool, std::vector< SfxPoolItem * > *&_rpDefaults)
creates an item set to be used with this dialog
static void translatePropertiesToItems(const css::uno::Reference< css::beans::XPropertySet > &_rxModel, SfxItemSet *_pSet)
fills the given item set with values obtained from the given property set
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void executedDialog(sal_Int16 _nExecutionResult) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
std::vector< SfxPoolItem * > * m_pItemPoolDefaults
std::unique_ptr< SfxItemSet > m_pFontItems
virtual OUString SAL_CALL getImplementationName() override
virtual ~OControlFontDialog() override
rtl::Reference< SfxItemPool > m_pItemPool
OControlFontDialog(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
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
css::uno::Reference< css::beans::XPropertySet > m_xControlModel
std::unique_ptr< weld::DialogController > m_xDialog
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * extensions_propctrlr_OControlFontDialog_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
virtual const SfxItemSet * GetOutputItemSet() const override
Sequence< PropertyValue > aArguments
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
a property handler for any virtual string properties