bump product version to 4.1.6.2
[LibreOffice.git] / filter / source / graphicfilter / icgm / bundles.hxx
blob6674368b512ee51746be77b70e4d5819a91f14d2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
26 #include <vector>
28 // ---------------------------------------------------------------
30 class Bundle
33 long mnBundleIndex;
34 sal_uInt32 mnColor;
36 public:
37 void SetColor( sal_uInt32 nColor ) ;
38 sal_uInt32 GetColor() const;
39 long GetIndex() const { return mnBundleIndex; } ;
40 void SetIndex( long nBundleIndex ) { mnBundleIndex = nBundleIndex; } ;
42 Bundle() {};
43 virtual Bundle* Clone() { return new Bundle( *this ); };
44 Bundle& operator=( Bundle& rBundle );
46 virtual ~Bundle() {} ;
49 // ---------------------------------------------------------------
51 class LineBundle : public Bundle
53 public:
55 LineType eLineType;
56 double nLineWidth;
58 LineBundle() {};
59 virtual Bundle* Clone() { return new LineBundle( *this ); };
60 LineBundle& operator=( LineBundle& rLineBundle );
61 virtual ~LineBundle() {};
64 // ---------------------------------------------------------------
66 class MarkerBundle : public Bundle
68 public:
70 MarkerType eMarkerType;
71 double nMarkerSize;
73 MarkerBundle() {};
74 virtual Bundle* Clone() { return new MarkerBundle( *this ); } ;
75 MarkerBundle& operator=( MarkerBundle& rMarkerBundle );
76 virtual ~MarkerBundle() {};
79 // ---------------------------------------------------------------
81 class EdgeBundle : public Bundle
83 public:
85 EdgeType eEdgeType;
86 double nEdgeWidth;
88 EdgeBundle() {};
89 virtual Bundle* Clone() { return new EdgeBundle( *this ); } ;
90 EdgeBundle& operator=( EdgeBundle& rEdgeBundle );
91 virtual ~EdgeBundle() {};
94 // ---------------------------------------------------------------
96 class TextBundle : public Bundle
98 public:
100 sal_uInt32 nTextFontIndex;
101 TextPrecision eTextPrecision;
102 double nCharacterExpansion;
103 double nCharacterSpacing;
105 TextBundle() {};
106 virtual Bundle* Clone() { return new TextBundle( *this ); } ;
107 TextBundle& operator=( TextBundle& rTextBundle );
108 virtual ~TextBundle() {};
111 // ---------------------------------------------------------------
113 class FillBundle : public Bundle
115 public:
117 FillInteriorStyle eFillInteriorStyle;
118 long nFillPatternIndex;
119 long nFillHatchIndex;
121 FillBundle() {};
122 virtual Bundle* Clone() { return new FillBundle( *this ); } ;
123 FillBundle& operator=( FillBundle& rFillBundle );
124 virtual ~FillBundle() {};
128 // ---------------------------------------------------------------
130 class FontEntry
132 public:
133 sal_Int8* pFontName;
134 CharSetType eCharSetType;
135 sal_Int8* pCharSetValue;
136 sal_uInt32 nFontType; // bit 0 = 1 -> Italic,
137 // bit 1 = 1 -> Bold
139 FontEntry();
140 FontEntry* Clone() { return new FontEntry( *this ); } ;
141 ~FontEntry();
144 // ---------------------------------------------------------------
146 typedef ::std::vector< FontEntry* > FontEntryList;
148 class CGMFList
150 sal_uInt32 nFontNameCount;
151 sal_uInt32 nCharSetCount;
152 FontEntryList aFontEntryList;
153 void ImplDeleteList();
155 public:
156 CGMFList();
157 ~CGMFList();
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 );
166 #endif
168 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */