diff options
Diffstat (limited to 'writerfilter/source/rtftok/rtfcharsets.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfcharsets.cxx | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfcharsets.cxx b/writerfilter/source/rtftok/rtfcharsets.cxx new file mode 100644 index 000000000000..96f6feb9237e --- /dev/null +++ b/writerfilter/source/rtftok/rtfcharsets.cxx @@ -0,0 +1,75 @@ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Initial Developer of the Original Code is + * Miklos Vajna <vmiklos@frugalware.org> + * Portions created by the Initial Developer are Copyright (C) 2011 the + * Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include <rtftypes.hxx> +#include <sal/macros.h> + +namespace writerfilter { +namespace rtftok { + +// See RTF spec v1.9.1, page 19 +RTFEncoding aRTFEncodings[] = { + // charset codepage Windows / Mac name + {0, 1252}, // ANSI + {1, 0}, // Default + {2, 42}, // Symbol + {77, 10000}, // Mac Roman + {78, 10001}, // Mac Shift Jis + {79, 10003}, // Mac Hangul + {80, 10008}, // Mac GB2312 + {81, 10002}, // Mac Big5 + {83, 10005}, // Mac Herbrew + {84, 10004}, // Mac Arabic + {85, 10006}, // Mac Greek + {86, 10081}, // Mac Turkish + {87, 10021}, // Mac Thai + {88, 10029}, // Mac East Europe + {89, 10007}, // Mac Russian + {128, 932}, // Shift JIS + {129, 949}, // Hangul + {130, 1361}, // Johab + {134, 936}, // GB2312 + {136, 950}, // Big5 + {161, 1253}, // Greek + {162, 1254}, // Turkish + {163, 1258}, // Viatnamese + {177, 1255}, // Herbrew + {178, 1256}, // Arabic + {186, 1257}, // Baltic + {204, 1251}, // Russian + {222, 874}, // Thai + {238, 1250}, // Eastern European + {254, 437}, // PC 437 + {255, 850}, // OEM +}; + +int nRTFEncodings = SAL_N_ELEMENTS(aRTFEncodings); + +} // namespace rtftok +} // namespace writerfilter + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |