summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-08-13 01:20:31 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-16 21:22:44 -0400
commitc8f40655eac948bb8b7c9387e7333160c0088f4f (patch)
tree0940fa43c94c794d9f9f6e7fa7dbaffcc132e524 /sw
parent80b1e662777100a7dfd80176a2b528880a838167 (diff)
Keep the container and object separate methods.
ScVbaControl doesn't have any container instance to pass to the old method.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unocoll.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index 735dc6bff3cf..a2e0dbc185c7 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -106,8 +106,14 @@ class SwVbaCodeNameProvider : public ::cppu::WeakImplHelper1< document::XCodeNam
public:
SwVbaCodeNameProvider( SwDocShell* pDocShell ) : mpDocShell( pDocShell ) {}
// XCodeNameQuery
- rtl::OUString SAL_CALL getCodeNameForObject(
- const uno::Reference< uno::XInterface >& /*xContainer*/, const uno::Reference< uno::XInterface >& xIf ) throw( uno::RuntimeException )
+
+ rtl::OUString SAL_CALL getCodeNameForContainer( const uno::Reference< uno::XInterface >& /*xIf*/ ) throw( uno::RuntimeException )
+ {
+ // not implemented...
+ return rtl::OUString();
+ }
+
+ rtl::OUString SAL_CALL getCodeNameForObject( const uno::Reference< uno::XInterface >& xIf ) throw( uno::RuntimeException )
{
// Initialise the code name
if ( msThisDocumentCodeName.getLength() == 0 )