summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-14 19:57:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-14 22:17:13 +0200
commit1c97e5ffa79ccb6ad6272b7044c008800b61da79 (patch)
tree711ceebf0e3b1966a72b93dbe2b23626c5dd84f0 /include
parentd377c085627ac00268952d2401a8b8fde360336c (diff)
only vcl and toolkit need to use [G|S]etUnoWrapper
Change-Id: I47cdb47cceda32f0871fd2f713ea565852383ca7 Reviewed-on: https://gerrit.libreoffice.org/61765 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/svapp.hxx17
-rw-r--r--include/vcl/toolkit/unowrap.hxx17
2 files changed, 17 insertions, 17 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx
index 8fd852a5cb53..b1e9eb7c9a45 100644
--- a/include/vcl/svapp.hxx
+++ b/include/vcl/svapp.hxx
@@ -1183,23 +1183,6 @@ public:
*/
static css::uno::Reference< css::awt::XToolkit > GetVCLToolkit();
- /** Get the application's UNO wrapper object.
-
- Note that this static function will only ever try to create UNO wrapper object once, and
- if it fails then it will not ever try again, even if the function is called multiple times.
-
- @param bCreateIfNotExists Create the UNO wrapper object if it doesn't exist when true.
-
- @return UNO wrapper object.
- */
- static UnoWrapperBase* GetUnoWrapper( bool bCreateIfNotExists = true );
-
- /** Sets the application's UNO Wrapper object.
-
- @param pWrapper Pointer to UNO wrapper object.
- */
- static void SetUnoWrapper( UnoWrapperBase* pWrapper );
-
///@}
diff --git a/include/vcl/toolkit/unowrap.hxx b/include/vcl/toolkit/unowrap.hxx
index bc4cc3ca848e..2146f27d3e19 100644
--- a/include/vcl/toolkit/unowrap.hxx
+++ b/include/vcl/toolkit/unowrap.hxx
@@ -78,6 +78,23 @@ public:
virtual css::uno::Reference< css::accessibility::XAccessible >
CreateAccessible( Menu* pMenu, bool bIsMenuBar ) = 0;
+ /** Get the application's UNO wrapper object.
+
+ Note that this static function will only ever try to create UNO wrapper object once, and
+ if it fails then it will not ever try again, even if the function is called multiple times.
+
+ @param bCreateIfNotExists Create the UNO wrapper object if it doesn't exist when true.
+
+ @return UNO wrapper object.
+ */
+ static UnoWrapperBase* GetUnoWrapper( bool bCreateIfNotExists = true );
+
+ /** Sets the application's UNO Wrapper object.
+
+ @param pWrapper Pointer to UNO wrapper object.
+ */
+ static void SetUnoWrapper( UnoWrapperBase* pWrapper );
+
protected:
~UnoWrapperBase() {}
};