summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-23 13:55:25 +0200
committerNoel Grandin <noel@peralex.com>2013-04-25 08:56:38 +0200
commit73adc9b6e29a3e005d7c2e98795045e7025325c2 (patch)
tree56eefce782329c17267a6f8d676c5e8e3238829a /extensions
parent4bc3ead0649bf2885050ec4cfb47a5ed13bfa41e (diff)
fdo#46808, Convert form::ControlFontDialog to new style
Change-Id: I83487cddbd6b3fce1fdcdfa48623b63a0e026d90
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/controlfontdialog.cxx16
-rw-r--r--extensions/source/propctrlr/controlfontdialog.hxx5
2 files changed, 20 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/controlfontdialog.cxx b/extensions/source/propctrlr/controlfontdialog.cxx
index 861583f686be..87246f779cd4 100644
--- a/extensions/source/propctrlr/controlfontdialog.cxx
+++ b/extensions/source/propctrlr/controlfontdialog.cxx
@@ -103,6 +103,22 @@ namespace pcr
return aSupported;
}
+ void OControlFontDialog::initialize( const Sequence< Any >& aArguments ) throw(Exception, RuntimeException)
+ {
+ Reference<XPropertySet> xGridModel;
+ if (aArguments.getLength() == 1 && (aArguments[0] >>= xGridModel))
+ {
+ PropertyValue aArg;
+ aArg.Name = OUString("IntrospectedObject");
+ aArg.Value <<= xGridModel;
+ Sequence< Any > aNewArguments(1);
+ aNewArguments[0] <<= aArg;
+ OControlFontDialog_DBase::initialize(aNewArguments);
+ }
+ else
+ OControlFontDialog_DBase::initialize(aArguments);
+ }
+
//---------------------------------------------------------------------
Reference<XPropertySetInfo> SAL_CALL OControlFontDialog::getPropertySetInfo() throw(RuntimeException)
{
diff --git a/extensions/source/propctrlr/controlfontdialog.hxx b/extensions/source/propctrlr/controlfontdialog.hxx
index c0db06a47b63..50080e0301f2 100644
--- a/extensions/source/propctrlr/controlfontdialog.hxx
+++ b/extensions/source/propctrlr/controlfontdialog.hxx
@@ -70,7 +70,10 @@ namespace pcr
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
- // XPropertySet
+ // XInitialization
+ virtual void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
+
+ // XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();