Last active
August 29, 2015 14:25
-
-
Save bjoerntx/72b273e11e73e6f322f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*---------------------------------------------------------- | |
** MultipagePrintDocument class | |
**--------------------------------------------------------*/ | |
class MultipagePrintDocument : PrintDocument | |
{ | |
/*------------------------------------------------------ | |
** Constructor | |
** description: Initializes the private data fields | |
**----------------------------------------------------*/ | |
public MultipagePrintDocument(TXTextControl.TextControl textControl, | |
PagePerSheet pagesPerSheet, | |
bool drawPageBorders) | |
{ | |
if (textControl == null) | |
throw new ArgumentNullException( | |
"An object of type TXTextControl.TextControl must be defined."); | |
m_textControl = textControl; | |
m_pagesPerSheet = pagesPerSheet; | |
m_drawPageBorders = drawPageBorders; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment