tdf#161878 Ignore nested SYMBOL field inside IF field
[LibreOffice.git] / include / xmloff / families.hxx
blob79a0e558e9d4326b989ccc0fa3d5dc2cec699ac7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_XMLOFF_FAMILIES_HXX
20 #define INCLUDED_XMLOFF_FAMILIES_HXX
22 #include <rtl/ustring.hxx>
24 /** These defines determine the unique ids for XML style-families
25 used in the SvXMLAutoStylePoolP.
28 inline constexpr OUString XML_STYLE_FAMILY_PAGE_MASTER_NAME = u"page-layout"_ustr;
29 inline constexpr OUString XML_STYLE_FAMILY_PAGE_MASTER_PREFIX = u"pm"_ustr;
30 inline constexpr OUString XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME = u"table"_ustr;
31 inline constexpr OUString XML_STYLE_FAMILY_TABLE_TABLE_STYLES_PREFIX = u"ta"_ustr;
32 inline constexpr OUString XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME = u"table-column"_ustr;
33 inline constexpr OUString XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_PREFIX = u"co"_ustr;
34 inline constexpr OUString XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME = u"table-row"_ustr;
35 inline constexpr OUString XML_STYLE_FAMILY_TABLE_ROW_STYLES_PREFIX = u"ro"_ustr;
36 inline constexpr OUString XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME = u"table-cell"_ustr;
37 inline constexpr OUString XML_STYLE_FAMILY_TABLE_CELL_STYLES_PREFIX = u"ce"_ustr;
38 inline constexpr OUString XML_STYLE_FAMILY_SD_GRAPHICS_NAME = u"graphic"_ustr;
39 inline constexpr OUString XML_STYLE_FAMILY_SD_GRAPHICS_PREFIX = u"gr"_ustr;
40 inline constexpr OUString XML_STYLE_FAMILY_SD_PRESENTATION_NAME = u"presentation"_ustr;
41 inline constexpr OUString XML_STYLE_FAMILY_SD_PRESENTATION_PREFIX = u"pr"_ustr;
42 #define XML_STYLE_FAMILY_SD_POOL_NAME u"default"
43 inline constexpr OUString XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME = u"drawing-page"_ustr;
44 inline constexpr OUString XML_STYLE_FAMILY_SD_DRAWINGPAGE_PREFIX = u"dp"_ustr;
45 inline constexpr OUString XML_STYLE_FAMILY_SCH_CHART_NAME = u"chart"_ustr;
46 inline constexpr OUString XML_STYLE_FAMILY_SCH_CHART_PREFIX = u"ch"_ustr;
47 inline constexpr OUString XML_STYLE_FAMILY_CONTROL_PREFIX = u"ctrl"_ustr;
49 enum class XmlStyleFamily
51 // Misc (Pool)
52 // reserved: 0..99
53 DATA_STYLE = 0,
54 PAGE_MASTER = 1,
55 MASTER_PAGE = 2,
57 // Text
58 // reserved: 100..199
59 TEXT_PARAGRAPH = 100,
60 TEXT_TEXT = 101,
61 TEXT_LIST = 102,
62 TEXT_OUTLINE = 103,
63 TEXT_FOOTNOTECONFIG = 105,
64 TEXT_ENDNOTECONFIG = 106,
65 TEXT_SECTION = 107,
66 TEXT_FRAME = 108, // export only
67 TEXT_RUBY = 109,
68 TEXT_BIBLIOGRAPHYCONFIG = 110,
69 TEXT_LINENUMBERINGCONFIG = 111,
71 // Table
72 // reserved: 200..299
73 TABLE_TABLE = 200,
74 TABLE_COLUMN = 202,
75 TABLE_ROW = 203,
76 TABLE_CELL = 204,
77 TABLE_TEMPLATE_ID = 205,
79 // Impress/Draw
80 // reserved: 300..399
81 SD_GRAPHICS_ID = 300,
83 SD_PRESENTATION_ID = 301,
84 // families for derived from SvXMLStyleContext
85 SD_PAGEMASTERCONTEXT_ID = 302,
86 SD_PAGEMASTERSTYLECONTEXT_ID = 303,
87 SD_PRESENTATIONPAGELAYOUT_ID = 304,
88 // family for draw pool
89 SD_POOL_ID = 305,
90 // family for presentation drawpage properties
91 SD_DRAWINGPAGE_ID = 306,
93 SD_GRADIENT_ID = 307,
94 SD_HATCH_ID = 308,
95 SD_FILL_IMAGE_ID = 309,
96 SD_MARKER_ID = 310,
97 SD_STROKE_DASH_ID = 311,
99 // Chart
100 // reserved: 400..499
101 SCH_CHART_ID = 400,
103 // Math
104 // reserved: 500..599
107 // Forms/Controls
108 // reserved 600..649
109 CONTROL_ID = 600,
113 #endif // INCLUDED_XMLOFF_FAMILIES_HXX
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */