LCOV - code coverage report
Current view: top level - sc/inc - unowids.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef SC_UNOWIDS_HXX
      21             : #define SC_UNOWIDS_HXX
      22             : 
      23             : #include "scitems.hxx"
      24             : 
      25             : 
      26             : //  WIDs for uno property maps,
      27             : //  never stored in files
      28             : 
      29             : #define SC_WID_UNO_START    1200
      30             : 
      31             : #define SC_WID_UNO_CELLSTYL         ( SC_WID_UNO_START + 0 )
      32             : #define SC_WID_UNO_CHCOLHDR         ( SC_WID_UNO_START + 1 )
      33             : #define SC_WID_UNO_CHROWHDR         ( SC_WID_UNO_START + 2 )
      34             : #define SC_WID_UNO_CONDFMT          ( SC_WID_UNO_START + 3 )
      35             : #define SC_WID_UNO_CONDLOC          ( SC_WID_UNO_START + 4 )
      36             : #define SC_WID_UNO_CONDXML          ( SC_WID_UNO_START + 5 )
      37             : #define SC_WID_UNO_TBLBORD          ( SC_WID_UNO_START + 6 )
      38             : #define SC_WID_UNO_VALIDAT          ( SC_WID_UNO_START + 7 )
      39             : #define SC_WID_UNO_VALILOC          ( SC_WID_UNO_START + 8 )
      40             : #define SC_WID_UNO_VALIXML          ( SC_WID_UNO_START + 9 )
      41             : #define SC_WID_UNO_POS              ( SC_WID_UNO_START + 10 )
      42             : #define SC_WID_UNO_SIZE             ( SC_WID_UNO_START + 11 )
      43             : #define SC_WID_UNO_FORMLOC          ( SC_WID_UNO_START + 12 )
      44             : #define SC_WID_UNO_FORMRT           ( SC_WID_UNO_START + 13 )
      45             : #define SC_WID_UNO_PAGESTL          ( SC_WID_UNO_START + 14 )
      46             : #define SC_WID_UNO_CELLVIS          ( SC_WID_UNO_START + 15 )
      47             : #define SC_WID_UNO_LINKDISPBIT      ( SC_WID_UNO_START + 16 )
      48             : #define SC_WID_UNO_LINKDISPNAME     ( SC_WID_UNO_START + 17 )
      49             : #define SC_WID_UNO_CELLWID          ( SC_WID_UNO_START + 18 )
      50             : #define SC_WID_UNO_OWIDTH           ( SC_WID_UNO_START + 19 )
      51             : #define SC_WID_UNO_NEWPAGE          ( SC_WID_UNO_START + 20 )
      52             : #define SC_WID_UNO_MANPAGE          ( SC_WID_UNO_START + 21 )
      53             : #define SC_WID_UNO_CELLHGT          ( SC_WID_UNO_START + 22 )
      54             : #define SC_WID_UNO_CELLFILT         ( SC_WID_UNO_START + 23 )
      55             : #define SC_WID_UNO_OHEIGHT          ( SC_WID_UNO_START + 24 )
      56             : #define SC_WID_UNO_DISPNAME         ( SC_WID_UNO_START + 25 )
      57             : #define SC_WID_UNO_HEADERSET        ( SC_WID_UNO_START + 26 )
      58             : #define SC_WID_UNO_FOOTERSET        ( SC_WID_UNO_START + 27 )
      59             : #define SC_WID_UNO_NUMRULES         ( SC_WID_UNO_START + 28 )
      60             : #define SC_WID_UNO_ISACTIVE         ( SC_WID_UNO_START + 29 )
      61             : #define SC_WID_UNO_BORDCOL          ( SC_WID_UNO_START + 30 )
      62             : #define SC_WID_UNO_PROTECT          ( SC_WID_UNO_START + 31 )
      63             : #define SC_WID_UNO_SHOWBORD         ( SC_WID_UNO_START + 32 )
      64             : #define SC_WID_UNO_PRINTBORD        ( SC_WID_UNO_START + 33 )
      65             : #define SC_WID_UNO_COPYBACK         ( SC_WID_UNO_START + 34 )
      66             : #define SC_WID_UNO_COPYSTYL         ( SC_WID_UNO_START + 35 )
      67             : #define SC_WID_UNO_COPYFORM         ( SC_WID_UNO_START + 36 )
      68             : #define SC_WID_UNO_TABLAYOUT        ( SC_WID_UNO_START + 37 )
      69             : #define SC_WID_UNO_AUTOPRINT        ( SC_WID_UNO_START + 38 )
      70             : #define SC_WID_UNO_ABSNAME          ( SC_WID_UNO_START + 39 )
      71             : #define SC_WID_UNO_CODENAME         ( SC_WID_UNO_START + 40 )
      72             : #define SC_WID_UNO_TABCOLOR         ( SC_WID_UNO_START + 41 )
      73             : #define SC_WID_UNO_NAMES            ( SC_WID_UNO_START + 42 )
      74             : #define SC_WID_UNO_TBLBORD2         ( SC_WID_UNO_START + 43 )
      75             : #define SC_WID_UNO_END              ( SC_WID_UNO_START + 43 )
      76             : 
      77             : 
      78           0 : inline bool IsScUnoWid( sal_uInt16 nWid )
      79             : {
      80           0 :     return nWid >= SC_WID_UNO_START && nWid <= SC_WID_UNO_END;
      81             : }
      82             : 
      83           0 : inline bool IsScItemWid( sal_uInt16 nWid )
      84             : {
      85           0 :     return nWid >= ATTR_STARTINDEX && nWid <= ATTR_ENDINDEX;    // incl. page
      86             : }
      87             : 
      88             : #endif
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10