summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-06-03 19:11:57 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-06-03 19:29:07 +0200
commitd611b2e0b2b713ffaf8b2ec75e6a74180316f50b (patch)
treeb17d096058f94ee99757609dd29f26da5897f887 /sw/inc
parentb79017f49a487a3981b1cd9f488ed5062eeb880b (diff)
sw: add SwDBManager::RevokeDataSource()
And call it from the SwDoc dtor, so that embedded data source definitions registered on opening are deregistered on close. Change-Id: I40309389d44dcbc225f6f2ef98bb20579e12d650
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/dbmgr.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index e397e5777373..657e957e1e68 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -376,6 +376,9 @@ public:
/// Load the embedded data source of the document and also register it.
void LoadAndRegisterEmbeddedDataSource(const SwDBData& rData, const SwDocShell& rDocShell);
+ /// Unregister a data source.
+ static void RevokeDataSource(const OUString& rName);
+
/** try to get the data source from the given connection through the XChild interface.
If this is not possible, the data source will be created through its name.
@param _xConnection