1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 * This file is part of the LibreOffice project. 4 * 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/. 8 * 9 * This file incorporates work covered by the following license notice: 10 * 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 . 18 */ 19 #ifndef INCLUDED_XMLOFF_FAMILIES_HXX 20 #define INCLUDED_XMLOFF_FAMILIES_HXX 21 22 /** These defines determine the unique ids for XML style-families 23 used in the SvXMLAutoStylePoolP. 24 */ 25 26 #define XML_STYLE_FAMILY_PAGE_MASTER_NAME "page-layout" 27 #define XML_STYLE_FAMILY_PAGE_MASTER_PREFIX "pm" 28 #define XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME "table" 29 #define XML_STYLE_FAMILY_TABLE_TABLE_STYLES_PREFIX "ta" 30 #define XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME "table-column" 31 #define XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_PREFIX "co" 32 #define XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME "table-row" 33 #define XML_STYLE_FAMILY_TABLE_ROW_STYLES_PREFIX "ro" 34 #define XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME "table-cell" 35 #define XML_STYLE_FAMILY_TABLE_CELL_STYLES_PREFIX "ce" 36 #define XML_STYLE_FAMILY_SD_GRAPHICS_NAME u"graphic" 37 #define XML_STYLE_FAMILY_SD_GRAPHICS_PREFIX "gr" 38 #define XML_STYLE_FAMILY_SD_PRESENTATION_NAME u"presentation" 39 #define XML_STYLE_FAMILY_SD_PRESENTATION_PREFIX "pr" 40 #define XML_STYLE_FAMILY_SD_POOL_NAME u"default" 41 #define XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME u"drawing-page" 42 #define XML_STYLE_FAMILY_SD_DRAWINGPAGE_PREFIX "dp" 43 #define XML_STYLE_FAMILY_SCH_CHART_NAME u"chart" 44 #define XML_STYLE_FAMILY_SCH_CHART_PREFIX "ch" 45 #define XML_STYLE_FAMILY_CONTROL_PREFIX "ctrl" 46 47 enum class XmlStyleFamily 48 { 49 // Misc (Pool) 50 // reserved: 0..99 51 DATA_STYLE = 0, 52 PAGE_MASTER = 1, 53 MASTER_PAGE = 2, 54 55 // Text 56 // reserved: 100..199 57 TEXT_PARAGRAPH = 100, 58 TEXT_TEXT = 101, 59 TEXT_LIST = 102, 60 TEXT_OUTLINE = 103, 61 TEXT_FOOTNOTECONFIG = 105, 62 TEXT_ENDNOTECONFIG = 106, 63 TEXT_SECTION = 107, 64 TEXT_FRAME = 108, // export only 65 TEXT_RUBY = 109, 66 TEXT_BIBLIOGRAPHYCONFIG = 110, 67 TEXT_LINENUMBERINGCONFIG = 111, 68 69 // Table 70 // reserved: 200..299 71 TABLE_TABLE = 200, 72 TABLE_COLUMN = 202, 73 TABLE_ROW = 203, 74 TABLE_CELL = 204, 75 TABLE_TEMPLATE_ID = 205, 76 77 // Impress/Draw 78 // reserved: 300..399 79 SD_GRAPHICS_ID = 300, 80 81 SD_PRESENTATION_ID = 301, 82 // families for derived from SvXMLStyleContext 83 SD_PAGEMASTERCONTEXT_ID = 302, 84 SD_PAGEMASTERSTYLECONTEXT_ID = 306, 85 SD_PRESENTATIONPAGELAYOUT_ID = 303, 86 // family for draw pool 87 SD_POOL_ID = 304, 88 // family for presentation drawpage properties 89 SD_DRAWINGPAGE_ID = 305, 90 91 SD_GRADIENT_ID = 306, 92 SD_HATCH_ID = 307, 93 SD_FILL_IMAGE_ID = 308, 94 SD_MARKER_ID = 309, 95 SD_STROKE_DASH_ID = 310, 96 97 // Chart 98 // reserved: 400..499 99 SCH_CHART_ID = 400, 100 101 // Math 102 // reserved: 500..599 103 104 105 // Forms/Controls 106 // reserved 600..649 107 CONTROL_ID = 600, 108 109 }; 110 111 #endif // INCLUDED_XMLOFF_FAMILIES_HXX 112 113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 114