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: main.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 ************************************************************************/
36 // ---------------------------------------------------------------
38 #define CGM_LEVEL1 0x0001 // VERSION 1 METAFILE
39 #define CGM_LEVEL2 0x0002
40 #define CGM_LEVEL3 0x0003
41 #define CGM_GDSF_ONLY 0x00F0
42 #define CGM_UNKNOWN_LEVEL 0x00F1
43 #define CGM_UNKNOWN_COMMAND 0x00F2
44 #define CGM_DESCRIPTION 0x00F3
46 #define CGM_EXTENDED_PRIMITIVES_SET 0x0100 // INDICATES PRIMITIVES WHICH ARE AVAILABLE IN
47 // LEVEL 1 BUT ARE NOT DEFINED IN ISO 7942(GKS)
48 #define CGM_DRAWING_PLUS_CONTROL_SET 0x0200 // INDICATES THAT THIS IS AN ADDITIONAL LEVEL 1
50 #define ComOut( Level, Description ) if ( mpCommentOut ) ImplComment( Level, Description );
52 #define BMCOL( _col ) BitmapColor( (sal_Int8)(_col >> 16 ), (sal_Int8)( _col >> 8 ), (sal_Int8)_col )
53 #define ALIGN2( _nElementSize ) { _nElementSize = ( _nElementSize + 1 ) & ~1; }
54 #define ALIGN4( _nElementSize ) { _nElementSize = ( _nElementSize + 3 ) & ~3; }
55 #define ALIGN8( _nElementSize ) { _nElementSize = ( _nElementSize + 7 ) & ~7; }
57 #include <vcl/salbtype.hxx>
58 #include <tools/stream.hxx>
59 #include <tools/list.hxx>
60 #include "bundles.hxx"
62 #include "elements.hxx"