loplugin:unusedenumconstants read-only constants in xmloff
Change-Id: I88afb3b4b3aa7d823c46062ead894561a66ac275 Reviewed-on: https://gerrit.libreoffice.org/33995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
37e9eae8ac
commit
f5245bf483
13 changed files with 1 additions and 60 deletions
|
@ -248,7 +248,6 @@ enum XMLTextPAttrTokens
|
|||
XML_TOK_TEXT_P_STYLE_NAME,
|
||||
XML_TOK_TEXT_P_COND_STYLE_NAME,
|
||||
XML_TOK_TEXT_P_LEVEL,
|
||||
XML_TOK_TEXT_P_CLASS_NAMES,
|
||||
XML_TOK_TEXT_P_IS_LIST_HEADER,
|
||||
XML_TOK_TEXT_P_RESTART_NUMBERING,
|
||||
XML_TOK_TEXT_P_START_VALUE
|
||||
|
|
|
@ -65,16 +65,13 @@ enum FieldIdEnum {
|
|||
|
||||
FIELD_ID_PLACEHOLDER, // placeholder field == jump edit field
|
||||
|
||||
FIELD_ID_VARIABLE_DECL, // field type for set variable
|
||||
FIELD_ID_VARIABLE_GET, // get variable == get expression
|
||||
FIELD_ID_VARIABLE_SET, // set variable == set expression
|
||||
FIELD_ID_VARIABLE_INPUT, // input field (variable)
|
||||
FIELD_ID_USER_DECL, // field type for user field
|
||||
FIELD_ID_USER_GET, // user field
|
||||
FIELD_ID_USER_INPUT, // input field (user field)
|
||||
FIELD_ID_TEXT_INPUT, // input field (text)
|
||||
FIELD_ID_EXPRESSION, // expression field = formula field
|
||||
FIELD_ID_SEQUENCE_DECL, // field type for sequence
|
||||
FIELD_ID_SEQUENCE, // sequence field
|
||||
|
||||
FIELD_ID_DATABASE_NEXT, // select next row
|
||||
|
|
|
@ -1179,11 +1179,9 @@ void SdXMLExport::ImpWriteAutoLayoutPlaceholder(XmlPlaceholder ePl, const Rectan
|
|||
case XmlPlaceholderTitle: aStr = "title"; break;
|
||||
case XmlPlaceholderOutline: aStr = "outline"; break;
|
||||
case XmlPlaceholderSubtitle: aStr = "subtitle"; break;
|
||||
case XmlPlaceholderText: aStr = "text"; break;
|
||||
case XmlPlaceholderGraphic: aStr = "graphic"; break;
|
||||
case XmlPlaceholderObject: aStr = "object"; break;
|
||||
case XmlPlaceholderChart: aStr = "chart"; break;
|
||||
case XmlPlaceholderOrgchart: aStr = "orgchart"; break;
|
||||
case XmlPlaceholderTable: aStr = "table"; break;
|
||||
case XmlPlaceholderPage: aStr = "page"; break;
|
||||
case XmlPlaceholderNotes: aStr = "notes"; break;
|
||||
|
|
|
@ -46,11 +46,9 @@ enum XmlPlaceholder
|
|||
XmlPlaceholderTitle,
|
||||
XmlPlaceholderOutline,
|
||||
XmlPlaceholderSubtitle,
|
||||
XmlPlaceholderText,
|
||||
XmlPlaceholderGraphic,
|
||||
XmlPlaceholderObject,
|
||||
XmlPlaceholderChart,
|
||||
XmlPlaceholderOrgchart,
|
||||
XmlPlaceholderTable,
|
||||
XmlPlaceholderPage,
|
||||
XmlPlaceholderNotes,
|
||||
|
|
|
@ -86,11 +86,9 @@ namespace xmloff
|
|||
switch (_eAttrib)
|
||||
{
|
||||
case faName: return "name";
|
||||
case faServiceName: return "service-name";
|
||||
case faAction: return "href"; // the only special thing here: Action is represented by an xlink:href attribute
|
||||
case faEnctype: return "enctype";
|
||||
case faMethod: return "method";
|
||||
case faTargetFrame: return "target-frame";
|
||||
case faAllowDeletes: return "allow-deletes";
|
||||
case faAllowInserts: return "allow-inserts";
|
||||
case faAllowUpdates: return "allow-updates";
|
||||
|
@ -99,7 +97,6 @@ namespace xmloff
|
|||
case faCommandType: return "command-type";
|
||||
case faEscapeProcessing: return "escape-processing";
|
||||
case faDatasource: return "datasource";
|
||||
case faConnectionResource: return "connection-resource";
|
||||
case faDetailFiels: return "detail-fields";
|
||||
case faFilter: return "filter";
|
||||
case faIgnoreResult: return "ignore-result";
|
||||
|
@ -118,9 +115,6 @@ namespace xmloff
|
|||
if (faAction == _eAttrib)
|
||||
return XML_NAMESPACE_XLINK;
|
||||
|
||||
if (faTargetFrame == _eAttrib)
|
||||
return XML_NAMESPACE_OFFICE;
|
||||
|
||||
return XML_NAMESPACE_FORM;
|
||||
}
|
||||
|
||||
|
|
|
@ -141,11 +141,9 @@ namespace xmloff
|
|||
enum FormAttributes
|
||||
{
|
||||
faName,
|
||||
faServiceName,
|
||||
faAction,
|
||||
faEnctype,
|
||||
faMethod,
|
||||
faTargetFrame,
|
||||
faAllowDeletes,
|
||||
faAllowInserts,
|
||||
faAllowUpdates,
|
||||
|
@ -154,7 +152,6 @@ namespace xmloff
|
|||
faCommandType,
|
||||
faEscapeProcessing,
|
||||
faDatasource,
|
||||
faConnectionResource,
|
||||
faDetailFiels,
|
||||
faFilter,
|
||||
faIgnoreResult,
|
||||
|
|
|
@ -244,9 +244,7 @@ enum SvXMLStyleAttrTokens
|
|||
XML_TOK_STYLE_ATTR_TRUNCATE_ON_OVERFLOW,
|
||||
XML_TOK_STYLE_ATTR_VOLATILE,
|
||||
XML_TOK_STYLE_ATTR_TRANSL_FORMAT,
|
||||
XML_TOK_STYLE_ATTR_TRANSL_RFC_LANGUAGE_TAG,
|
||||
XML_TOK_STYLE_ATTR_TRANSL_LANGUAGE,
|
||||
XML_TOK_STYLE_ATTR_TRANSL_SCRIPT,
|
||||
XML_TOK_STYLE_ATTR_TRANSL_COUNTRY,
|
||||
XML_TOK_STYLE_ATTR_TRANSL_STYLE
|
||||
};
|
||||
|
@ -1452,15 +1450,9 @@ SvXMLNumFormatContext::SvXMLNumFormatContext( SvXMLImport& rImport,
|
|||
case XML_TOK_STYLE_ATTR_TRANSL_FORMAT:
|
||||
aNatNumAttr.Format = sValue;
|
||||
break;
|
||||
case XML_TOK_STYLE_ATTR_TRANSL_RFC_LANGUAGE_TAG:
|
||||
sNatNumAttrRfcLanguageTag = sValue;
|
||||
break;
|
||||
case XML_TOK_STYLE_ATTR_TRANSL_LANGUAGE:
|
||||
aNatNumAttr.Locale.Language = sValue;
|
||||
break;
|
||||
case XML_TOK_STYLE_ATTR_TRANSL_SCRIPT:
|
||||
sNatNumAttrScript = sValue;
|
||||
break;
|
||||
case XML_TOK_STYLE_ATTR_TRANSL_COUNTRY:
|
||||
aNatNumAttr.Locale.Country = sValue;
|
||||
break;
|
||||
|
|
|
@ -731,11 +731,8 @@ bool XMLTextFieldExport::IsStringField(
|
|||
|
||||
case FIELD_ID_SCRIPT:
|
||||
case FIELD_ID_ANNOTATION:
|
||||
case FIELD_ID_DATABASE_NEXT:
|
||||
case FIELD_ID_DATABASE_NEXT:
|
||||
case FIELD_ID_DATABASE_SELECT:
|
||||
case FIELD_ID_VARIABLE_DECL:
|
||||
case FIELD_ID_USER_DECL:
|
||||
case FIELD_ID_SEQUENCE_DECL:
|
||||
case FIELD_ID_PLACEHOLDER:
|
||||
case FIELD_ID_UNKNOWN:
|
||||
case FIELD_ID_DRAW_HEADER:
|
||||
|
|
|
@ -1825,9 +1825,6 @@ XMLParaContext::XMLParaContext(
|
|||
case XML_TOK_TEXT_P_STYLE_NAME:
|
||||
sStyleName = rValue;
|
||||
break;
|
||||
case XML_TOK_TEXT_P_CLASS_NAMES:
|
||||
sClassNames = rValue;
|
||||
break;
|
||||
case XML_TOK_TEXT_P_COND_STYLE_NAME:
|
||||
aCondStyleName = rValue;
|
||||
break;
|
||||
|
|
|
@ -52,11 +52,6 @@ enum XMLElemTransformerAction
|
|||
// token of local name
|
||||
// - param3: attr value (low)
|
||||
// attr action map (high)
|
||||
XML_ETACTION_RENAME_ELEM_COND, // rename element if child of another:
|
||||
// - param1: namespace +
|
||||
// token of new local name
|
||||
// - param2: namespace +
|
||||
// token of parent element
|
||||
XML_ETACTION_RENAME_ELEM_PROC_ATTRS_COND,// rename element and proc attr
|
||||
// if child of another:
|
||||
// - param1: elem namespace +
|
||||
|
|
|
@ -44,7 +44,6 @@ enum XMLPropOASISTransformerAction
|
|||
XML_OPTACTION_IMAGE_OPACITY,
|
||||
XML_OPTACTION_KEEP_TOGETHER,
|
||||
XML_OPTACTION_CONTROL_TEXT_ALIGN,
|
||||
XML_OPTACTION_DRAW_WRITING_MODE,
|
||||
XML_ATACTION_CAPTION_ESCAPE_OASIS,
|
||||
XML_ATACTION_DECODE_PROTECT
|
||||
};
|
||||
|
|
|
@ -430,17 +430,6 @@ void XMLPropertiesTContext_Impl::StartElement(
|
|||
}
|
||||
break;
|
||||
|
||||
case XML_OPTACTION_DRAW_WRITING_MODE:
|
||||
if( IsXMLToken( m_aStyleFamily, XML_GRAPHICS ) )
|
||||
{
|
||||
pAttrList->AddAttribute(
|
||||
GetTransformer().GetNamespaceMap().GetQNameByKey(
|
||||
XML_NAMESPACE_DRAW,
|
||||
GetXMLToken( XML_WRITING_MODE ) ), rAttrValue );
|
||||
}
|
||||
pAttrList->AddAttribute( rAttrName, rAttrValue );
|
||||
break;
|
||||
|
||||
case XML_ATACTION_CAPTION_ESCAPE_OASIS:
|
||||
{
|
||||
OUString aAttrValue( rAttrValue );
|
||||
|
|
|
@ -123,17 +123,6 @@ XMLTransformerContext *XMLTransformerBase::CreateContext( sal_uInt16 nPrefix,
|
|||
(*aIter).second.GetQNameTokenFromParam2(),
|
||||
static_cast< XMLTokenEnum >(
|
||||
(*aIter).second.m_nParam3 & 0xffff ) );
|
||||
case XML_ETACTION_RENAME_ELEM_COND:
|
||||
{
|
||||
const XMLTransformerContext *pCurrent = GetCurrentContext();
|
||||
if( pCurrent->HasQName(
|
||||
(*aIter).second.GetQNamePrefixFromParam2(),
|
||||
(*aIter).second.GetQNameTokenFromParam2() ) )
|
||||
return new XMLRenameElemTransformerContext( *this, rQName,
|
||||
(*aIter).second.GetQNamePrefixFromParam1(),
|
||||
(*aIter).second.GetQNameTokenFromParam1() );
|
||||
}
|
||||
break;
|
||||
case XML_ETACTION_RENAME_ELEM_PROC_ATTRS_COND:
|
||||
{
|
||||
const XMLTransformerContext *pCurrent = GetCurrentContext();
|
||||
|
|
Loading…
Reference in a new issue