1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 #include <rtl/ustring.hxx>
28 // search the TokenID for the token
29 int GetRTFToken( std::u16string_view rSearch
);
31 enum RTF_TOKEN_RANGES
{
36 RTF_TABSTOPDEF
= 0x0500,
39 RTF_SPECCHAR
= 0x0800,
41 RTF_SHADINGDEF
= 0x0A00,
43 RTF_DRAWOBJECTS
= 0x0C00,
45 RTF_NUMBULLETS
= 0x0E00,
47 // !!! can be mixed in using the "or" operator (border/background) !!!!
48 RTF_TABLEDEF
= 0x1000,
50 // !!! can be mixed in using the "or" operator (border/tab) !!!!
56 RTF_TEXTTOKEN
= RTF_NOGROUP
,
245 RTF_FFEXITMCR
, // Form Fields
271 RTF_DEFTAB
= RTF_DOCFMT
,
381 RTF_TRUNCATEFONTHEIGHT
,
439 RTF_SECTD
= RTF_SECTFMT
,
524 // Swg header/footer tokens
525 RTF_HEADER_YB
= (RTF_SECTFMT
|RTF_SWGDEFS
),
538 RTF_PARD
= RTF_PARFMT
,
621 RTF_TX
= RTF_TABSTOPDEF
,
633 // Swg TabStop tokens
634 RTF_TLSWG
= (RTF_TABSTOPDEF
|RTF_SWGDEFS
),
638 RTF_BRDRT
= RTF_BRDRDEF
,
661 RTF_PLAIN
= RTF_CHRFMT
,
759 // association control words
791 RTF_SWG_ESCPROP
= (RTF_CHRFMT
|RTF_SWGDEFS
),
800 RTF_CHDATE
= RTF_SPECCHAR
,
825 RTF_NONBREAKINGSPACE
,
827 RTF_NONBREAKINGHYPHEN
,
844 RTF_ABSW
= RTF_APOCTL
,
880 RTF_FLYPRINT
= (RTF_APOCTL
|RTF_SWGDEFS
),
899 RTF_SHADING
= RTF_SHADINGDEF
,
917 RTF_TROWD
= RTF_TABLEDEF
,
968 RTF_CLBRDRT
= (RTF_BRDRDEF
|RTF_TABLEDEF
),
973 RTF_CLCFPAT
= (RTF_SHADINGDEF
|RTF_TABLEDEF
),
994 RTF_DO
= RTF_DRAWOBJECTS
,
1107 RTF_OBJALIAS
= RTF_OBJECTS
,
1145 RTF_PN
= RTF_NUMBULLETS
,
1189 RTF_LISTOVERRIDETABLE
,
1196 RTF_LISTOVERRIDECOUNT
,
1202 RTF_LISTOVERRIDESTART
,
1206 RTF_LISTOVERRIDEFORMAT
,
1231 RTF_GRF_ALIGNV
= RTF_SWGDEFS
,
1250 RTF_SHP
, RTF_SN
, RTF_SV
, RTF_SP
1260 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */