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:
parent
e8c0646527
commit
4fb3e08a9a
2 changed files with 7 additions and 1 deletions
5
oox/README.vars
Normal file
5
oox/README.vars
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Environment variables in oox:
|
||||||
|
|
||||||
|
- ppt:
|
||||||
|
|
||||||
|
- OOX_NO_SMARTART_WARNING - don't warn on SmartArts missing their DrawingML fallback
|
|
@ -138,7 +138,8 @@ bool PowerPointImport::importDocument()
|
||||||
|
|
||||||
bool bRet = importFragment(xPresentationFragmentHandler);
|
bool bRet = importFragment(xPresentationFragmentHandler);
|
||||||
|
|
||||||
if (mbMissingExtDrawing)
|
static bool bNoSmartartWarning = getenv("OOX_NO_SMARTART_WARNING");
|
||||||
|
if (!bNoSmartartWarning && mbMissingExtDrawing)
|
||||||
{
|
{
|
||||||
// Construct a warning message.
|
// Construct a warning message.
|
||||||
INetURLObject aURL(getFileUrl());
|
INetURLObject aURL(getFileUrl());
|
||||||
|
|
Loading…
Reference in a new issue