MFC Grid manual

CPrintSettings Class Reference

Print settings. More...

#include <Dapfor/GUI/PrintSettings.h>

List of all members.


Public Member Functions

 CPrintSettings ()
 Constructor.
 CPrintSettings (const CPrintSettings &settings)
 Copy constructor.
 ~CPrintSettings ()
 Destructor.
CPrintSettingsoperator= (const CPrintSettings &settings)
 Operator =.
Set- methods
void SetPrintHeader (bool enable)
 Enables grid header printing.
void SetRepeatHeader (bool enable)
 Enables grid header printing on every page.
void SetPrintFixedRows (bool enable)
 Enables printing of the grid's fixed context.
void SetPrintScrollableRows (bool enable)
 Enables printing of the grid's scrollable context.
void SetZoomFactor (double zoom)
 Sets a new zoom factor.
void SetTopMargin (int margin)
 Sets a new margin in millemeters from the top of a page.
void SetBottomMargin (int margin)
 Sets a new margin in millemeters from the bottom of a page.
void SetLeftMargin (int margin)
 Sets a new margin in millemeters from the left of a page.
void SetRightMargin (int margin)
 Sets a new margin in millemeters from the right of a page.
Get- methods
bool GetPrintHeader () const
 Gets the value indicating whether the a grid's header can be printed.
bool GetRepeatHeader () const
 Indicates whether grid's header can be repeated on every page.
bool GetPrintFixedRows () const
 Indicates whether the grid can print its fixed content.
bool GetPrintScrollableRows () const
 Indicates whether the grid can print its scrollable content.
double GetZoomFactor () const
 Gets a zoom factor.
int GetTopMargin () const
 Gets a margin in millemeters from a top of the page.
int GetBottomMargin () const
 Gets a margin in millemeters from a bottom of the page.
int GetLeftMargin () const
 Gets a margin in millemeters from a left of the page.
int GetRightMargin () const
 Gets a margin in millemeters from a right of the page.

Detailed Description

Print settings.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CPrintSettings ( const CPrintSettings settings  ) 

Copy constructor.

Parameters:
[in] settings Settings to be copied


Member Function Documentation

void SetPrintHeader ( bool  enable  ) 

Enables grid header printing.

Parameters:
[in] enable True if the header can be printed. Otherwise - false.

void SetRepeatHeader ( bool  enable  ) 

Enables grid header printing on every page.

Parameters:
[in] enable True if the header can be repeated on every page. Otherwise - false.

void SetPrintFixedRows ( bool  enable  ) 

Enables printing of the grid's fixed context.

Parameters:
[in] enable True if the grid can print its fixed content. Otherwise - false.

void SetPrintScrollableRows ( bool  enable  ) 

Enables printing of the grid's scrollable context.

Parameters:
[in] enable True if the grid can print its scrollable content. Otherwise - false.

void SetZoomFactor ( double  zoom  ) 

Sets a new zoom factor.

Parameters:
[in] zoom New zoom factor

void SetTopMargin ( int  margin  ) 

Sets a new margin in millemeters from the top of a page.

Parameters:
[in] margin New margin in millemeters from the top of a page

void SetBottomMargin ( int  margin  ) 

Sets a new margin in millemeters from the bottom of a page.

Parameters:
[in] margin New margin in millemeters from the bottom of a page

void SetLeftMargin ( int  margin  ) 

Sets a new margin in millemeters from the left of a page.

Parameters:
[in] margin New margin in millemeters from the left of a page

void SetRightMargin ( int  margin  ) 

Sets a new margin in millemeters from the right of a page.

Parameters:
[in] margin New margin in millemeters from the right of a page

bool GetPrintHeader (  )  const

Gets the value indicating whether the a grid's header can be printed.

Returns:
True if the header can be printed. Otherwise - false.

bool GetRepeatHeader (  )  const

Indicates whether grid's header can be repeated on every page.

Returns:
True if the header can be repeated on every page. Otherwise - false.

bool GetPrintFixedRows (  )  const

Indicates whether the grid can print its fixed content.

Returns:
True if the grid can print its fixed content. Otherwise - false.

bool GetPrintScrollableRows (  )  const

Indicates whether the grid can print its scrollable content.

Returns:
True if the grid can print its scrollable content. Otherwise - false.

double GetZoomFactor (  )  const

Gets a zoom factor.

Returns:
Current zoom factor

int GetTopMargin (  )  const

Gets a margin in millemeters from a top of the page.

Returns:
Current margin in millemeters from the top of a page

int GetBottomMargin (  )  const

Gets a margin in millemeters from a bottom of the page.

Returns:
Current margin in millemeters from the bottom of a page

int GetLeftMargin (  )  const

Gets a margin in millemeters from a left of the page.

Returns:
Current margin in millemeters from the left of a page

int GetRightMargin (  )  const

Gets a margin in millemeters from a right of the page.

Returns:
Current margin in millemeters from the right of a page

CPrintSettings & operator= ( const CPrintSettings settings  ) 

Operator =.

Parameters:
[in] settings Settings to be copied
Returns:
Reference to 'this' settings