xref: /trunk/main/sc/inc/unowids.hxx (revision 38d50f7b)
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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_UNOWIDS_HXX
25 #define SC_UNOWIDS_HXX
26 
27 #include <tools/solar.h>
28 #include "scitems.hxx"
29 
30 
31 //	WIDs for uno property maps,
32 //	never stored in files
33 
34 #define SC_WID_UNO_START	1200
35 
36 #define SC_WID_UNO_CELLSTYL			( SC_WID_UNO_START + 0 )
37 #define SC_WID_UNO_CHCOLHDR			( SC_WID_UNO_START + 1 )
38 #define SC_WID_UNO_CHROWHDR			( SC_WID_UNO_START + 2 )
39 #define SC_WID_UNO_CONDFMT			( SC_WID_UNO_START + 3 )
40 #define SC_WID_UNO_CONDLOC			( SC_WID_UNO_START + 4 )
41 #define SC_WID_UNO_CONDXML			( SC_WID_UNO_START + 5 )
42 #define SC_WID_UNO_TBLBORD			( SC_WID_UNO_START + 6 )
43 #define SC_WID_UNO_VALIDAT			( SC_WID_UNO_START + 7 )
44 #define SC_WID_UNO_VALILOC			( SC_WID_UNO_START + 8 )
45 #define SC_WID_UNO_VALIXML			( SC_WID_UNO_START + 9 )
46 #define SC_WID_UNO_POS				( SC_WID_UNO_START + 10 )
47 #define SC_WID_UNO_SIZE				( SC_WID_UNO_START + 11 )
48 #define SC_WID_UNO_FORMLOC			( SC_WID_UNO_START + 12 )
49 #define SC_WID_UNO_FORMRT			( SC_WID_UNO_START + 13 )
50 #define SC_WID_UNO_PAGESTL			( SC_WID_UNO_START + 14 )
51 #define SC_WID_UNO_CELLVIS			( SC_WID_UNO_START + 15 )
52 #define SC_WID_UNO_LINKDISPBIT		( SC_WID_UNO_START + 16 )
53 #define SC_WID_UNO_LINKDISPNAME		( SC_WID_UNO_START + 17 )
54 #define SC_WID_UNO_CELLWID			( SC_WID_UNO_START + 18 )
55 #define SC_WID_UNO_OWIDTH			( SC_WID_UNO_START + 19 )
56 #define SC_WID_UNO_NEWPAGE			( SC_WID_UNO_START + 20 )
57 #define SC_WID_UNO_MANPAGE			( SC_WID_UNO_START + 21 )
58 #define SC_WID_UNO_CELLHGT			( SC_WID_UNO_START + 22 )
59 #define SC_WID_UNO_CELLFILT			( SC_WID_UNO_START + 23 )
60 #define SC_WID_UNO_OHEIGHT			( SC_WID_UNO_START + 24 )
61 #define SC_WID_UNO_DISPNAME			( SC_WID_UNO_START + 25 )
62 #define SC_WID_UNO_HEADERSET		( SC_WID_UNO_START + 26 )
63 #define SC_WID_UNO_FOOTERSET		( SC_WID_UNO_START + 27 )
64 #define SC_WID_UNO_NUMRULES			( SC_WID_UNO_START + 28 )
65 #define SC_WID_UNO_ISACTIVE         ( SC_WID_UNO_START + 29 )
66 #define SC_WID_UNO_BORDCOL          ( SC_WID_UNO_START + 30 )
67 #define SC_WID_UNO_PROTECT          ( SC_WID_UNO_START + 31 )
68 #define SC_WID_UNO_SHOWBORD         ( SC_WID_UNO_START + 32 )
69 #define SC_WID_UNO_PRINTBORD        ( SC_WID_UNO_START + 33 )
70 #define SC_WID_UNO_COPYBACK         ( SC_WID_UNO_START + 34 )
71 #define SC_WID_UNO_COPYSTYL         ( SC_WID_UNO_START + 35 )
72 #define SC_WID_UNO_COPYFORM         ( SC_WID_UNO_START + 36 )
73 #define SC_WID_UNO_TABLAYOUT        ( SC_WID_UNO_START + 37 )
74 #define SC_WID_UNO_AUTOPRINT        ( SC_WID_UNO_START + 38 )
75 #define SC_WID_UNO_ABSNAME          ( SC_WID_UNO_START + 39 )
76 #define SC_WID_UNO_CODENAME         ( SC_WID_UNO_START + 40 )
77 #define SC_WID_UNO_TABCOLOR         ( SC_WID_UNO_START + 41 )
78 #define SC_WID_UNO_END              ( SC_WID_UNO_START + 41 )
79 
80 
IsScUnoWid(sal_uInt16 nWid)81 inline sal_Bool IsScUnoWid( sal_uInt16 nWid )
82 {
83 	return nWid >= SC_WID_UNO_START && nWid <= SC_WID_UNO_END;
84 }
85 
IsScItemWid(sal_uInt16 nWid)86 inline sal_Bool IsScItemWid( sal_uInt16 nWid )
87 {
88 	return nWid >= ATTR_STARTINDEX && nWid <= ATTR_ENDINDEX;	// incl. page
89 }
90 
91 #endif
92 
93