summaryrefslogtreecommitdiffstats
path: root/include/svl/itemset.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-07-09 19:49:34 +1000
committerMike Kaganski <mike.kaganski@collabora.com>2018-07-10 18:38:40 +0200
commitedc62adae9a354ca1305e83b10c98a545f58d341 (patch)
tree5bdbcf8901df3e18183fcffc8c4ac6c9c6ae610a /include/svl/itemset.hxx
parentUpdate git submodules (diff)
downloadcore-edc62adae9a354ca1305e83b10c98a545f58d341.tar.gz
core-edc62adae9a354ca1305e83b10c98a545f58d341.zip
tdf#118634: Don't save embedded data source to a temporary preview document
Also don't use storeAsURL to store embedded datasource when the document is being saved using storeToURL. Change-Id: I69a7ee5ae066e591be5e45c87bcf57dff370decc Reviewed-on: https://gerrit.libreoffice.org/57178 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svl/itemset.hxx')
-rw-r--r--include/svl/itemset.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx
index d3fa0d17fc8d..bf1e4bde664b 100644
--- a/include/svl/itemset.hxx
+++ b/include/svl/itemset.hxx
@@ -170,6 +170,12 @@ public:
return nullptr;
}
+ template <class T>
+ static const T* GetItem(const SfxItemSet* pItemSet, TypedWhichId<T> nWhich,
+ bool bSearchInParent)
+ {
+ return GetItem<T>(pItemSet, static_cast<sal_uInt16>(nWhich), bSearchInParent);
+ }
sal_uInt16 GetWhichByPos(sal_uInt16 nPos) const;