Gtk-WARNING gtktreestore.c:1047: Invalid column number 1 added to iter
[LibreOffice.git] / vcl / source / filter / idxf / dxftblrd.hxx
blob9e0f83f3ed563292098141f2652ed3c97c597dfe
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 #pragma once
22 #include <sal/config.h>
24 #include <string_view>
26 #include "dxfgrprd.hxx"
27 #include "dxfvec.hxx"
30 //------------------- Line Type ----------------------------------------------
33 #define DXF_MAX_DASH_COUNT 32
35 class DXFLType {
37 public:
39 DXFLType * pSucc;
41 OString m_sName; // 2
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,...
48 DXFLType();
49 void Read(DXFGroupReader & rDGR);
53 //------------------ Layer ---------------------------------------------------
56 class DXFLayer {
58 public:
60 DXFLayer * pSucc;
62 OString m_sName; // 2
63 tools::Long nFlags; // 70
64 tools::Long nColor; // 62
65 OString m_sLineType; // 6
67 DXFLayer();
68 void Read(DXFGroupReader & rDGR);
72 //------------------ Style ---------------------------------------------------
75 class DXFStyle {
77 public:
79 DXFStyle * pSucc;
81 OString m_sName; // 2
82 tools::Long nFlags; // 70
83 double fHeight; // 40
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
91 DXFStyle();
92 void Read(DXFGroupReader & rDGR);
96 //------------------ VPort ---------------------------------------------------
99 class DXFVPort {
101 public:
103 DXFVPort * pSucc;
105 OString m_sName; // 2
106 tools::Long nFlags; // 70
107 double fMinX; // 10
108 double fMinY; // 20
109 double fMaxX; // 11
110 double fMaxY; // 21
111 double fCenterX; // 12
112 double fCenterY; // 22
113 double fSnapBaseX; // 13
114 double fSnapBaseY; // 23
115 double fSnapSpacingX; // 14
116 double fSnapSpacingY; // 24
117 double fGridX; // 15
118 double fGridY; // 25
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
138 DXFVPort();
139 void Read(DXFGroupReader & rDGR);
143 //------------------ Tables --------------------------------------------------
146 class DXFTables {
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
153 public:
155 DXFTables();
156 ~DXFTables();
158 void Read(DXFGroupReader & rDGR);
159 // Reads the table until an ENDSEC or EOF
160 // (Unknown things/tables will be skipped)
162 void Clear();
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: */