2009-11-23 20:18:47 +00:00
|
|
|
/***************/
|
|
|
|
/* worksheet.h */
|
|
|
|
/***************/
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
// For page and paper size, values are in 1/1000 inch
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
#ifndef WORKSHEET_H_
|
|
|
|
#define WORKSHEET_H_
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2013-06-05 12:03:16 +00:00
|
|
|
#include <colors.h> // EDA_COLOR_T definition
|
|
|
|
|
|
|
|
// Forward declarations:
|
2013-05-22 08:45:25 +00:00
|
|
|
class EDA_DRAW_PANEL;
|
2013-06-29 09:52:22 +00:00
|
|
|
class EDA_RECT;
|
2013-05-22 08:45:25 +00:00
|
|
|
class TITLE_BLOCK;
|
|
|
|
class PAGE_INFO;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function DrawPageLayout is a core function to draw the page layout with
|
|
|
|
* the frame and the basic inscriptions.
|
|
|
|
* @param aDC The device context.
|
2013-06-29 09:52:22 +00:00
|
|
|
* @param aClipBox = the clipping rect, or NULL if no clipping.
|
2013-05-25 09:01:44 +00:00
|
|
|
* @param aPageInfo for margins and page size (in mils).
|
2013-05-22 08:45:25 +00:00
|
|
|
* @param aFullSheetName The sheetpath (full sheet name), for basic inscriptions.
|
|
|
|
* @param aFileName The file name, for basic inscriptions.
|
|
|
|
* @param aTitleBlock The sheet title block, for basic inscriptions.
|
|
|
|
* @param aSheetCount The number of sheets (for basic inscriptions).
|
|
|
|
* @param aSheetNumber The sheet number (for basic inscriptions).
|
|
|
|
* @param aPenWidth the pen size The line width for drawing.
|
|
|
|
* @param aScalar the scale factor to convert from mils to internal units.
|
2013-06-29 09:52:22 +00:00
|
|
|
* @param aColor The color for drawing.
|
|
|
|
* @param aAltColor The color for items which need to be "hightlighted".
|
2013-05-22 08:45:25 +00:00
|
|
|
*
|
|
|
|
* Parameters used in aPageInfo
|
|
|
|
* - the size of the page layout.
|
|
|
|
* - the LTmargin The left top margin of the page layout.
|
|
|
|
* - the RBmargin The right bottom margin of the page layout.
|
|
|
|
*/
|
2013-06-29 09:52:22 +00:00
|
|
|
void DrawPageLayout( wxDC* aDC, EDA_RECT* aClipBox,
|
2013-05-22 08:45:25 +00:00
|
|
|
const PAGE_INFO& aPageInfo,
|
|
|
|
const wxString &aFullSheetName,
|
|
|
|
const wxString& aFileName,
|
|
|
|
TITLE_BLOCK& aTitleBlock,
|
|
|
|
int aSheetCount, int aSheetNumber,
|
|
|
|
int aPenWidth, double aScalar,
|
2013-06-29 09:52:22 +00:00
|
|
|
EDA_COLOR_T aColor, EDA_COLOR_T aAltColor );
|
2013-05-22 08:45:25 +00:00
|
|
|
|
2013-06-05 14:24:03 +00:00
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
#endif // WORKSHEET_H_
|