Update ooo320-m1
[ooovba.git] / goodies / source / filter.vcl / icgm / bundles.hxx
blobcd73bcccfc69d50ce570d0b3cd7bab8a83c301c0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: bundles.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
31 #ifndef CGM_BUNDLES_HXX_
32 #define CGM_BUNDLES_HXX_
34 #include <sal/types.h>
35 #include "cgmtypes.hxx"
36 #include <tools/list.hxx>
37 #include <vcl/salbtype.hxx>
39 // ---------------------------------------------------------------
41 class CGM;
43 class Bundle
46 long mnBundleIndex;
47 sal_uInt32 mnColor;
49 public:
50 void SetColor( sal_uInt32 nColor ) ;
51 sal_uInt32 GetColor() ;
52 long GetIndex() const { return mnBundleIndex; } ;
53 void SetIndex( long nBundleIndex ) { mnBundleIndex = nBundleIndex; } ;
55 Bundle() {};
56 virtual Bundle* Clone() { return new Bundle( *this ); };
57 Bundle& operator=( Bundle& rBundle );
59 virtual ~Bundle() {} ;
62 // ---------------------------------------------------------------
64 class LineBundle : public Bundle
66 public:
68 LineType eLineType;
69 double nLineWidth;
71 LineBundle() {};
72 virtual Bundle* Clone() { return new LineBundle( *this ); };
73 LineBundle& operator=( LineBundle& rLineBundle );
74 virtual ~LineBundle() {};
77 // ---------------------------------------------------------------
79 class MarkerBundle : public Bundle
81 public:
83 MarkerType eMarkerType;
84 double nMarkerSize;
86 MarkerBundle() {};
87 virtual Bundle* Clone() { return new MarkerBundle( *this ); } ;
88 MarkerBundle& operator=( MarkerBundle& rMarkerBundle );
89 virtual ~MarkerBundle() {};
92 // ---------------------------------------------------------------
94 class EdgeBundle : public Bundle
96 public:
98 EdgeType eEdgeType;
99 double nEdgeWidth;
101 EdgeBundle() {};
102 virtual Bundle* Clone() { return new EdgeBundle( *this ); } ;
103 EdgeBundle& operator=( EdgeBundle& rEdgeBundle );
104 virtual ~EdgeBundle() {};
107 // ---------------------------------------------------------------
109 class TextBundle : public Bundle
111 public:
113 sal_uInt32 nTextFontIndex;
114 TextPrecision eTextPrecision;
115 double nCharacterExpansion;
116 double nCharacterSpacing;
118 TextBundle() {};
119 virtual Bundle* Clone() { return new TextBundle( *this ); } ;
120 TextBundle& operator=( TextBundle& rTextBundle );
121 virtual ~TextBundle() {};
124 // ---------------------------------------------------------------
126 class FillBundle : public Bundle
128 public:
130 FillInteriorStyle eFillInteriorStyle;
131 long nFillPatternIndex;
132 long nFillHatchIndex;
134 FillBundle() {};
135 virtual Bundle* Clone() { return new FillBundle( *this ); } ;
136 FillBundle& operator=( FillBundle& rFillBundle );
137 virtual ~FillBundle() {};
141 // ---------------------------------------------------------------
143 class FontEntry
145 public:
146 sal_Int8* pFontName;
147 CharSetType eCharSetType;
148 sal_Int8* pCharSetValue;
149 sal_uInt32 nFontType; // bit 0 = 1 -> Italic,
150 // bit 1 = 1 -> Bold
152 FontEntry();
153 FontEntry* Clone() { return new FontEntry( *this ); } ;
154 ~FontEntry();
157 // ---------------------------------------------------------------
159 class CGMFList
161 sal_uInt32 nFontNameCount;
162 sal_uInt32 nCharSetCount;
163 List aFontEntryList;
164 void ImplDeleteList();
165 public:
166 sal_uInt32 nFontsAvailable;
167 FontEntry* GetFontEntry( sal_uInt32 );
168 void InsertName( sal_uInt8* pSource, sal_uInt32 nSize );
169 void InsertCharSet( CharSetType, sal_uInt8* pSource, sal_uInt32 nSize );
170 CGMFList();
171 CGMFList& operator=( CGMFList& rFontList );
172 ~CGMFList();
176 #endif