summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-02-06 12:22:39 +0200
committerTor Lillqvist <tml@collabora.com>2019-02-06 13:48:34 +0200
commitca7bffb060ae50331700b79aad8885b66b9f35f2 (patch)
treeb6550044885afaf5293b508d1327d82b3e0db9cb
parentf58e3f17c9efd70aab8dbcd50eb938a998edacd1 (diff)
Add a dummy implementation of WordBasic.AppCount()
Change-Id: Ia9e78c331d2cb711653ee3e64597ebf2824e0eeb
-rw-r--r--oovbaapi/ooo/vba/word/XWordBasic.idl1
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx10
2 files changed, 11 insertions, 0 deletions
diff --git a/oovbaapi/ooo/vba/word/XWordBasic.idl b/oovbaapi/ooo/vba/word/XWordBasic.idl
index 4a91a7f7af11..d9e2a239668e 100644
--- a/oovbaapi/ooo/vba/word/XWordBasic.idl
+++ b/oovbaapi/ooo/vba/word/XWordBasic.idl
@@ -42,6 +42,7 @@ interface XWordBasic
long AppMaximize( [in] string WindowName, [in] any State );
long DocMaximize( [in] any State );
void AppShow( [in] string WindowName );
+ long AppCount();
};
}; }; };
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index f6382ad19c41..7f66e47ae1e1 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -112,6 +112,7 @@ public:
virtual sal_Int32 SAL_CALL AppMaximize( const OUString& WindowName, const css::uno::Any& State ) override;
virtual sal_Int32 SAL_CALL DocMaximize( const css::uno::Any& State ) override;
virtual void SAL_CALL AppShow( const OUString& WindowName ) override;
+ virtual sal_Int32 SAL_CALL AppCount() override;
};
SwVbaApplication::SwVbaApplication( uno::Reference<uno::XComponentContext >& xContext ):
@@ -667,4 +668,13 @@ SwWordBasic::AppShow( const OUString& WindowName )
// FIXME: Implement if necessary
}
+sal_Int32 SAL_CALL
+SwWordBasic::AppCount()
+{
+ SAL_INFO("sw.vba", "WordBasic.AppCount()");
+
+ // FIXME: Implement if necessary. Return a random number for now.
+ return 2;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */