1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _SV_SALCONST_H 29 #define _SV_SALCONST_H 30 31 // ------------------- 32 // - Constants - 33 // ------------------- 34 35 static const unsigned short kByteMask = 0xFF; 36 37 static const unsigned short kOneByte = 8; 38 static const unsigned short kTwoBytes = 16; 39 40 static const unsigned short kOneBit = 1; 41 static const unsigned short kFiveBits = 5; 42 static const unsigned short kEightBits = 8; 43 static const unsigned short kTenBits = 10; 44 static const unsigned short kElevenBits = 11; 45 46 static const unsigned short kBlackAndWhite = 1; 47 static const unsigned short kFourBitColor = 4; 48 static const unsigned short kEightBitColor = 8; 49 static const unsigned short kThousandsColor = 16; 50 static const unsigned short kTrueColor = 32; 51 52 static const unsigned long k16BitRedColorMask = 0x00007c00; 53 static const unsigned long k16BitGreenColorMask = 0x000003e0; 54 static const unsigned long k16BitBlueColorMask = 0x0000001f; 55 56 static const unsigned long k32BitRedColorMask = 0x00ff0000; 57 static const unsigned long k32BitGreenColorMask = 0x0000ff00; 58 static const unsigned long k32BitBlueColorMask = 0x000000ff; 59 60 static const unsigned short kPixMapCmpSizeOneBit = 1; 61 static const unsigned short kPixMapCmpSizeFourBits = 4; 62 static const unsigned short kPixMapCmpSizeFiveBits = 5; 63 static const unsigned short kPixMapCmpSizeEightBits = 8; 64 65 static const long kPixMapHRes = 72; 66 static const long kPixMapVRes = 72; 67 68 #endif // _SV_SALCONST_H 69