summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-04 10:11:33 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-04 10:13:29 +0200
commit527440c9d9086ae01c277b0dca96a87eb0868ae6 (patch)
tree002e28ce9485938c5ad1ea5d3bf33ea7ffc5a8c6 /oox
parentc5a518936d7fa6a37864b86e172a1edec1415836 (diff)
oox: fix a few bogus SAL_WARN
The idea is that when an element is unhandled, it's either unhandled explicitly by an empty "case..break" block (so grep can quickly find it) or we raise a warning. Add a few placeholders for cases that we won't probably handle better in the near future to silence warnings. Change-Id: I41dec7802c4671550130393b4f98a8f0d8dfc059
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shapecontext.cxx5
-rw-r--r--oox/source/drawingml/shapegroupcontext.cxx2
-rw-r--r--oox/source/drawingml/textcharacterpropertiescontext.cxx2
3 files changed, 8 insertions, 1 deletions
diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx
index eef5a788dd3a..bc246d220df6 100644
--- a/oox/source/drawingml/shapecontext.cxx
+++ b/oox/source/drawingml/shapecontext.cxx
@@ -103,6 +103,7 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const
case XML_txXfrm:
{
mpShapePtr->getTextBody()->getTextProperties().moRotation = rAttribs.getInteger( XML_rot );
+ return 0;
break;
}
case XML_cNvSpPr:
@@ -120,6 +121,10 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const
break;
case XML_nvPicPr:
break;
+ case XML_relIds:
+ break;
+ case XML_nvSpPr:
+ break;
default:
SAL_WARN("oox", "ShapeContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
break;
diff --git a/oox/source/drawingml/shapegroupcontext.cxx b/oox/source/drawingml/shapegroupcontext.cxx
index d5eb50379404..d795c39f63a9 100644
--- a/oox/source/drawingml/shapegroupcontext.cxx
+++ b/oox/source/drawingml/shapegroupcontext.cxx
@@ -75,6 +75,8 @@ ContextHandlerRef ShapeGroupContext::onCreateContext( sal_Int32 aElementToken, c
case XML_grpSpPr:
return new ShapePropertiesContext( *this, *mpGroupShapePtr );
+ case XML_nvGrpSpPr:
+ return 0;
case XML_spPr:
return new ShapePropertiesContext( *this, *mpGroupShapePtr );
/*
diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx
index 898806ebb2aa..7bedd8e2f7a1 100644
--- a/oox/source/drawingml/textcharacterpropertiescontext.cxx
+++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx
@@ -216,7 +216,7 @@ ContextHandlerRef TextCharacterPropertiesContext::onCreateContext( sal_Int32 aEl
}
break;
default:
- SAL_INFO("oox", "TextCharacterPropertiesContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
+ SAL_WARN("oox", "TextCharacterPropertiesContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
break;
}