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: bundles.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 ************************************************************************/
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 // ---------------------------------------------------------------
50 void SetColor( sal_uInt32 nColor
) ;
51 sal_uInt32
GetColor() ;
52 long GetIndex() const { return mnBundleIndex
; } ;
53 void SetIndex( long nBundleIndex
) { mnBundleIndex
= nBundleIndex
; } ;
56 virtual Bundle
* Clone() { return new Bundle( *this ); };
57 Bundle
& operator=( Bundle
& rBundle
);
59 virtual ~Bundle() {} ;
62 // ---------------------------------------------------------------
64 class LineBundle
: public Bundle
72 virtual Bundle
* Clone() { return new LineBundle( *this ); };
73 LineBundle
& operator=( LineBundle
& rLineBundle
);
74 virtual ~LineBundle() {};
77 // ---------------------------------------------------------------
79 class MarkerBundle
: public Bundle
83 MarkerType eMarkerType
;
87 virtual Bundle
* Clone() { return new MarkerBundle( *this ); } ;
88 MarkerBundle
& operator=( MarkerBundle
& rMarkerBundle
);
89 virtual ~MarkerBundle() {};
92 // ---------------------------------------------------------------
94 class EdgeBundle
: public Bundle
102 virtual Bundle
* Clone() { return new EdgeBundle( *this ); } ;
103 EdgeBundle
& operator=( EdgeBundle
& rEdgeBundle
);
104 virtual ~EdgeBundle() {};
107 // ---------------------------------------------------------------
109 class TextBundle
: public Bundle
113 sal_uInt32 nTextFontIndex
;
114 TextPrecision eTextPrecision
;
115 double nCharacterExpansion
;
116 double nCharacterSpacing
;
119 virtual Bundle
* Clone() { return new TextBundle( *this ); } ;
120 TextBundle
& operator=( TextBundle
& rTextBundle
);
121 virtual ~TextBundle() {};
124 // ---------------------------------------------------------------
126 class FillBundle
: public Bundle
130 FillInteriorStyle eFillInteriorStyle
;
131 long nFillPatternIndex
;
132 long nFillHatchIndex
;
135 virtual Bundle
* Clone() { return new FillBundle( *this ); } ;
136 FillBundle
& operator=( FillBundle
& rFillBundle
);
137 virtual ~FillBundle() {};
141 // ---------------------------------------------------------------
147 CharSetType eCharSetType
;
148 sal_Int8
* pCharSetValue
;
149 sal_uInt32 nFontType
; // bit 0 = 1 -> Italic,
153 FontEntry
* Clone() { return new FontEntry( *this ); } ;
157 // ---------------------------------------------------------------
161 sal_uInt32 nFontNameCount
;
162 sal_uInt32 nCharSetCount
;
164 void ImplDeleteList();
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
);
171 CGMFList
& operator=( CGMFList
& rFontList
);