mathmlimport.cxx (86e1cf34) | mathmlimport.cxx (8f2cf668) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 710 unchanged lines hidden (view full) --- 719 } 720 break; 721 case XML_TOK_FONTFAMILY: 722 sFontFamily = sValue; 723 break; 724 case XML_TOK_COLOR: 725 sColor = sValue; 726 break; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 710 unchanged lines hidden (view full) --- 719 } 720 break; 721 case XML_TOK_FONTFAMILY: 722 sFontFamily = sValue; 723 break; 724 case XML_TOK_COLOR: 725 sColor = sValue; 726 break; |
727 case XML_TOK_MATHCOLOR: 728 sColor = sValue; 729 break; |
|
727 default: 728 break; 729 } 730 } 731 732 if ((nOldIsBold!=nIsBold) || (nOldIsItalic!=nIsItalic) || 733 (nOldFontSize!=nFontSize) || (sOldFontFamily!=sFontFamily) 734 || sColor.getLength()) --- 226 unchanged lines hidden (view full) --- 961 } 962 break; 963 case XML_TOK_FONTFAMILY: 964 sFontFamily = sValue; 965 break; 966 case XML_TOK_COLOR: 967 sColor = sValue; 968 break; | 730 default: 731 break; 732 } 733 } 734 735 if ((nOldIsBold!=nIsBold) || (nOldIsItalic!=nIsItalic) || 736 (nOldFontSize!=nFontSize) || (sOldFontFamily!=sFontFamily) 737 || sColor.getLength()) --- 226 unchanged lines hidden (view full) --- 964 } 965 break; 966 case XML_TOK_FONTFAMILY: 967 sFontFamily = sValue; 968 break; 969 case XML_TOK_COLOR: 970 sColor = sValue; 971 break; |
972 case XML_TOK_MATHCOLOR: 973 sColor = sValue; 974 break; |
|
969 default: 970 break; 971 } 972 } 973 974 if ((nOldIsBold!=nIsBold) || (nOldIsItalic!=nIsItalic) || 975 (nOldFontSize!=nFontSize) || (sOldFontFamily!=sFontFamily) 976 || sColor.getLength()) --- 1111 unchanged lines hidden (view full) --- 2088 2089static __FAR_DATA SvXMLTokenMapEntry aPresLayoutAttrTokenMap[] = 2090{ 2091 { XML_NAMESPACE_MATH, XML_FONTWEIGHT, XML_TOK_FONTWEIGHT }, 2092 { XML_NAMESPACE_MATH, XML_FONTSTYLE, XML_TOK_FONTSTYLE }, 2093 { XML_NAMESPACE_MATH, XML_FONTSIZE, XML_TOK_FONTSIZE }, 2094 { XML_NAMESPACE_MATH, XML_FONTFAMILY, XML_TOK_FONTFAMILY }, 2095 { XML_NAMESPACE_MATH, XML_COLOR, XML_TOK_COLOR }, | 975 default: 976 break; 977 } 978 } 979 980 if ((nOldIsBold!=nIsBold) || (nOldIsItalic!=nIsItalic) || 981 (nOldFontSize!=nFontSize) || (sOldFontFamily!=sFontFamily) 982 || sColor.getLength()) --- 1111 unchanged lines hidden (view full) --- 2094 2095static __FAR_DATA SvXMLTokenMapEntry aPresLayoutAttrTokenMap[] = 2096{ 2097 { XML_NAMESPACE_MATH, XML_FONTWEIGHT, XML_TOK_FONTWEIGHT }, 2098 { XML_NAMESPACE_MATH, XML_FONTSTYLE, XML_TOK_FONTSTYLE }, 2099 { XML_NAMESPACE_MATH, XML_FONTSIZE, XML_TOK_FONTSIZE }, 2100 { XML_NAMESPACE_MATH, XML_FONTFAMILY, XML_TOK_FONTFAMILY }, 2101 { XML_NAMESPACE_MATH, XML_COLOR, XML_TOK_COLOR }, |
2102 { XML_NAMESPACE_MATH, XML_MATHCOLOR, XML_TOK_MATHCOLOR }, |
|
2096 XML_TOKEN_MAP_END 2097}; 2098 2099static __FAR_DATA SvXMLTokenMapEntry aFencedAttrTokenMap[] = 2100{ 2101 { XML_NAMESPACE_MATH, XML_OPEN, XML_TOK_OPEN }, 2102 { XML_NAMESPACE_MATH, XML_CLOSE, XML_TOK_CLOSE }, 2103 XML_TOKEN_MAP_END --- 41 unchanged lines hidden (view full) --- 2145 2146static __FAR_DATA SvXMLTokenMapEntry aColorTokenMap[] = 2147{ 2148 { XML_NAMESPACE_MATH, XML_BLACK, TBLACK}, 2149 { XML_NAMESPACE_MATH, XML_WHITE, TWHITE}, 2150 { XML_NAMESPACE_MATH, XML_RED, TRED}, 2151 { XML_NAMESPACE_MATH, XML_GREEN, TGREEN}, 2152 { XML_NAMESPACE_MATH, XML_BLUE, TBLUE}, | 2103 XML_TOKEN_MAP_END 2104}; 2105 2106static __FAR_DATA SvXMLTokenMapEntry aFencedAttrTokenMap[] = 2107{ 2108 { XML_NAMESPACE_MATH, XML_OPEN, XML_TOK_OPEN }, 2109 { XML_NAMESPACE_MATH, XML_CLOSE, XML_TOK_CLOSE }, 2110 XML_TOKEN_MAP_END --- 41 unchanged lines hidden (view full) --- 2152 2153static __FAR_DATA SvXMLTokenMapEntry aColorTokenMap[] = 2154{ 2155 { XML_NAMESPACE_MATH, XML_BLACK, TBLACK}, 2156 { XML_NAMESPACE_MATH, XML_WHITE, TWHITE}, 2157 { XML_NAMESPACE_MATH, XML_RED, TRED}, 2158 { XML_NAMESPACE_MATH, XML_GREEN, TGREEN}, 2159 { XML_NAMESPACE_MATH, XML_BLUE, TBLUE}, |
2153 { XML_NAMESPACE_MATH, XML_AQUA, TCYAN}, 2154 { XML_NAMESPACE_MATH, XML_FUCHSIA, TMAGENTA}, | 2160 { XML_NAMESPACE_MATH, XML_AQUA, TAQUA}, 2161 { XML_NAMESPACE_MATH, XML_FUCHSIA, TFUCHSIA}, |
2155 { XML_NAMESPACE_MATH, XML_YELLOW, TYELLOW}, | 2162 { XML_NAMESPACE_MATH, XML_YELLOW, TYELLOW}, |
2163 { XML_NAMESPACE_MATH, XML_NAVY, TNAVY}, 2164 { XML_NAMESPACE_MATH, XML_TEAL, TTEAL}, 2165 { XML_NAMESPACE_MATH, XML_MAROON, TMAROON}, 2166 { XML_NAMESPACE_MATH, XML_PURPLE, TPURPLE}, 2167 { XML_NAMESPACE_MATH, XML_OLIVE, TOLIVE}, 2168 { XML_NAMESPACE_MATH, XML_GRAY, TGRAY}, 2169 { XML_NAMESPACE_MATH, XML_SILVER, TSILVER}, 2170 { XML_NAMESPACE_MATH, XML_LIME, TLIME}, |
|
2156 XML_TOKEN_MAP_END 2157}; 2158 | 2171 XML_TOKEN_MAP_END 2172}; 2173 |
2159 | |
2160//////////////////////////////////////////////////////////// 2161 2162const SvXMLTokenMap& SmXMLImport::GetPresLayoutElemTokenMap() 2163{ 2164 if (!pPresLayoutElemTokenMap) 2165 pPresLayoutElemTokenMap = new SvXMLTokenMap(aPresLayoutElemTokenMap); 2166 return *pPresLayoutElemTokenMap; 2167} --- 1032 unchanged lines hidden --- | 2174//////////////////////////////////////////////////////////// 2175 2176const SvXMLTokenMap& SmXMLImport::GetPresLayoutElemTokenMap() 2177{ 2178 if (!pPresLayoutElemTokenMap) 2179 pPresLayoutElemTokenMap = new SvXMLTokenMap(aPresLayoutElemTokenMap); 2180 return *pPresLayoutElemTokenMap; 2181} --- 1032 unchanged lines hidden --- |