summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-01-04 15:13:59 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-01-07 03:24:19 +0100
commit0189792bd8837057e853a48499b4d59f9149490f (patch)
treec983c4808eab1c3cbc58e4a415e158d36dd5a44b /include
parent7cd7bb90b2f07d104b1cd7680b56da2fe58d4564 (diff)
SAL_WARN when using the interal GraphicObject URL
Write a warn if a URL is created from a internal GraphicObject URL as this is now deprecated. Extract the way to determine if a URL is internal to its own function, so it can be used to check and rewrite places that use it. Change-Id: Iedf13a596eab839094ea98e41787865bf6783adf Reviewed-on: https://gerrit.libreoffice.org/47495 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/grfmgr.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index f5208d7f04f5..993d13dd117a 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -465,7 +465,9 @@ public:
void StopAnimation( OutputDevice* pOut = nullptr, long nExtraData = 0 );
- static GraphicObject CreateGraphicObjectFromURL( const OUString &rURL );
+ static bool isGraphicObjectUniqueIdURL(OUString const & rURL);
+ static GraphicObject CreateGraphicObjectFromURL(OUString const & rURL);
+
// will inspect an object ( e.g. a control ) for any 'ImageURL'
// properties and return these in a vector. Note: this implementation
// will cater for XNameContainer objects and deep inspect any containers