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 .
22 #include <sal/config.h>
24 #include <string_view>
26 #include "dxfgrprd.hxx"
30 //------------------- Line Type ----------------------------------------------
33 #define DXF_MAX_DASH_COUNT 32
42 tools::Long nFlags
; // 70
43 OString m_sDescription
; // 3
44 tools::Long nDashCount
; // 73
45 double fPatternLength
; // 40
46 double fDash
[DXF_MAX_DASH_COUNT
]; // 49,49,...
49 void Read(DXFGroupReader
& rDGR
);
53 //------------------ Layer ---------------------------------------------------
63 tools::Long nFlags
; // 70
64 tools::Long nColor
; // 62
65 OString m_sLineType
; // 6
68 void Read(DXFGroupReader
& rDGR
);
72 //------------------ Style ---------------------------------------------------
82 tools::Long nFlags
; // 70
84 double fWidthFak
; // 41
85 double fOblAngle
; // 50
86 tools::Long nTextGenFlags
; // 71
87 double fLastHeightUsed
; // 42
88 OString m_sPrimFontFile
; // 3
89 OString m_sBigFontFile
; // 4
92 void Read(DXFGroupReader
& rDGR
);
96 //------------------ VPort ---------------------------------------------------
105 OString m_sName
; // 2
106 tools::Long nFlags
; // 70
111 double fCenterX
; // 12
112 double fCenterY
; // 22
113 double fSnapBaseX
; // 13
114 double fSnapBaseY
; // 23
115 double fSnapSpacingX
; // 14
116 double fSnapSpacingY
; // 24
119 DXFVector aDirection
; // 16,26,36
120 DXFVector aTarget
; // 17,27,37
121 double fHeight
; // 40
122 double fAspectRatio
; // 41
123 double fLensLength
; // 42
124 double fFrontClipPlane
; // 43
125 double fBackClipPlane
; // 44
126 double fTwistAngle
; // 51
127 tools::Long nStatus
; // 68
128 tools::Long nID
; // 69
129 tools::Long nMode
; // 71
130 tools::Long nCircleZoomPercent
; // 72
131 tools::Long nFastZoom
; // 73
132 tools::Long nUCSICON
; // 74
133 tools::Long nSnap
; // 75
134 tools::Long nGrid
; // 76
135 tools::Long nSnapStyle
; // 77
136 tools::Long nSnapIsopair
; // 78
139 void Read(DXFGroupReader
& rDGR
);
143 //------------------ Tables --------------------------------------------------
148 DXFLType
* pLTypes
; // list of line types
149 DXFLayer
* pLayers
; // list of layers
150 DXFStyle
* pStyles
; // list of styles
151 DXFVPort
* pVPorts
; // list of viewports
158 void Read(DXFGroupReader
& rDGR
);
159 // Reads the table until an ENDSEC or EOF
160 // (Unknown things/tables will be skipped)
164 // look for table entries:
165 DXFLType
* SearchLType(std::string_view rName
) const;
166 DXFLayer
* SearchLayer(std::string_view rName
) const;
167 DXFVPort
* SearchVPort(std::string_view rName
) const;
171 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */