summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-12-08 12:20:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-08 18:59:23 +0100
commitc3f628e7905da6ff4586a0ee429af5769dd6f4eb (patch)
tree8635ea9a10785e62a29f58738da65567bcedfb48 /xmloff
parent7ab550746e231537ab7dfe3f28a1be44bfa4a157 (diff)
remove now unused XML_TOK_ constants
Change-Id: I73da015abc824194b88c53b87170c987d24080a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107411 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/SchXMLImport.hxx124
-rw-r--r--xmloff/inc/XMLLineNumberingImportContext.hxx18
-rw-r--r--xmloff/source/chart/SchXMLAxisContext.cxx9
-rw-r--r--xmloff/source/style/XMLFontStylesContext.cxx13
-rw-r--r--xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx19
-rw-r--r--xmloff/source/text/XMLFootnoteImportContext.cxx9
-rw-r--r--xmloff/source/text/XMLIndexSourceBaseContext.hxx40
-rw-r--r--xmloff/source/text/XMLSectionImportContext.cxx17
-rw-r--r--xmloff/source/text/txtfldi.cxx14
9 files changed, 0 insertions, 263 deletions
diff --git a/xmloff/inc/SchXMLImport.hxx b/xmloff/inc/SchXMLImport.hxx
index 33b0f50d5764..6b8047afe638 100644
--- a/xmloff/inc/SchXMLImport.hxx
+++ b/xmloff/inc/SchXMLImport.hxx
@@ -23,130 +23,6 @@
#include <xmloff/xmlimp.hxx>
#include <xmloff/xmlictxt.hxx>
-/*
- these enums are used for the
- SvXMLTokenMapEntries to distinguish
- the tokens in switch-directives
-*/
-
-enum SchXMLDocElemTokenMap
-{
- XML_TOK_DOC_AUTOSTYLES,
- XML_TOK_DOC_STYLES,
- XML_TOK_DOC_META,
- XML_TOK_DOC_BODY
-};
-
-enum SchXMLTableElemTokenMap
-{
- XML_TOK_TABLE_HEADER_COLS,
- XML_TOK_TABLE_COLUMNS,
- XML_TOK_TABLE_COLUMN,
- XML_TOK_TABLE_HEADER_ROWS,
- XML_TOK_TABLE_ROWS,
- XML_TOK_TABLE_ROW
-};
-
-enum SchXMLChartElemTokenMap
-{
- XML_TOK_CHART_PLOT_AREA,
- XML_TOK_CHART_TITLE,
- XML_TOK_CHART_SUBTITLE,
- XML_TOK_CHART_LEGEND,
- XML_TOK_CHART_TABLE
-};
-
-enum SchXMLPlotAreaElemTokenMap
-{
- XML_TOK_PA_COORDINATE_REGION_EXT,
- XML_TOK_PA_COORDINATE_REGION,
- XML_TOK_PA_AXIS,
- XML_TOK_PA_SERIES,
- XML_TOK_PA_WALL,
- XML_TOK_PA_FLOOR,
- XML_TOK_PA_LIGHT_SOURCE,
- XML_TOK_PA_STOCK_GAIN,
- XML_TOK_PA_STOCK_LOSS,
- XML_TOK_PA_STOCK_RANGE
-};
-
-enum SchXMLSeriesElemTokenMap
-{
- XML_TOK_SERIES_DATA_POINT,
- XML_TOK_SERIES_DATA_LABEL,
- XML_TOK_SERIES_DOMAIN,
- XML_TOK_SERIES_MEAN_VALUE_LINE,
- XML_TOK_SERIES_REGRESSION_CURVE,
- XML_TOK_SERIES_ERROR_INDICATOR,
- XML_TOK_SERIES_PROPERTY_MAPPING
-};
-
-enum SchXMLPropertyMappingAttrTokenMap
-{
- XML_TOK_PROPERTY_MAPPING_PROPERTY,
- XML_TOK_PROPERTY_MAPPING_RANGE
-};
-
-enum SchXMLChartAttrMap
-{
- XML_TOK_CHART_HREF,
- XML_TOK_CHART_CLASS,
- XML_TOK_CHART_WIDTH,
- XML_TOK_CHART_HEIGHT,
- XML_TOK_CHART_STYLE_NAME,
- XML_TOK_CHART_COL_MAPPING,
- XML_TOK_CHART_ROW_MAPPING,
- XML_TOK_CHART_DATA_PILOT_SOURCE,
-};
-
-enum SchXMLPlotAreaAttrTokenMap
-{
- XML_TOK_PA_X,
- XML_TOK_PA_Y,
- XML_TOK_PA_WIDTH,
- XML_TOK_PA_HEIGHT,
- XML_TOK_PA_STYLE_NAME,
- XML_TOK_PA_TRANSFORM,
- XML_TOK_PA_CHART_ADDRESS,
- XML_TOK_PA_DS_HAS_LABELS,
- XML_TOK_PA_VRP,
- XML_TOK_PA_VPN,
- XML_TOK_PA_VUP,
- XML_TOK_PA_PROJECTION,
- XML_TOK_PA_DISTANCE,
- XML_TOK_PA_FOCAL_LENGTH,
- XML_TOK_PA_SHADOW_SLANT,
- XML_TOK_PA_SHADE_MODE,
- XML_TOK_PA_AMBIENT_COLOR,
- XML_TOK_PA_LIGHTING_MODE
-};
-
-enum SchXMLCellAttrMap
-{
- XML_TOK_CELL_VAL_TYPE,
- XML_TOK_CELL_VALUE
-};
-
-enum SchXMLSeriesAttrMap
-{
- XML_TOK_SERIES_CELL_RANGE,
- XML_TOK_SERIES_LABEL_ADDRESS,
- XML_TOK_SERIES_LABEL_STRING,
- XML_TOK_SERIES_ATTACHED_AXIS,
- XML_TOK_SERIES_STYLE_NAME,
- XML_TOK_SERIES_CHART_CLASS,
- XML_TOK_SERIES_HIDE_LEGEND
-};
-
-enum SchXMLRegEquationAttrMap
-{
- XML_TOK_REGEQ_STYLE_NAME,
- XML_TOK_REGEQ_DISPLAY_EQUATION,
- XML_TOK_REGEQ_DISPLAY_R_SQUARE,
- XML_TOK_REGEQ_POS_X,
- XML_TOK_REGEQ_POS_Y
-};
-
class SchXMLImport final : public SvXMLImport
{
private:
diff --git a/xmloff/inc/XMLLineNumberingImportContext.hxx b/xmloff/inc/XMLLineNumberingImportContext.hxx
index fd0f4597f934..7f44441da4e4 100644
--- a/xmloff/inc/XMLLineNumberingImportContext.hxx
+++ b/xmloff/inc/XMLLineNumberingImportContext.hxx
@@ -29,24 +29,6 @@ namespace com::sun::star {
}
-enum LineNumberingToken
-{
- XML_TOK_LINENUMBERING_STYLE_NAME,
- XML_TOK_LINENUMBERING_NUMBER_LINES,
- XML_TOK_LINENUMBERING_COUNT_EMPTY_LINES,
- XML_TOK_LINENUMBERING_COUNT_IN_TEXT_BOXES,
- XML_TOK_LINENUMBERING_RESTART_NUMBERING,
- XML_TOK_LINENUMBERING_OFFSET,
- XML_TOK_LINENUMBERING_NUM_FORMAT,
- XML_TOK_LINENUMBERING_NUM_LETTER_SYNC,
- XML_TOK_LINENUMBERING_NUMBER_POSITION,
- XML_TOK_LINENUMBERING_INCREMENT
-// XML_TOK_LINENUMBERING_LINENUMBERING_CONFIGURATION,
-// XML_TOK_LINENUMBERING_INCREMENT,
-// XML_TOK_LINENUMBERING_LINENUMBERING_SEPARATOR,
-};
-
-
/** import <text:linenumbering-configuration> elements */
class XMLLineNumberingImportContext final : public SvXMLStyleContext
{
diff --git a/xmloff/source/chart/SchXMLAxisContext.cxx b/xmloff/source/chart/SchXMLAxisContext.cxx
index 4447c093c566..17ba48af5c9e 100644
--- a/xmloff/source/chart/SchXMLAxisContext.cxx
+++ b/xmloff/source/chart/SchXMLAxisContext.cxx
@@ -819,15 +819,6 @@ DateScaleContext::DateScaleContext(
namespace
{
-enum DateScaleAttributeTokens
-{
- XML_TOK_DATESCALE_BASE_TIME_UNIT,
- XML_TOK_DATESCALE_MAJOR_INTERVAL_VALUE,
- XML_TOK_DATESCALE_MAJOR_INTERVAL_UNIT,
- XML_TOK_DATESCALE_MINOR_INTERVAL_VALUE,
- XML_TOK_DATESCALE_MINOR_INTERVAL_UNIT
-};
-
sal_Int32 lcl_getTimeUnit( const OUString& rValue )
{
sal_Int32 nTimeUnit = css::chart::TimeUnit::DAY;
diff --git a/xmloff/source/style/XMLFontStylesContext.cxx b/xmloff/source/style/XMLFontStylesContext.cxx
index 6d58300989fd..56d87c02cad4 100644
--- a/xmloff/source/style/XMLFontStylesContext.cxx
+++ b/xmloff/source/style/XMLFontStylesContext.cxx
@@ -49,19 +49,6 @@ using namespace ::xmloff::token;
#define XML_STYLE_FAMILY_FONT XmlStyleFamily::PAGE_MASTER
-namespace {
-
-enum XMLFontStyleAttrTokens
-{
- XML_TOK_FONT_STYLE_ATTR_FAMILY,
- XML_TOK_FONT_STYLE_ATTR_FAMILY_GENERIC,
- XML_TOK_FONT_STYLE_ATTR_STYLENAME,
- XML_TOK_FONT_STYLE_ATTR_PITCH,
- XML_TOK_FONT_STYLE_ATTR_CHARSET,
-};
-
-}
-
XMLFontStyleContextFontFace::XMLFontStyleContextFontFace( SvXMLImport& rImport,
XMLFontStylesContext& rStyles ) :
SvXMLStyleContext( rImport, XML_STYLE_FAMILY_FONT ),
diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
index eb2c4480656c..756c85377bab 100644
--- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
+++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
@@ -150,25 +150,6 @@ XMLFootnoteConfigurationImportContext::~XMLFootnoteConfigurationImportContext()
{
}
-namespace {
-
-enum XMLFtnConfigToken
-{
- XML_TOK_FTNCONFIG_CITATION_STYLENAME,
- XML_TOK_FTNCONFIG_ANCHOR_STYLENAME,
- XML_TOK_FTNCONFIG_DEFAULT_STYLENAME,
- XML_TOK_FTNCONFIG_PAGE_STYLENAME,
- XML_TOK_FTNCONFIG_OFFSET,
- XML_TOK_FTNCONFIG_NUM_PREFIX,
- XML_TOK_FTNCONFIG_NUM_SUFFIX,
- XML_TOK_FTNCONFIG_NUM_FORMAT,
- XML_TOK_FTNCONFIG_NUM_SYNC,
- XML_TOK_FTNCONFIG_START_AT,
- XML_TOK_FTNCONFIG_POSITION
-};
-
-}
-
SvXMLEnumMapEntry<sal_Int16> const aFootnoteNumberingMap[] =
{
{ XML_PAGE, FootnoteNumbering::PER_PAGE },
diff --git a/xmloff/source/text/XMLFootnoteImportContext.cxx b/xmloff/source/text/XMLFootnoteImportContext.cxx
index dd660ab75fae..fea2e95c4b2a 100644
--- a/xmloff/source/text/XMLFootnoteImportContext.cxx
+++ b/xmloff/source/text/XMLFootnoteImportContext.cxx
@@ -44,15 +44,6 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::xml::sax;
using namespace ::xmloff::token;
-namespace {
-
-enum XMLFootnoteChildToken {
- XML_TOK_FTN_NOTE_CITATION,
- XML_TOK_FTN_NOTE_BODY
-};
-
-}
-
XMLFootnoteImportContext::XMLFootnoteImportContext(
SvXMLImport& rImport,
XMLTextImportHelper& rHlp )
diff --git a/xmloff/source/text/XMLIndexSourceBaseContext.hxx b/xmloff/source/text/XMLIndexSourceBaseContext.hxx
index b312bff1a712..69568bf55390 100644
--- a/xmloff/source/text/XMLIndexSourceBaseContext.hxx
+++ b/xmloff/source/text/XMLIndexSourceBaseContext.hxx
@@ -30,46 +30,6 @@ namespace com::sun::star {
namespace beans { class XPropertySet; }
}
-enum IndexSourceParamEnum
-{
- XML_TOK_INDEXSOURCE_OUTLINE_LEVEL,
- XML_TOK_INDEXSOURCE_USE_INDEX_MARKS,
- XML_TOK_INDEXSOURCE_INDEX_SCOPE,
- XML_TOK_INDEXSOURCE_RELATIVE_TABS,
- XML_TOK_INDEXSOURCE_USE_OTHER_OBJECTS,
- XML_TOK_INDEXSOURCE_USE_SHEET,
- XML_TOK_INDEXSOURCE_USE_CHART,
- XML_TOK_INDEXSOURCE_USE_DRAW,
- XML_TOK_INDEXSOURCE_USE_IMAGE,
- XML_TOK_INDEXSOURCE_USE_MATH,
- XML_TOK_INDEXSOURCE_MAIN_ENTRY_STYLE,
- XML_TOK_INDEXSOURCE_IGNORE_CASE,
- XML_TOK_INDEXSOURCE_SEPARATORS,
- XML_TOK_INDEXSOURCE_COMBINE_ENTRIES,
- XML_TOK_INDEXSOURCE_COMBINE_WITH_DASH,
- XML_TOK_INDEXSOURCE_KEYS_AS_ENTRIES,
- XML_TOK_INDEXSOURCE_COMBINE_WITH_PP,
- XML_TOK_INDEXSOURCE_CAPITALIZE,
- XML_TOK_INDEXSOURCE_USE_OBJECTS,
- XML_TOK_INDEXSOURCE_USE_GRAPHICS,
- XML_TOK_INDEXSOURCE_USE_TABLES,
- XML_TOK_INDEXSOURCE_USE_FRAMES,
- XML_TOK_INDEXSOURCE_COPY_OUTLINE_LEVELS,
- XML_TOK_INDEXSOURCE_USE_CAPTION,
- XML_TOK_INDEXSOURCE_SEQUENCE_NAME,
- XML_TOK_INDEXSOURCE_SEQUENCE_FORMAT,
- XML_TOK_INDEXSOURCE_COMMA_SEPARATED,
- XML_TOK_INDEXSOURCE_USE_INDEX_SOURCE_STYLES,
- XML_TOK_INDEXSOURCE_SORT_ALGORITHM,
- XML_TOK_INDEXSOURCE_RFC_LANGUAGE_TAG,
- XML_TOK_INDEXSOURCE_LANGUAGE,
- XML_TOK_INDEXSOURCE_SCRIPT,
- XML_TOK_INDEXSOURCE_COUNTRY,
- XML_TOK_INDEXSOURCE_USER_INDEX_NAME,
- XML_TOK_INDEXSOURCE_USE_OUTLINE_LEVEL
-};
-
-
/**
* Superclass for index source elements
*/
diff --git a/xmloff/source/text/XMLSectionImportContext.cxx b/xmloff/source/text/XMLSectionImportContext.cxx
index 5959f50e4919..701fc76af839 100644
--- a/xmloff/source/text/XMLSectionImportContext.cxx
+++ b/xmloff/source/text/XMLSectionImportContext.cxx
@@ -50,23 +50,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::text;
using namespace ::xmloff::token;
-namespace {
-
-enum XMLSectionToken
-{
- XML_TOK_SECTION_XMLID,
- XML_TOK_SECTION_STYLE_NAME,
- XML_TOK_SECTION_NAME,
- XML_TOK_SECTION_CONDITION,
- XML_TOK_SECTION_DISPLAY,
- XML_TOK_SECTION_PROTECT,
- XML_TOK_SECTION_PROTECTION_KEY,
- XML_TOK_SECTION_IS_HIDDEN
-};
-
-}
-
-
// section import: This one is fairly tricky due to a variety of
// limits of the core or the API. The main problem is that if you
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index 6db4ae090453..53794de8a9f7 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -2599,20 +2599,6 @@ void XMLReferenceFieldImportContext::PrepareField(
// field declarations container
-namespace {
-
-enum DdeFieldDeclAttrs
-{
- XML_TOK_DDEFIELD_NAME,
- XML_TOK_DDEFIELD_APPLICATION,
- XML_TOK_DDEFIELD_TOPIC,
- XML_TOK_DDEFIELD_ITEM,
- XML_TOK_DDEFIELD_UPDATE
-};
-
-}
-
-
XMLDdeFieldDeclsImportContext::XMLDdeFieldDeclsImportContext(SvXMLImport& rImport) :
SvXMLImportContext(rImport)
{