1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef CGM_BUNDLES_HXX_
21 #define CGM_BUNDLES_HXX_
23 #include <sal/types.h>
24 #include "cgmtypes.hxx"
25 #include <vcl/salbtype.hxx>
28 // ---------------------------------------------------------------
37 void SetColor( sal_uInt32 nColor
) ;
38 sal_uInt32
GetColor() const;
39 long GetIndex() const { return mnBundleIndex
; } ;
40 void SetIndex( long nBundleIndex
) { mnBundleIndex
= nBundleIndex
; } ;
43 virtual Bundle
* Clone() { return new Bundle( *this ); };
44 Bundle
& operator=( Bundle
& rBundle
);
46 virtual ~Bundle() {} ;
49 // ---------------------------------------------------------------
51 class LineBundle
: public Bundle
59 virtual Bundle
* Clone() { return new LineBundle( *this ); };
60 LineBundle
& operator=( LineBundle
& rLineBundle
);
61 virtual ~LineBundle() {};
64 // ---------------------------------------------------------------
66 class MarkerBundle
: public Bundle
70 MarkerType eMarkerType
;
74 virtual Bundle
* Clone() { return new MarkerBundle( *this ); } ;
75 MarkerBundle
& operator=( MarkerBundle
& rMarkerBundle
);
76 virtual ~MarkerBundle() {};
79 // ---------------------------------------------------------------
81 class EdgeBundle
: public Bundle
89 virtual Bundle
* Clone() { return new EdgeBundle( *this ); } ;
90 EdgeBundle
& operator=( EdgeBundle
& rEdgeBundle
);
91 virtual ~EdgeBundle() {};
94 // ---------------------------------------------------------------
96 class TextBundle
: public Bundle
100 sal_uInt32 nTextFontIndex
;
101 TextPrecision eTextPrecision
;
102 double nCharacterExpansion
;
103 double nCharacterSpacing
;
106 virtual Bundle
* Clone() { return new TextBundle( *this ); } ;
107 TextBundle
& operator=( TextBundle
& rTextBundle
);
108 virtual ~TextBundle() {};
111 // ---------------------------------------------------------------
113 class FillBundle
: public Bundle
117 FillInteriorStyle eFillInteriorStyle
;
118 long nFillPatternIndex
;
119 long nFillHatchIndex
;
122 virtual Bundle
* Clone() { return new FillBundle( *this ); } ;
123 FillBundle
& operator=( FillBundle
& rFillBundle
);
124 virtual ~FillBundle() {};
128 // ---------------------------------------------------------------
134 CharSetType eCharSetType
;
135 sal_Int8
* pCharSetValue
;
136 sal_uInt32 nFontType
; // bit 0 = 1 -> Italic,
140 FontEntry
* Clone() { return new FontEntry( *this ); } ;
144 // ---------------------------------------------------------------
146 typedef ::std::vector
< FontEntry
* > FontEntryList
;
150 sal_uInt32 nFontNameCount
;
151 sal_uInt32 nCharSetCount
;
152 FontEntryList aFontEntryList
;
153 void ImplDeleteList();
159 sal_uInt32 nFontsAvailable
;
160 FontEntry
* GetFontEntry( sal_uInt32
);
161 void InsertName( sal_uInt8
* pSource
, sal_uInt32 nSize
);
162 void InsertCharSet( CharSetType
, sal_uInt8
* pSource
, sal_uInt32 nSize
);
163 CGMFList
& operator=( CGMFList
& rFontList
);
168 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */