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 INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_BUNDLES_HXX
21 #define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_BUNDLES_HXX
23 #include <sal/types.h>
24 #include "cgmtypes.hxx"
32 tools::Long mnBundleIndex
;
36 void SetColor( sal_uInt32 nColor
) ;
37 sal_uInt32
GetColor() const { return mnColor
;}
38 tools::Long
GetIndex() const { return mnBundleIndex
; } ;
39 void SetIndex( tools::Long nBundleIndex
) { mnBundleIndex
= nBundleIndex
; } ;
46 virtual std::unique_ptr
<Bundle
> Clone() { return std::make_unique
<Bundle
>( *this ); };
48 virtual ~Bundle() {} ;
50 Bundle(Bundle
const &) = default;
51 Bundle(Bundle
&&) = default;
52 Bundle
& operator =(Bundle
const &) = default;
53 Bundle
& operator =(Bundle
&&) = default;
57 class LineBundle
: public Bundle
69 virtual std::unique_ptr
<Bundle
> Clone() override
{ return std::make_unique
<LineBundle
>( *this ); }
73 class MarkerBundle
: public Bundle
77 MarkerType eMarkerType
;
81 : eMarkerType( MT_POINT
)
85 virtual std::unique_ptr
<Bundle
> Clone() override
{ return std::make_unique
<MarkerBundle
>( *this ); } ;
89 class EdgeBundle
: public Bundle
100 virtual std::unique_ptr
<Bundle
> Clone() override
{ return std::make_unique
<EdgeBundle
>( *this ); }
104 class TextBundle
: public Bundle
108 sal_uInt32 nTextFontIndex
;
109 TextPrecision eTextPrecision
;
110 double nCharacterExpansion
;
111 double nCharacterSpacing
;
114 : nTextFontIndex( 0 )
115 , eTextPrecision( TPR_UNDEFINED
)
116 , nCharacterExpansion( 0.0 )
117 , nCharacterSpacing( 0.0 )
120 virtual std::unique_ptr
<Bundle
> Clone() override
{ return std::make_unique
<TextBundle
>( *this ); } ;
124 class FillBundle
: public Bundle
128 FillInteriorStyle eFillInteriorStyle
;
129 tools::Long nFillPatternIndex
;
130 tools::Long nFillHatchIndex
;
133 : eFillInteriorStyle(FIS_HOLLOW
)
134 , nFillPatternIndex(0)
137 virtual std::unique_ptr
<Bundle
> Clone() override
{ return std::make_unique
<FillBundle
>( *this ); }
143 std::vector
<sal_Int8
> aFontName
;
144 std::vector
<sal_Int8
> aCharSetValue
;
145 sal_uInt32 nFontType
; // bit 0 = 1 -> Italic,
155 sal_uInt32 nFontNameCount
;
156 sal_uInt32 nCharSetCount
;
157 std::vector
<FontEntry
> aFontEntryList
;
162 FontEntry
* GetFontEntry( sal_uInt32
);
163 void InsertName( sal_uInt8
const * pSource
, sal_uInt32 nSize
);
164 void InsertCharSet( sal_uInt8
const * pSource
, sal_uInt32 nSize
);
169 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */