JX Application Framework
|
#include <JXEPSPrinter.h>
Public Member Functions | |
JXEPSPrinter (JXDisplay *display) | |
~JXEPSPrinter () override | |
void | ReadXEPSSetup (std::istream &input) |
void | WriteXEPSSetup (std::ostream &output) const |
JPainter & | GetPreviewPainter (const JRect &bounds) override |
bool | ConfirmUserPrintSetup () |
![]() | |
JEPSPrinter (JFontManager *fontManager) | |
~JEPSPrinter () override | |
void | ReadEPSSetup (std::istream &input) |
void | WriteEPSSetup (std::ostream &output) const |
bool | OpenDocument (const JRect &bounds) |
void | CloseDocument () |
bool | WantsPreview () const |
void | ShouldPrintPreview (const bool doIt) |
JRect | GetBounds () const |
JRect | SetClipRect (const JRect &r) override |
void | SetDashList (const JArray< JSize > &dashList, const JSize dashOffset=0) override |
void | StringNoSubstitutions (const JCoordinate left, const JCoordinate top, const JString &str) override |
void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) override |
void | Point (const JCoordinate x, const JCoordinate y) override |
void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2) override |
void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) override |
void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly) override |
void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect) override |
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
virtual void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop)=0 |
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
virtual void | Point (const JCoordinate x, const JCoordinate y)=0 |
void | Point (const JPoint &pt) |
virtual void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2)=0 |
void | Line (const JPoint &pt1, const JPoint &pt2) |
virtual void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h)=0 |
void | Rect (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
void | Rect (const JRect &bounds) |
virtual void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h)=0 |
void | Ellipse (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
void | Ellipse (const JRect &bounds) |
virtual void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle)=0 |
void | Arc (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) |
void | Arc (const JRect &bounds, const JFloat startAngle, const JFloat deltaAngle) |
virtual void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly)=0 |
void | Polygon (const JPoint &upperLeft, const JPolygon &poly) |
void | Polygon (const JPolygon &poly) |
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
virtual void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect)=0 |
![]() | |
JPainter (JFontManager *fontManager, const JRect &defaultClipRect) | |
virtual | ~JPainter () |
JFontManager * | GetFontManager () const |
virtual void | Reset () |
void | Reset (const JRect &defClipRect) |
virtual void | ResetAllButClipping () |
const JRect & | GetClipRect () const |
void | ResetClipRect () |
const JRect & | GetDefaultClipRect () const |
void | SetDefaultClipRect (const JRect &r) |
const JPoint & | GetOrigin () const |
void | SetOrigin (const JCoordinate x, const JCoordinate y) |
void | SetOrigin (const JPoint &pt) |
void | ShiftOrigin (const JCoordinate dx, const JCoordinate dy) |
void | ShiftOrigin (const JPoint &delta) |
const JPoint & | GetPenLocation () const |
void | SetPenLocation (const JCoordinate x, const JCoordinate y) |
void | SetPenLocation (const JPoint &pt) |
void | ShiftPenLocation (const JCoordinate dx, const JCoordinate dy) |
void | ShiftPenLocation (const JPoint &delta) |
JColorID | GetPenColor () const |
void | SetPenColor (const JColorID color) |
JSize | GetLineWidth () const |
void | SetLineWidth (const JSize width) |
bool | LinesAreDashed () const |
void | DrawDashedLines (const bool on) |
bool | GetDashList (const JArray< JSize > **dashList, JSize *dashOffset) const |
bool | IsFilling () const |
void | SetFilling (const bool on) |
const JFont & | GetFont () const |
void | SetFontName (const JString &name) |
void | SetFontSize (const JSize size) |
void | SetFontStyle (const JFontStyle &style) |
void | SetFont (const JFont &f) |
JSize | GetLineHeight (JCoordinate *ascent, JCoordinate *descent) const |
JSize | GetLineHeight () const |
JSize | GetStringWidth (const JString &str) const |
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
void | Point (const JPoint &pt) |
void | Line (const JPoint &pt1, const JPoint &pt2) |
void | LineTo (const JCoordinate x, const JCoordinate y) |
void | LineTo (const JPoint &pt) |
void | DeltaLine (const JCoordinate dx, const JCoordinate dy) |
void | DeltaLine (const JPoint &delta) |
void | Rect (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
void | Rect (const JRect &bounds) |
void | RectInside (const JRect &bounds) |
void | Ellipse (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
void | Ellipse (const JRect &bounds) |
void | Arc (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) |
void | Arc (const JRect &bounds, const JFloat startAngle, const JFloat deltaAngle) |
void | Polygon (const JPoint &upperLeft, const JPolygon &poly) |
void | Polygon (const JPolygon &poly) |
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
![]() | |
JPrinter () | |
~JPrinter () override | |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
virtual JString | ToString () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
![]() | |
JPSPrinterBase (JFontManager *fontManager) | |
virtual | ~JPSPrinterBase () |
void | SetCreator (const JString &str) |
void | SetTitle (const JString &str) |
bool | PSOpenDocument () |
void | PSCloseDocument () |
void | PSCancelDocument () |
bool | PSDocumentIsOpen () const |
const JString & | GetOutputFileName () const |
void | SetOutputFileName (const JString &name) |
bool | PSWillPrintBlackWhite () const |
void | PSPrintBlackWhite (const bool doIt) |
void | PSSetClipRect (const JRect &r) |
void | PSSetDashList (const JArray< JSize > &dashList, const JSize dashOffset=0) |
void | PSString (const JFont &font, const JCoordinate ascent, const JCoordinate aligndx, const JCoordinate aligndy, const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str) |
void | PSLine (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2, const JColorID color, const JSize lineWidth, const bool drawDashedLines) |
void | PSRect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JColorID color, const JSize lineWidth, const bool drawDashedLines, const bool fill) |
void | PSArc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle, const JColorID color, const JSize lineWidth, const bool drawDashedLines, const bool fill) |
void | PSPolygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly, const JColorID color, const JSize lineWidth, const bool drawDashedLines, const bool fill) |
void | PSColorImage (const JImage &image, const JRect &srcRect, const JRect &destRect) |
Protected Member Functions | |
bool | GetPreviewImage (const JImage **image) const override |
void | DeletePreviewData () override |
virtual JXEPSPrintSetupDialog * | CreatePrintSetupDialog (const JString &fileName, const bool preview, const bool bw) |
![]() | |
const JPoint & | PSGetOrigin () const override |
void | PSResetCoordinates () override |
JCoordinate | PSGetPrintableHeight () const override |
bool | PSShouldPrintCurrentPage () const override |
void | PSPrintVersionComment (std::ostream &output) override |
void | PSPrintHeaderComments (std::ostream &output) override |
void | PSPrintSetupComments (std::ostream &output) override |
![]() | |
JSize | AlignString (JCoordinate *left, JCoordinate *top, const JString &str, const JCoordinate width, const HAlign hAlign, const JCoordinate height, const VAlign vAlign) const |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
virtual void | Receive (JBroadcaster *sender, const Message &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
![]() | |
std::ostream & | GetOutputStream () |
void | PSSaveGraphicsState () |
void | PSRestoreGraphicsState () |
JPoint | ConvertToPS (const JCoordinate x, const JCoordinate y) const |
JPoint | ConvertToPS (const JPoint &pt) const |
void | PSConvertToRGB (const JColorID color, JSize *red, JSize *green, JSize *blue) const |
Additional Inherited Members | |
![]() | |
enum struct | HAlign { kLeft , kCenter , kRight } |
enum struct | VAlign { kTop , kCenter , kBottom } |
![]() | |
static const JCoordinate | kPixelsPerInch = 72 |
This class implements the functions required to draw to an Encapsulated Postscript file.
JXEPSPrinter::JXEPSPrinter | ( | JXDisplay * | display | ) |
|
override |
bool JXEPSPrinter::ConfirmUserPrintSetup | ( | ) |
Displays a dialog with print setup information. Returns true if the user confirms printing.
|
protectedvirtual |
Derived class can override to create an extended dialog.
|
overrideprotectedvirtual |
Implements JEPSPrinter.
Implements JEPSPrinter.
Implements JEPSPrinter.
void JXEPSPrinter::ReadXEPSSetup | ( | std::istream & | input | ) |
Automatically calls ReadEPSSetup().
void JXEPSPrinter::WriteXEPSSetup | ( | std::ostream & | output | ) | const |
Automatically calls WriteEPSSetup().