Coverage Report

Created: 2026-08-14 10:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/inc/unowids.hxx
Line
Count
Source
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
 * This file is part of the LibreOffice project.
4
 *
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/.
8
 *
9
 * This file incorporates work covered by the following license notice:
10
 *
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 .
18
 */
19
20
#pragma once
21
22
#include "scitems.hxx"
23
24
//  WIDs for uno property maps,
25
//  never stored in files
26
27
3.47M
#define SC_WID_UNO_START    1200
28
29
82.8k
#define SC_WID_UNO_CELLSTYL         ( SC_WID_UNO_START + 0 )
30
76.6k
#define SC_WID_UNO_CHCOLHDR         ( SC_WID_UNO_START + 1 )
31
76.6k
#define SC_WID_UNO_CHROWHDR         ( SC_WID_UNO_START + 2 )
32
76.6k
#define SC_WID_UNO_CONDFMT          ( SC_WID_UNO_START + 3 )
33
76.6k
#define SC_WID_UNO_CONDLOC          ( SC_WID_UNO_START + 4 )
34
76.6k
#define SC_WID_UNO_CONDXML          ( SC_WID_UNO_START + 5 )
35
86.8k
#define SC_WID_UNO_TBLBORD          ( SC_WID_UNO_START + 6 )
36
76.6k
#define SC_WID_UNO_VALIDAT          ( SC_WID_UNO_START + 7 )
37
78.2k
#define SC_WID_UNO_VALILOC          ( SC_WID_UNO_START + 8 )
38
78.2k
#define SC_WID_UNO_VALIXML          ( SC_WID_UNO_START + 9 )
39
42.8k
#define SC_WID_UNO_POS              ( SC_WID_UNO_START + 10 )
40
42.8k
#define SC_WID_UNO_SIZE             ( SC_WID_UNO_START + 11 )
41
1.46k
#define SC_WID_UNO_FORMLOC          ( SC_WID_UNO_START + 12 )
42
1.46k
#define SC_WID_UNO_FORMRT           ( SC_WID_UNO_START + 13 )
43
30.3k
#define SC_WID_UNO_PAGESTL          ( SC_WID_UNO_START + 14 )
44
30.3k
#define SC_WID_UNO_CELLVIS          ( SC_WID_UNO_START + 15 )
45
15.9k
#define SC_WID_UNO_LINKDISPBIT      ( SC_WID_UNO_START + 16 )
46
15.9k
#define SC_WID_UNO_LINKDISPNAME     ( SC_WID_UNO_START + 17 )
47
98
#define SC_WID_UNO_CELLWID          ( SC_WID_UNO_START + 18 )
48
98
#define SC_WID_UNO_OWIDTH           ( SC_WID_UNO_START + 19 )
49
327
#define SC_WID_UNO_NEWPAGE          ( SC_WID_UNO_START + 20 )
50
109
#define SC_WID_UNO_MANPAGE          ( SC_WID_UNO_START + 21 )
51
120
#define SC_WID_UNO_CELLHGT          ( SC_WID_UNO_START + 22 )
52
120
#define SC_WID_UNO_CELLFILT         ( SC_WID_UNO_START + 23 )
53
120
#define SC_WID_UNO_OHEIGHT          ( SC_WID_UNO_START + 24 )
54
33.7k
#define SC_WID_UNO_DISPNAME         ( SC_WID_UNO_START + 25 )
55
907k
#define SC_WID_UNO_HEADERSET        ( SC_WID_UNO_START + 26 )
56
870k
#define SC_WID_UNO_FOOTERSET        ( SC_WID_UNO_START + 27 )
57
76.6k
#define SC_WID_UNO_NUMRULES         ( SC_WID_UNO_START + 28 )
58
27.5k
#define SC_WID_UNO_ISACTIVE         ( SC_WID_UNO_START + 29 )
59
27.5k
#define SC_WID_UNO_BORDCOL          ( SC_WID_UNO_START + 30 )
60
27.5k
#define SC_WID_UNO_PROTECT          ( SC_WID_UNO_START + 31 )
61
27.5k
#define SC_WID_UNO_SHOWBORD         ( SC_WID_UNO_START + 32 )
62
27.4k
#define SC_WID_UNO_PRINTBORD        ( SC_WID_UNO_START + 33 )
63
27.4k
#define SC_WID_UNO_COPYBACK         ( SC_WID_UNO_START + 34 )
64
27.4k
#define SC_WID_UNO_COPYSTYL         ( SC_WID_UNO_START + 35 )
65
27.4k
#define SC_WID_UNO_COPYFORM         ( SC_WID_UNO_START + 36 )
66
27.4k
#define SC_WID_UNO_TABLAYOUT        ( SC_WID_UNO_START + 37 )
67
27.1k
#define SC_WID_UNO_AUTOPRINT        ( SC_WID_UNO_START + 38 )
68
76.6k
#define SC_WID_UNO_ABSNAME          ( SC_WID_UNO_START + 39 )
69
21.5k
#define SC_WID_UNO_CODENAME         ( SC_WID_UNO_START + 40 )
70
27.1k
#define SC_WID_UNO_TABCOLOR         ( SC_WID_UNO_START + 41 )
71
15.9k
#define SC_WID_UNO_NAMES            ( SC_WID_UNO_START + 42 )
72
86.8k
#define SC_WID_UNO_TBLBORD2         ( SC_WID_UNO_START + 43 )
73
15.9k
#define SC_WID_UNO_CONDFORMAT       ( SC_WID_UNO_START + 44 )
74
60.7k
#define SC_WID_UNO_FORMATID         ( SC_WID_UNO_START + 45 )
75
1.46k
#define SC_WID_UNO_FORMRT2          ( SC_WID_UNO_START + 46 )
76
1.46k
#define SC_WID_UNO_CELLCONTENTTYPE  ( SC_WID_UNO_START + 47 )
77
15.9k
#define SC_WID_UNO_SOLVERSETTINGS   ( SC_WID_UNO_START + 48 )
78
15.9k
#define SC_WID_UNO_TOTALBELOW       ( SC_WID_UNO_START + 49 )
79
0
#define SC_WID_UNO_END              ( SC_WID_UNO_START + 49 )
80
81
inline bool IsScUnoWid( sal_uInt16 nWid )
82
0
{
83
0
    return nWid >= SC_WID_UNO_START && nWid <= SC_WID_UNO_END;
84
0
}
85
86
inline bool IsScItemWid( sal_uInt16 nWid )
87
283k
{
88
283k
    return nWid >= ATTR_STARTINDEX && nWid <= ATTR_ENDINDEX;    // incl. page
89
283k
}
90
91
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */