Public Attributes
m_bDrawPageBreak | A Boolean indicating whether or not draw page break. |
m_nPageBreakLineWidth | Width of the page break line. |
m_clrCustomBreakLine | Color for custom break lines. |
m_clrDefaultBreakLine | Color for internal break lines. |
m_clrLabel | Color for the page label text. |
m_bFitToPages | A Boolean indicating the page break mode. |
m_nColPages | Number of columns the grid should break into. |
m_nRowPages | Number of rows the grid should break into. |
m_pView | The view class this plugin plugged into. |
Public Member Function
Plugin | Call this function to plug this class into the view. |
CreatePageBreak | Create the page break lines position in term of row-column index of grid. |
UpdatePageBreak | Update the page break line position in term of row-column index of grid. |
DrawPageBreak | Actually draw the page break lines. |
CalcFinalPosition | Calculate the page break lines position in term of client coordinate of the view. |
DoDraw | Draw the page break lines depending on the page break mode. External class should call this function instead of DrawPageBreak to draw the page break lines. |
SetPageBreakMode | Toggle the page break mode. |
CalcPageSize | Calculate the maximum logical page size when user wants to fit the grid into customer page division. |
SetPageGrid | Set the page break mode and page division configuration. |
DoPrepareDC | Scale the drawing DC according to logical page size and page break mode. |
DoBeginPrinting | Calculate the maximum logical page size and prepare the drawing DC. |