1 -- Created on: 1998-11-25
3 -- Copyright (c) 1998-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
35 ------------------------------
37 ------------------------------
38 pointer PlotterDriverPtr to PlotterDriver from PlotMgt;
40 ------------------------------
41 -- Category: Exceptions
42 ------------------------------
43 exception PlotterDefinitionError inherits OutOfRange from Standard;
44 ---Category: The exceptions
46 exception PlotterAccessError inherits OutOfRange from Standard;
47 ---Category: The exceptions
55 class PlotterParameter;
56 ---Purpose: Defines any plotter parameter and determines its behavior.
60 ---Purpose: Defines a Plotter (sequence of plotter parameters and some
61 -- methods to operate with). This class must be used to access
62 -- plotter parameters.
65 deferred class PlotterDriver;
68 private class TextManager;
71 -------------------------
72 -- Category: Enumerations
73 -------------------------
75 enumeration TypeOfOrigin is
83 enumeration TypeOfQuality is
90 enumeration ImageFormat is
98 enumeration TypeOfPlotterParameter is
107 enumeration PlottingType is
112 enumeration PaperFormat is
113 PF_USERDEFINED, -- (00.00 x 00.00)
114 PF_A0, -- (84.10 x 118.9)
115 PF_A1, -- (59.40 x 84.10)
116 PF_A2, -- (42.00 x 59.40)
117 PF_A3, -- (29.70 x 42.00)
118 PF_A4, -- (21.00 x 29.70)
119 PF_A5, -- (14.80 x 21.00)
120 PF_LETTER, -- (21.59 x 27.94)
121 PF_LEGAL, -- (21.59 x 35.56)
122 PF_STATEMENT, -- (13.97 x 21.59)
123 PF_EXCLUSIVE, -- (18.41 x 26.67)
124 PF_FOLIO, -- (21.59 x 33.02)
125 PF_QUARTO, -- (21.50 x 27.50)
126 PF_ENVELOPE, -- (11.00 x 23.00)
127 PF_MONARCH -- (09.84 x 19.04)
130 ---------------------------------
131 -- Category: Instantiated classes
132 ---------------------------------
133 private class ListOfPlotterParameter instantiates
134 Sequence from TCollection (PlotterParameter from PlotMgt);
136 private class HListOfPlotterParameter instantiates
137 HSequence from TCollection (PlotterParameter from PlotMgt,
138 ListOfPlotterParameter from PlotMgt);
140 class ListOfMFTFonts instantiates
141 Array1 from TCollection (FontManager from MFT);
143 class HListOfMFTFonts instantiates
144 HArray1 from TCollection (FontManager from MFT, ListOfMFTFonts);
146 ---------------------------------
147 -- Category: Package methods
148 ---------------------------------
150 returns HSequenceOfAsciiString from TColStd;
154 aTypeString : in out AsciiString from TCollection
155 ) returns TypeOfPlotterParameter from PlotMgt;
159 aType : TypeOfPlotterParameter from PlotMgt
160 ) returns AsciiString from TCollection;
164 anOriginString : in out AsciiString from TCollection
165 ) returns TypeOfOrigin from PlotMgt;
169 anOrigin : TypeOfOrigin from PlotMgt
170 ) returns AsciiString from TCollection;
174 aQualityString : in out AsciiString from TCollection
175 ) returns TypeOfQuality from PlotMgt;
179 aQuality : TypeOfQuality from PlotMgt
180 ) returns AsciiString from TCollection;
183 ImageFormatFromString (
184 anImageFormatString : in out AsciiString from TCollection
185 ) returns ImageFormat from PlotMgt;
188 StringFromImageFormat (
189 anImageFormat : ImageFormat from PlotMgt
190 ) returns AsciiString from TCollection;
193 PlottingTypeFromString (
194 aPlottingTypeString : in out AsciiString from TCollection
195 ) returns PlottingType from PlotMgt;
198 StringFromPlottingType (
199 aPlottingType : PlottingType from PlotMgt
200 ) returns AsciiString from TCollection;
203 PaperFormatFromString (
204 aPaperFormatString : in out AsciiString from TCollection
205 ) returns PaperFormat from PlotMgt;
208 StringFromPaperFormat (
209 aPaperFormat : PaperFormat from PlotMgt
210 ) returns AsciiString from TCollection;
214 aFormat : in out AsciiString from TCollection;
215 aWidth : out Real from Standard;
216 aLength : out Real from Standard