summaryrefslogtreecommitdiffstats
path: root/include/sfx2/objsh.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-09-12 17:22:23 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-09-13 12:49:46 +0200
commit0c88fd43aebc57ebe8e4e49b74c1b6bef067ad89 (patch)
tree16173deb89a3b34d040a36ce2a25590d6bc0e849 /include/sfx2/objsh.hxx
parentSifr: tdf#136593 icon for new Distribution uno commands (diff)
downloadcore-0c88fd43aebc57ebe8e4e49b74c1b6bef067ad89.tar.gz
core-0c88fd43aebc57ebe8e4e49b74c1b6bef067ad89.zip
Unify the code used to get object shell for components
and their parents across the codebase. Change-Id: Ifb37fb940d285f81c1724a912204533e8c3b0044 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102546 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/sfx2/objsh.hxx')
-rw-r--r--include/sfx2/objsh.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 6a5da58e3ae0..8da1f2bb7f82 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -583,7 +583,8 @@ public:
static SfxObjectShell* CreateObjectByFactoryName( const OUString& rURL, SfxObjectCreateMode = SfxObjectCreateMode::STANDARD );
static css::uno::Reference< css::lang::XComponent >
CreateAndLoadComponent( const SfxItemSet& rSet );
- static SfxObjectShell* GetShellFromComponent( const css::uno::Reference< css::lang::XComponent >& xComp );
+ static SfxObjectShell* GetShellFromComponent(const css::uno::Reference< css::uno::XInterface >& xComp);
+ static SfxObjectShell* GetParentShell(const css::uno::Reference<css::uno::XInterface>& xChild);
static OUString GetServiceNameFromFactory( const OUString& rFact );
bool IsInPlaceActive() const;
bool IsUIActive() const;
@@ -759,7 +760,6 @@ public:
SAL_DLLPRIVATE void SetProgress_Impl( SfxProgress *pProgress );
SAL_DLLPRIVATE void PostActivateEvent_Impl( SfxViewFrame const * );
SAL_DLLPRIVATE void SetActivateEvent_Impl(SfxEventHintId );
- SAL_DLLPRIVATE SfxObjectShell* GetParentShellByModel_Impl();
// configuration items
SAL_DLLPRIVATE SignatureState ImplGetSignatureState( bool bScriptingContent = false );