1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unowids.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_UNOWIDS_HXX
32 #define SC_UNOWIDS_HXX
34 #include <tools/solar.h>
35 #include "scitems.hxx"
38 // WIDs for uno property maps,
39 // never stored in files
41 #define SC_WID_UNO_START 1200
43 #define SC_WID_UNO_CELLSTYL ( SC_WID_UNO_START + 0 )
44 #define SC_WID_UNO_CHCOLHDR ( SC_WID_UNO_START + 1 )
45 #define SC_WID_UNO_CHROWHDR ( SC_WID_UNO_START + 2 )
46 #define SC_WID_UNO_CONDFMT ( SC_WID_UNO_START + 3 )
47 #define SC_WID_UNO_CONDLOC ( SC_WID_UNO_START + 4 )
48 #define SC_WID_UNO_CONDXML ( SC_WID_UNO_START + 5 )
49 #define SC_WID_UNO_TBLBORD ( SC_WID_UNO_START + 6 )
50 #define SC_WID_UNO_VALIDAT ( SC_WID_UNO_START + 7 )
51 #define SC_WID_UNO_VALILOC ( SC_WID_UNO_START + 8 )
52 #define SC_WID_UNO_VALIXML ( SC_WID_UNO_START + 9 )
53 #define SC_WID_UNO_POS ( SC_WID_UNO_START + 10 )
54 #define SC_WID_UNO_SIZE ( SC_WID_UNO_START + 11 )
55 #define SC_WID_UNO_FORMLOC ( SC_WID_UNO_START + 12 )
56 #define SC_WID_UNO_FORMRT ( SC_WID_UNO_START + 13 )
57 #define SC_WID_UNO_PAGESTL ( SC_WID_UNO_START + 14 )
58 #define SC_WID_UNO_CELLVIS ( SC_WID_UNO_START + 15 )
59 #define SC_WID_UNO_LINKDISPBIT ( SC_WID_UNO_START + 16 )
60 #define SC_WID_UNO_LINKDISPNAME ( SC_WID_UNO_START + 17 )
61 #define SC_WID_UNO_CELLWID ( SC_WID_UNO_START + 18 )
62 #define SC_WID_UNO_OWIDTH ( SC_WID_UNO_START + 19 )
63 #define SC_WID_UNO_NEWPAGE ( SC_WID_UNO_START + 20 )
64 #define SC_WID_UNO_MANPAGE ( SC_WID_UNO_START + 21 )
65 #define SC_WID_UNO_CELLHGT ( SC_WID_UNO_START + 22 )
66 #define SC_WID_UNO_CELLFILT ( SC_WID_UNO_START + 23 )
67 #define SC_WID_UNO_OHEIGHT ( SC_WID_UNO_START + 24 )
68 #define SC_WID_UNO_DISPNAME ( SC_WID_UNO_START + 25 )
69 #define SC_WID_UNO_HEADERSET ( SC_WID_UNO_START + 26 )
70 #define SC_WID_UNO_FOOTERSET ( SC_WID_UNO_START + 27 )
71 #define SC_WID_UNO_NUMRULES ( SC_WID_UNO_START + 28 )
72 #define SC_WID_UNO_ISACTIVE ( SC_WID_UNO_START + 29 )
73 #define SC_WID_UNO_BORDCOL ( SC_WID_UNO_START + 30 )
74 #define SC_WID_UNO_PROTECT ( SC_WID_UNO_START + 31 )
75 #define SC_WID_UNO_SHOWBORD ( SC_WID_UNO_START + 32 )
76 #define SC_WID_UNO_PRINTBORD ( SC_WID_UNO_START + 33 )
77 #define SC_WID_UNO_COPYBACK ( SC_WID_UNO_START + 34 )
78 #define SC_WID_UNO_COPYSTYL ( SC_WID_UNO_START + 35 )
79 #define SC_WID_UNO_COPYFORM ( SC_WID_UNO_START + 36 )
80 #define SC_WID_UNO_TABLAYOUT ( SC_WID_UNO_START + 37 )
81 #define SC_WID_UNO_AUTOPRINT ( SC_WID_UNO_START + 38 )
82 #define SC_WID_UNO_ABSNAME ( SC_WID_UNO_START + 39 )
83 #define SC_WID_UNO_END ( SC_WID_UNO_START + 39 )
86 inline BOOL
IsScUnoWid( USHORT nWid
)
88 return nWid
>= SC_WID_UNO_START
&& nWid
<= SC_WID_UNO_END
;
91 inline BOOL
IsScItemWid( USHORT nWid
)
93 return nWid
>= ATTR_STARTINDEX
&& nWid
<= ATTR_ENDINDEX
; // incl. page