diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-07-09 19:49:34 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-07-10 18:38:40 +0200 |
commit | edc62adae9a354ca1305e83b10c98a545f58d341 (patch) | |
tree | 5bdbcf8901df3e18183fcffc8c4ac6c9c6ae610a /include/svl | |
parent | d7cdb7fcc48a580cd5183ba899f73f2ad9bdbec9 (diff) |
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')
-rw-r--r-- | include/svl/itemset.hxx | 6 |
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; |