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