summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/formcontroller.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-22 09:27:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-22 14:40:58 +0200
commit5c2b301f031ff8374fcf0e4c2ed8f9bd4300815e (patch)
tree5a7091c2939a2244dc84548c411f9095b83305bf /extensions/source/propctrlr/formcontroller.hxx
parent690b9b08373dc7cc08517c4273c777154e893bd7 (diff)
extensions/prop: create instances with uno constructors
See tdf#74608 for motivation. Change-Id: I89d2c8d0b2bf960b3de1853c69fa64ff41b484ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99185 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/propctrlr/formcontroller.hxx')
-rw-r--r--extensions/source/propctrlr/formcontroller.hxx25
1 files changed, 4 insertions, 21 deletions
diff --git a/extensions/source/propctrlr/formcontroller.hxx b/extensions/source/propctrlr/formcontroller.hxx
index 82dd842ef8b4..b66b9de604ca 100644
--- a/extensions/source/propctrlr/formcontroller.hxx
+++ b/extensions/source/propctrlr/formcontroller.hxx
@@ -30,17 +30,6 @@ namespace pcr
{
- //= ServiceDescriptor
-
- struct ServiceDescriptor
- {
- OUString
- ( *GetImplementationName )( void );
- css::uno::Sequence< OUString >
- ( *GetSupportedServiceNames )( void );
- };
-
-
//= FormController
class FormController;
@@ -57,24 +46,18 @@ namespace pcr
,public FormController_PropertyBase2
{
private:
- ServiceDescriptor m_aServiceDescriptor;
css::uno::Reference< css::beans::XPropertySet >
m_xCurrentInspectee;
+ OUString m_sImplementationName;
+ css::uno::Sequence<OUString> m_aSupportedServiceNames;
public:
FormController(
const css::uno::Reference< css::uno::XComponentContext >& _rxContext,
- ServiceDescriptor _aServiceDescriptor,
+ const OUString& sImplementName,
+ const css::uno::Sequence<OUString>& aSupportedServiceNames,
bool _bUseFormFormComponentHandlers
);
- // XServiceInfo - static versions
- /// @throws css::uno::RuntimeException
- static OUString getImplementationName_static( );
- /// @throws css::uno::RuntimeException
- static css::uno::Sequence< OUString > getSupportedServiceNames_static( );
- static css::uno::Reference< css::uno::XInterface >
- Create(const css::uno::Reference< css::uno::XComponentContext >&);
-
protected:
virtual ~FormController() override;