|
JX Application Framework
|
#include <JPTPrinter.h>
Public Member Functions | |
| JPTPrinter () | |
| ~JPTPrinter () override | |
| virtual void | Print (const JString &text)=0 |
| void | ReadPTSetup (std::istream &input) |
| void | WritePTSetup (std::ostream &output) const |
| JSize | GetCopyCount () const |
| void | SetCopyCount (const JSize count) |
| JIndex | GetFirstPageToPrint () const |
| void | SetFirstPageToPrint (const JIndex index) |
| JIndex | GetLastPageToPrint () const |
| void | SetLastPageToPrint (const JIndex index) |
| bool | WillPrintAllPages () const |
| void | PrintAllPages () |
| bool | WillPrintReverseOrder () const |
| void | ShouldPrintReverseOrder (const bool reverse) |
| bool | WillPrintLineNumbers () const |
| void | ShouldPrintLineNumbers (const bool print) |
| JSize | GetPageWidth () const |
| void | SetPageWidth (const JSize width) |
| JSize | GetPageHeight () const |
| void | SetPageHeight (const JSize height) |
| JSize | GetTabWidth () const |
| void | SetTabWidth (const JSize width) |
Public Member Functions inherited from JPrinter | |
| JPrinter () | |
| ~JPrinter () override | |
Public Member Functions inherited from JBroadcaster | |
| 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) |
Protected Member Functions | |
| bool | Print (const JString &text, std::ostream &output) |
| virtual JSize | GetHeaderLineCount () const |
| virtual JSize | GetFooterLineCount () const |
| virtual void | PrintHeader (std::ostream &output, const JIndex pageIndex) |
| virtual void | PrintFooter (std::ostream &output, const JIndex pageIndex) |
Protected Member Functions inherited from JBroadcaster | |
| 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) |
This class implements the functions required to print plain text.
| JPTPrinter::JPTPrinter | ( | ) |
|
override |
|
inline |
|
inline |
|
protectedvirtual |
|
protectedvirtual |
Derived classes can override these functions if they want to print a header or a footer. The default is to do nothing.
|
inline |
|
inline |
|
inline |
The page width is measured in characters, while the page height is measured in lines.
|
inline |
The tab width is measured in characters.
|
pure virtual |
Implemented in JXPTPrinter.
|
inline |
|
protectedvirtual |
|
protectedvirtual |
| void JPTPrinter::ReadPTSetup | ( | std::istream & | input | ) |
|
inline |
|
inline |
|
inline |
| void JPTPrinter::SetPageHeight | ( | const JSize | height | ) |
| void JPTPrinter::SetPageWidth | ( | const JSize | width | ) |
The page width is measured in characters, while the page height is measured in lines.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void JPTPrinter::WritePTSetup | ( | std::ostream & | output | ) | const |