oox: add an environment variable to bypass the SmartArt warning

That dialog is counter-productive if you develop that feature itself.

Change-Id: Ia635a2ff0ecc29a0d11be5c621a7c2a76469f9ba
Reviewed-on: https://gerrit.libreoffice.org/61880
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Miklos Vajna 2018-10-17 15:20:37 +02:00
parent e8c0646527
commit 4fb3e08a9a
2 changed files with 7 additions and 1 deletions

5
oox/README.vars Normal file
View file

@ -0,0 +1,5 @@
Environment variables in oox:
- ppt:
- OOX_NO_SMARTART_WARNING - don't warn on SmartArts missing their DrawingML fallback

View file

@ -138,7 +138,8 @@ bool PowerPointImport::importDocument()
bool bRet = importFragment(xPresentationFragmentHandler);
if (mbMissingExtDrawing)
static bool bNoSmartartWarning = getenv("OOX_NO_SMARTART_WARNING");
if (!bNoSmartartWarning && mbMissingExtDrawing)
{
// Construct a warning message.
INetURLObject aURL(getFileUrl());