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 .
20 #ifndef INCLUDED_SVTOOLS_RTFTOKEN_H
21 #define INCLUDED_SVTOOLS_RTFTOKEN_H
23 #include <rtl/ustring.hxx>
29 // search the TokenID for the token
30 int GetRTFToken( const OUString
& rSearch
);
32 enum RTF_TOKEN_RANGES
{
37 RTF_TABSTOPDEF
= 0x0500,
40 RTF_SPECCHAR
= 0x0800,
42 RTF_SHADINGDEF
= 0x0A00,
44 RTF_DRAWOBJECTS
= 0x0C00,
46 RTF_NUMBULLETS
= 0x0E00,
48 // !!! can be mixed in using the "or" operator (border/background) !!!!
49 RTF_TABLEDEF
= 0x1000,
51 // !!! can be mixed in using the "or" operator (border/tab) !!!!
57 RTF_TEXTTOKEN
= RTF_NOGROUP
,
246 RTF_FFEXITMCR
, // Form Fields
272 RTF_DEFTAB
= RTF_DOCFMT
,
382 RTF_TRUNCATEFONTHEIGHT
,
440 RTF_SECTD
= RTF_SECTFMT
,
525 // Swg header/footer tokens
526 RTF_HEADER_YB
= (RTF_SECTFMT
|RTF_SWGDEFS
),
539 RTF_PARD
= RTF_PARFMT
,
622 RTF_TX
= RTF_TABSTOPDEF
,
634 // Swg TabStop tokens
635 RTF_TLSWG
= (RTF_TABSTOPDEF
|RTF_SWGDEFS
),
639 RTF_BRDRT
= RTF_BRDRDEF
,
661 RTF_BRDBOX
= (RTF_BRDRDEF
|RTF_SWGDEFS
),
669 RTF_PLAIN
= RTF_CHRFMT
,
767 // association control words
799 RTF_SWG_ESCPROP
= (RTF_CHRFMT
|RTF_SWGDEFS
),
808 RTF_CHDATE
= RTF_SPECCHAR
,
833 RTF_NONBREAKINGSPACE
,
835 RTF_NONBREAKINGHYPHEN
,
852 RTF_ABSW
= RTF_APOCTL
,
888 RTF_FLYPRINT
= (RTF_APOCTL
|RTF_SWGDEFS
),
907 RTF_SHADING
= RTF_SHADINGDEF
,
925 RTF_TROWD
= RTF_TABLEDEF
,
976 RTF_CLBRDRT
= (RTF_BRDRDEF
|RTF_TABLEDEF
),
981 RTF_CLCFPAT
= (RTF_SHADINGDEF
|RTF_TABLEDEF
),
1002 RTF_DO
= RTF_DRAWOBJECTS
,
1115 RTF_OBJALIAS
= RTF_OBJECTS
,
1153 RTF_PN
= RTF_NUMBULLETS
,
1197 RTF_LISTOVERRIDETABLE
,
1204 RTF_LISTOVERRIDECOUNT
,
1210 RTF_LISTOVERRIDESTART
,
1214 RTF_LISTOVERRIDEFORMAT
,
1239 RTF_GRF_ALIGNV
= RTF_SWGDEFS
,
1258 RTF_SHP
, RTF_SN
, RTF_SV
, RTF_SP
1268 #endif // INCLUDED_SVTOOLS_RTFTOKEN_H
1270 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */