2009-11-23 15:16:50 +00:00
|
|
|
|
/*****************/
|
|
|
|
|
/* WORKSHEET.CPP */
|
|
|
|
|
/*****************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
|
#include <fctsys.h>
|
|
|
|
|
#include <gr_basic.h>
|
|
|
|
|
#include <common.h>
|
|
|
|
|
#include <macros.h>
|
|
|
|
|
#include <class_drawpanel.h>
|
|
|
|
|
#include <class_base_screen.h>
|
|
|
|
|
#include <drawtxt.h>
|
|
|
|
|
#include <confirm.h>
|
|
|
|
|
#include <wxstruct.h>
|
|
|
|
|
#include <appl_wxstruct.h>
|
2012-04-01 20:51:56 +00:00
|
|
|
|
#include <kicad_string.h>
|
2012-01-23 04:33:36 +00:00
|
|
|
|
#include <worksheet.h>
|
|
|
|
|
#include <class_title_block.h>
|
|
|
|
|
|
|
|
|
|
#include <build_version.h>
|
2009-02-04 15:25:03 +00:00
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
// Must be defined in main applications:
|
2009-04-05 20:49:15 +00:00
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Date =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_DATE,
|
|
|
|
|
&WS_Licence,
|
|
|
|
|
BLOCK_DATE_X, BLOCK_DATE_Y,
|
|
|
|
|
0, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Date: " ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Licence =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_KICAD_VERSION,
|
|
|
|
|
&WS_Revision,
|
|
|
|
|
BLOCK_KICAD_VERSION_X,BLOCK_KICAD_VERSION_Y,
|
|
|
|
|
0, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Revision =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_REV,
|
|
|
|
|
&WS_SizeSheet,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_X_185 - 30,STAMP_Y_30 + 90,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_REV_X, BLOCK_REV_Y,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
0, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Rev: " ), NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_SizeSheet =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SIZESHEET,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
&WS_Title,
|
|
|
|
|
BLOCK_SIZE_SHEET_X,BLOCK_SIZE_SHEET_Y,
|
|
|
|
|
0, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
&WS_IdentSheet,
|
|
|
|
|
BLOCK_SIZE_SHEET_X, BLOCK_SIZE_SHEET_Y,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Size: " ), NULL
|
|
|
|
|
};
|
2009-04-05 20:49:15 +00:00
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_IdentSheet =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_IDENTSHEET,
|
|
|
|
|
&WS_Title,
|
|
|
|
|
BLOCK_ID_SHEET_X,BLOCK_ID_SHEET_Y,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Id: " ), NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Title =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_TITLE,
|
|
|
|
|
&WS_SheetFilename,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-12-02 13:06:55 +00:00
|
|
|
|
STAMP_X_85, STAMP_Y_25 + 90,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-12-02 13:06:55 +00:00
|
|
|
|
BLOCK_TITLE_X, BLOCK_TITLE_Y,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Title: " ), NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_SheetFilename =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_FILENAME,
|
|
|
|
|
&WS_FullSheetName,
|
|
|
|
|
BLOCK_FILENAME_X, BLOCK_FILENAME_Y,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "File: " ), NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_FullSheetName =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_FULLSHEETNAME,
|
|
|
|
|
&WS_Company,
|
|
|
|
|
BLOCK_FULLSHEETNAME_X,BLOCK_FULLSHEETNAME_Y,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Sheet: " ), NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Company =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_COMPANY_NAME,
|
|
|
|
|
&WS_Comment1,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
|
|
|
|
STAMP_X_50 / 2, STAMP_Y_0 + 270,
|
|
|
|
|
0, 0,
|
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_COMMENT_X,BLOCK_COMPANY_Y,
|
|
|
|
|
0, 0,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Comment1 =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_COMMENT1,
|
|
|
|
|
&WS_Comment2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-12-02 13:06:55 +00:00
|
|
|
|
STAMP_X_120 / 2,STAMP_Y_40 + 270,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_COMMENT_X,BLOCK_COMMENT1_Y,
|
|
|
|
|
0, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Comment2 =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_COMMENT2,
|
|
|
|
|
&WS_Comment3,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-12-02 13:06:55 +00:00
|
|
|
|
STAMP_X_168 - 30, STAMP_Y_25 + 90,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_COMMENT_X,BLOCK_COMMENT2_Y,
|
|
|
|
|
0, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Comment3 =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_COMMENT3,
|
|
|
|
|
&WS_Comment4,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-12-02 13:06:55 +00:00
|
|
|
|
STAMP_X_168 - 30, STAMP_Y_20 + 90,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_COMMENT_X,BLOCK_COMMENT3_Y,
|
|
|
|
|
0, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Comment4 =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_COMMENT4,
|
|
|
|
|
&WS_MostLeftLine,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-12-02 13:06:55 +00:00
|
|
|
|
STAMP_X_168 - 30, STAMP_Y_0 + 90,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_COMMENT_X, BLOCK_COMMENT4_Y,
|
|
|
|
|
0, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
/// Left vertical segment
|
|
|
|
|
Ki_WorkSheetData WS_MostLeftLine =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_LEFT_SEGMENT,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
&WS_MostUpperLine,
|
|
|
|
|
STAMP_OX, STAMP_OY,
|
|
|
|
|
STAMP_OX, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
&WS_SeparatorLine,
|
|
|
|
|
BLOCK_OX, SIZETEXT * 16,
|
|
|
|
|
BLOCK_OX, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
/// horizontal segment between filename and comments
|
|
|
|
|
Ki_WorkSheetData WS_SeparatorLine =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_MostUpperLine,
|
|
|
|
|
BLOCK_OX, VARIABLE_BLOCK_START_POSITION,
|
|
|
|
|
0, VARIABLE_BLOCK_START_POSITION,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
/// superior horizontal segment
|
|
|
|
|
Ki_WorkSheetData WS_MostUpperLine =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_UPPER_SEGMENT,
|
|
|
|
|
&WS_Segm3,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, STAMP_OY,
|
|
|
|
|
0, STAMP_OY,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_OX, SIZETEXT * 16,
|
|
|
|
|
0, SIZETEXT * 16,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
/// horizontal segment above COMPANY NAME
|
|
|
|
|
Ki_WorkSheetData WS_Segm3 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm4,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, STAMP_Y_50,
|
|
|
|
|
STAMP_X_120,STAMP_Y_50,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_OX, SIZETEXT * 6,
|
|
|
|
|
0, SIZETEXT * 6,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
/// vertical segment of the left REV and SHEET
|
|
|
|
|
Ki_WorkSheetData WS_Segm4 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm5,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, STAMP_Y_45,
|
|
|
|
|
STAMP_X_120, STAMP_Y_45,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_REV_X + SIZETEXT,SIZETEXT * 4,
|
|
|
|
|
BLOCK_REV_X + SIZETEXT,0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm5 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm6,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, STAMP_Y_40,
|
|
|
|
|
0, STAMP_Y_40,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_OX, SIZETEXT * 2,
|
|
|
|
|
0, SIZETEXT * 2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm6 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm7,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_OX, STAMP_Y_35,
|
|
|
|
|
STAMP_X_120,STAMP_Y_35,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
BLOCK_OX, SIZETEXT * 4,
|
|
|
|
|
0, SIZETEXT * 4,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm7 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2009-05-30 16:06:01 +00:00
|
|
|
|
&WS_Segm8,
|
|
|
|
|
STAMP_X_50,STAMP_Y_35,
|
|
|
|
|
0, STAMP_Y_35,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm8 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm9,
|
|
|
|
|
STAMP_OX, STAMP_Y_30,
|
|
|
|
|
STAMP_X_120,STAMP_Y_30,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm9 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm10,
|
|
|
|
|
STAMP_OX, STAMP_Y_25,
|
|
|
|
|
STAMP_X_120,STAMP_Y_25,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm10 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm11,
|
|
|
|
|
STAMP_OX, STAMP_Y_20,
|
|
|
|
|
STAMP_X_120,STAMP_Y_20,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm11 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm12,
|
|
|
|
|
STAMP_X_50,STAMP_Y_20,
|
|
|
|
|
0, STAMP_Y_20,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm12 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm13,
|
|
|
|
|
STAMP_OX, STAMP_Y_15,
|
|
|
|
|
0, STAMP_Y_15,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm13 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm14,
|
|
|
|
|
STAMP_OX, STAMP_Y_10,
|
|
|
|
|
STAMP_X_120,STAMP_Y_10,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm14 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm15,
|
|
|
|
|
STAMP_OX, STAMP_Y_5,
|
|
|
|
|
STAMP_X_120,STAMP_Y_5,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm15 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm16,
|
|
|
|
|
STAMP_X_178,STAMP_OY,
|
|
|
|
|
STAMP_X_178,STAMP_Y_30,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm16 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm17,
|
|
|
|
|
STAMP_X_168,STAMP_OY,
|
|
|
|
|
STAMP_X_168,0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm17 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm18,
|
|
|
|
|
STAMP_X_145,STAMP_OY,
|
|
|
|
|
STAMP_X_145,0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm18 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm19,
|
|
|
|
|
STAMP_X_130,STAMP_OY,
|
|
|
|
|
STAMP_X_130,0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm19 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm20,
|
|
|
|
|
STAMP_X_120,STAMP_OY,
|
|
|
|
|
STAMP_X_120,0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm20 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm21,
|
|
|
|
|
STAMP_X_50,STAMP_Y_40,
|
|
|
|
|
STAMP_X_50,0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm21 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm22,
|
|
|
|
|
STAMP_X_45,STAMP_Y_35,
|
|
|
|
|
STAMP_X_45,STAMP_Y_20,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm22 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm23,
|
|
|
|
|
STAMP_X_40,STAMP_Y_35,
|
|
|
|
|
STAMP_X_40,STAMP_Y_20,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm23 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm24,
|
|
|
|
|
STAMP_X_35,STAMP_Y_40,
|
|
|
|
|
STAMP_X_35,STAMP_Y_20,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm24 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Segm25,
|
|
|
|
|
STAMP_X_30,STAMP_Y_20,
|
|
|
|
|
STAMP_X_30,STAMP_Y_15,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm25 =
|
2009-04-05 20:49:15 +00:00
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT,
|
|
|
|
|
&WS_Izm,
|
|
|
|
|
STAMP_X_18,STAMP_Y_40,
|
|
|
|
|
STAMP_X_18,STAMP_Y_20,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Izm =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Razr,
|
|
|
|
|
STAMP_X_185 - 30,STAMP_Y_30 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Изм." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Razr =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Prov,
|
|
|
|
|
STAMP_X_185 - 30, STAMP_Y_25 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Разраб." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Prov =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_TKon,
|
|
|
|
|
STAMP_X_185 - 30, STAMP_Y_20 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Пров." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_TKon =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_NKon,
|
|
|
|
|
STAMP_X_185 - 30, STAMP_Y_15 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Т.контр." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_NKon =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Utv,
|
|
|
|
|
STAMP_X_185 - 30, STAMP_Y_5 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Н.контр." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Utv =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_List,
|
|
|
|
|
STAMP_X_185 - 30,STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Утв." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_List =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_NDoc,
|
|
|
|
|
STAMP_X_178 - 30, STAMP_Y_30 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Лист" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_NDoc =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Podp,
|
|
|
|
|
STAMP_X_168 - 30, STAMP_Y_30 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "N докум." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Data,
|
|
|
|
|
STAMP_X_145 - 30, STAMP_Y_30 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Подп." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Data =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Art,
|
|
|
|
|
STAMP_X_130 - 30, STAMP_Y_30 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Дата" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Art =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Mass,
|
|
|
|
|
STAMP_X_50 - 30, STAMP_Y_35 + 90,
|
|
|
|
|
0, 0,
|
2010-05-14 19:31:46 +00:00
|
|
|
|
wxT( "Лит." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Mass =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_Msht,
|
|
|
|
|
STAMP_X_35 - 30, STAMP_Y_35 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Масса" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Msht =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS,
|
|
|
|
|
&WS_List1,
|
|
|
|
|
STAMP_X_18 - 30, STAMP_Y_35 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Масштаб" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_List1 =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_IDENTSHEET,
|
|
|
|
|
&WS_List2,
|
|
|
|
|
STAMP_X_50 - 30, STAMP_Y_15 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Лист " ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_List2 =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SHEETS,
|
|
|
|
|
NULL,
|
|
|
|
|
STAMP_X_30 - 30, STAMP_Y_15 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Листов " ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_CADRE_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_CADRE,
|
|
|
|
|
&WS_Segm1_D,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
STAMP_X_65, STAMP_Y_0 + 270,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
0, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm1_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_LEFT_SEGMENT_D,
|
|
|
|
|
&WS_Segm2_D,
|
|
|
|
|
STAMP_OX, STAMP_Y_15,
|
|
|
|
|
STAMP_OX, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm2_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm3_D,
|
|
|
|
|
STAMP_X_178, STAMP_Y_15,
|
|
|
|
|
STAMP_X_178, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm3_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm4_D,
|
|
|
|
|
STAMP_X_168, STAMP_Y_15,
|
|
|
|
|
STAMP_X_168, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm4_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm5_D,
|
|
|
|
|
STAMP_X_145, STAMP_Y_15,
|
|
|
|
|
STAMP_X_145, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm5_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm6_D,
|
|
|
|
|
STAMP_X_130, STAMP_Y_15,
|
|
|
|
|
STAMP_X_130, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm6_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm7_D,
|
|
|
|
|
STAMP_X_120, STAMP_Y_15,
|
|
|
|
|
STAMP_X_120, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm7_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm8_D,
|
|
|
|
|
STAMP_X_10, STAMP_Y_15,
|
|
|
|
|
STAMP_X_10, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm8_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm9_D,
|
|
|
|
|
STAMP_X_185, STAMP_Y_10,
|
|
|
|
|
STAMP_X_120, STAMP_Y_10,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm9_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm10_D,
|
|
|
|
|
STAMP_X_185, STAMP_Y_5,
|
|
|
|
|
STAMP_X_120, STAMP_Y_5,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm10_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Segm11_D,
|
|
|
|
|
STAMP_X_10, STAMP_Y_8,
|
|
|
|
|
0, STAMP_Y_8,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm11_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_D,
|
|
|
|
|
&WS_Izm_D,
|
|
|
|
|
STAMP_X_185, STAMP_Y_15,
|
|
|
|
|
0, STAMP_Y_15,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Izm_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_D,
|
|
|
|
|
&WS_List_D,
|
|
|
|
|
STAMP_X_185 - 30,STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Изм." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_List_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_D,
|
|
|
|
|
&WS_NDoc_D,
|
|
|
|
|
STAMP_X_178 - 30, STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Лист" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_NDoc_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_D,
|
|
|
|
|
&WS_Podp_D,
|
|
|
|
|
STAMP_X_168 - 30, STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "N докум." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_D,
|
|
|
|
|
&WS_Date_D,
|
|
|
|
|
STAMP_X_145 - 30, STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Подп." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Date_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_D,
|
|
|
|
|
&WS_List1_D,
|
|
|
|
|
STAMP_X_130 - 30, STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Дата" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_List1_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_D,
|
|
|
|
|
&WS_ListN_D,
|
|
|
|
|
STAMP_X_10 - 30, STAMP_Y_8 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Лист" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_ListN_D =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_IDENTSHEET_D,
|
|
|
|
|
NULL,
|
|
|
|
|
STAMP_Y_0 + 196,STAMP_Y_0 + 90,
|
|
|
|
|
0, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm1_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm2_LU,
|
|
|
|
|
STAMP_12, STAMP_145,
|
|
|
|
|
STAMP_12, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm2_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm3_LU,
|
|
|
|
|
STAMP_7, STAMP_145,
|
|
|
|
|
STAMP_7, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm3_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm4_LU,
|
|
|
|
|
STAMP_12, STAMP_145,
|
|
|
|
|
0, STAMP_145,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm4_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm5_LU,
|
|
|
|
|
STAMP_12, STAMP_110,
|
|
|
|
|
0, STAMP_110,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm5_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm6_LU,
|
|
|
|
|
STAMP_12, STAMP_85,
|
|
|
|
|
0, STAMP_85,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm6_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm7_LU,
|
|
|
|
|
STAMP_12, STAMP_60,
|
|
|
|
|
0, STAMP_60,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm7_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm8_LU,
|
|
|
|
|
STAMP_12, STAMP_25,
|
|
|
|
|
0, STAMP_25,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm8_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LU,
|
2011-02-27 10:16:54 +00:00
|
|
|
|
&WS_Segm9_LU,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
STAMP_12, 0,
|
|
|
|
|
0, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-02-27 10:16:54 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm9_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm10_LU,
|
|
|
|
|
STAMP_12, STAMP_287,
|
|
|
|
|
STAMP_12, STAMP_167,
|
|
|
|
|
NULL, NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm10_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm11_LU,
|
|
|
|
|
STAMP_7, STAMP_287,
|
|
|
|
|
STAMP_7, STAMP_167,
|
|
|
|
|
NULL, NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm11_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm12_LU,
|
|
|
|
|
STAMP_12, STAMP_287,
|
|
|
|
|
0, STAMP_287,
|
|
|
|
|
NULL, NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm12_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Segm13_LU,
|
|
|
|
|
STAMP_12, STAMP_227,
|
|
|
|
|
0, STAMP_227,
|
|
|
|
|
NULL, NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm13_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_SEGMENT_LU,
|
|
|
|
|
&WS_Podp1_LU,
|
|
|
|
|
STAMP_12, STAMP_167,
|
|
|
|
|
0, STAMP_167,
|
|
|
|
|
NULL, NULL
|
|
|
|
|
};
|
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
Ki_WorkSheetData WS_Podp1_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_LU,
|
|
|
|
|
&WS_Podp2_LU,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
STAMP_7 + 90, 0 + 492,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Инв.N подл." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp2_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_LU,
|
|
|
|
|
&WS_Podp3_LU,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
STAMP_7 + 90, STAMP_25 + 688,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Подп. и дата" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp3_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_LU,
|
|
|
|
|
&WS_Podp4_LU,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
STAMP_7 + 90, STAMP_60 + 492,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Взам.инв.N" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp4_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_LU,
|
|
|
|
|
&WS_Podp5_LU,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
STAMP_7 + 90, STAMP_85 + 492,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Инв.N дубл." ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp5_LU =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_PODPIS_LU,
|
2011-02-27 10:16:54 +00:00
|
|
|
|
&WS_Podp6_LU,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
STAMP_7 + 90, STAMP_110 + 688,
|
|
|
|
|
0, 0,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
wxT( "Подп. и дата" ),NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
2011-02-27 10:16:54 +00:00
|
|
|
|
Ki_WorkSheetData WS_Podp6_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_PODPIS_LU,
|
|
|
|
|
&WS_Podp7_LU,
|
|
|
|
|
STAMP_7 + 90, STAMP_167 + 1180,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Справ. N" ),NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Podp7_LU =
|
|
|
|
|
{
|
|
|
|
|
WS_PODPIS_LU,
|
|
|
|
|
NULL,
|
|
|
|
|
STAMP_7 + 90, STAMP_227 + 1180,
|
|
|
|
|
0, 0,
|
|
|
|
|
wxT( "Перв. примен." ),NULL
|
|
|
|
|
};
|
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
Ki_WorkSheetData WS_Segm1_LT =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LT,
|
|
|
|
|
&WS_Segm2_LT,
|
|
|
|
|
STAMP_X_0, STAMP_Y_14,
|
|
|
|
|
STAMP_X_137, STAMP_Y_14,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm2_LT =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LT,
|
|
|
|
|
&WS_Segm3_LT,
|
|
|
|
|
STAMP_X_137, STAMP_Y_14,
|
|
|
|
|
STAMP_X_137, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm3_LT =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LT,
|
|
|
|
|
&WS_Segm4_LT,
|
|
|
|
|
STAMP_X_137, STAMP_Y_7,
|
|
|
|
|
STAMP_X_84, STAMP_Y_7,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Ki_WorkSheetData WS_Segm4_LT =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LT,
|
|
|
|
|
&WS_Segm5_LT,
|
|
|
|
|
STAMP_X_84, STAMP_Y_14,
|
|
|
|
|
STAMP_X_84, 0,
|
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
|
|
|
|
Ki_WorkSheetData WS_Segm5_LT =
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_SEGMENT_LT,
|
|
|
|
|
NULL,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
STAMP_X_70, STAMP_Y_14,
|
|
|
|
|
STAMP_X_70, 0,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#else
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL,
|
|
|
|
|
BLOCK_OX - (SIZETEXT * 11),SIZETEXT * 4,
|
|
|
|
|
BLOCK_OX - (SIZETEXT * 11),SIZETEXT * 2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
#endif
|
2009-05-30 16:06:01 +00:00
|
|
|
|
NULL, NULL
|
2009-04-05 20:49:15 +00:00
|
|
|
|
};
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
2008-03-04 14:27:48 +00:00
|
|
|
|
|
2012-04-16 01:25:26 +00:00
|
|
|
|
void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* aDC, BASE_SCREEN* aScreen, int aLineWidth,
|
2012-08-29 16:59:50 +00:00
|
|
|
|
double aScalar, const wxString &aFilename )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
{
|
2011-12-14 20:03:15 +00:00
|
|
|
|
if( !m_showBorderAndTitleBlock )
|
2008-03-04 14:27:48 +00:00
|
|
|
|
return;
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
const PAGE_INFO& pageInfo = GetPageSettings();
|
|
|
|
|
wxSize pageSize = pageInfo.GetSizeMils();
|
|
|
|
|
|
2008-03-04 14:27:48 +00:00
|
|
|
|
// if not printing, draw the page limits:
|
2012-04-16 01:25:26 +00:00
|
|
|
|
if( !aScreen->m_IsPrinting && g_ShowPageLimits )
|
2008-03-04 14:27:48 +00:00
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRSetDrawMode( aDC, GR_COPY );
|
|
|
|
|
GRRect( m_canvas->GetClipBox(), aDC, 0, 0,
|
|
|
|
|
pageSize.x * aScalar, pageSize.y * aScalar, aLineWidth,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
g_DrawBgColor == WHITE ? LIGHTGRAY : DARKDARKGRAY );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
wxPoint margin_left_top( pageInfo.GetLeftMarginMils(), pageInfo.GetTopMarginMils() );
|
|
|
|
|
wxPoint margin_right_bottom( pageInfo.GetRightMarginMils(), pageInfo.GetBottomMarginMils() );
|
|
|
|
|
wxString paper = pageInfo.GetType();
|
2012-08-29 16:59:50 +00:00
|
|
|
|
wxString file = aFilename;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
TITLE_BLOCK t_block = GetTitleBlock();
|
2012-05-27 00:19:12 +00:00
|
|
|
|
int number_of_screens = aScreen->m_NumberOfScreens;
|
2012-04-16 01:25:26 +00:00
|
|
|
|
int screen_to_draw = aScreen->m_ScreenNumber;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
|
2012-04-16 01:25:26 +00:00
|
|
|
|
TraceWorkSheet( aDC, pageSize, margin_left_top, margin_right_bottom,
|
|
|
|
|
paper, file, t_block, number_of_screens, screen_to_draw,
|
|
|
|
|
aLineWidth, aScalar );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
}
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
|
|
|
|
|
void EDA_DRAW_FRAME::TraceWorkSheet( wxDC* aDC, wxSize& aSz, wxPoint& aLT, wxPoint& aRB,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxString& aType, wxString& aFlNm, TITLE_BLOCK& aTb,
|
|
|
|
|
int aNScr, int aScr, int aLnW, double aScalar,
|
|
|
|
|
EDA_COLOR_T aClr1, EDA_COLOR_T aClr2 )
|
2012-03-26 21:45:05 +00:00
|
|
|
|
{
|
|
|
|
|
wxPoint pos;
|
|
|
|
|
int refx, refy;
|
|
|
|
|
wxString Line;
|
|
|
|
|
Ki_WorkSheetData* WsItem;
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxSize size( SIZETEXT * aScalar, SIZETEXT * aScalar );
|
|
|
|
|
wxSize size_ref( SIZETEXT_REF * aScalar, SIZETEXT_REF * aScalar );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
wxString msg;
|
|
|
|
|
|
|
|
|
|
GRSetDrawMode( aDC, GR_COPY );
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
// Upper left corner
|
2012-03-26 21:45:05 +00:00
|
|
|
|
refx = aLT.x;
|
|
|
|
|
refy = aLT.y;
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
|
|
|
|
// lower right corner
|
2012-03-26 21:45:05 +00:00
|
|
|
|
int xg, yg;
|
|
|
|
|
xg = aSz.x - aRB.x;
|
|
|
|
|
yg = aSz.y - aRB.y;
|
2008-03-04 14:27:48 +00:00
|
|
|
|
|
2008-11-05 11:41:15 +00:00
|
|
|
|
#if defined(KICAD_GOST)
|
2012-03-26 21:45:05 +00:00
|
|
|
|
// Draw the border.
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRRect( m_canvas->GetClipBox(), aDC, refx * aScalar, refy * aScalar,
|
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
refx = aLT.x;
|
|
|
|
|
refy = aSz.y - aRB.y; // Lower left corner
|
2008-11-05 11:41:15 +00:00
|
|
|
|
for( WsItem = &WS_Segm1_LU; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = ( refx - WsItem->m_Posx ) * aScalar;
|
|
|
|
|
pos.y = ( refy - WsItem->m_Posy ) * aScalar;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg.Empty();
|
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
case WS_CADRE:
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
|
|
|
|
case WS_PODPIS_LU:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
msg, TEXT_ORIENT_VERT, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_BOTTOM,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
|
|
|
|
case WS_SEGMENT_LU:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
xg = aLT.x - WsItem->m_Endx;
|
|
|
|
|
yg = aSz.y - aRB.y - WsItem->m_Endy;
|
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, pos.x, pos.y,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
2008-11-05 11:41:15 +00:00
|
|
|
|
}
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
refy = aRB.y; // Left Top corner
|
2008-11-05 11:41:15 +00:00
|
|
|
|
for( WsItem = &WS_Segm1_LT; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = ( refx + WsItem->m_Posx ) * aScalar;
|
|
|
|
|
pos.y = ( refy + WsItem->m_Posy ) * aScalar;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg.Empty();
|
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
2009-05-30 16:06:01 +00:00
|
|
|
|
case WS_SEGMENT_LT:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
xg = aLT.x + WsItem->m_Endx;
|
|
|
|
|
yg = aRB.y + WsItem->m_Endy;
|
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, pos.x, pos.y,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
2008-11-05 11:41:15 +00:00
|
|
|
|
}
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxSize size2( SIZETEXT * aScalar * 2, SIZETEXT * aScalar * 2);
|
|
|
|
|
wxSize size3( SIZETEXT * aScalar * 3, SIZETEXT * aScalar * 3);
|
|
|
|
|
wxSize size1_5( SIZETEXT * aScalar * 1.5, SIZETEXT * aScalar * 1.5);
|
2011-12-22 21:57:50 +00:00
|
|
|
|
// lower right corner
|
2012-03-26 21:45:05 +00:00
|
|
|
|
refx = aSz.x - aRB.x;
|
|
|
|
|
refy = aSz.y - aRB.y;
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
if( aScr == 1 )
|
2008-11-05 11:41:15 +00:00
|
|
|
|
{
|
2009-04-05 20:49:15 +00:00
|
|
|
|
for( WsItem = &WS_Date; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = (refx - WsItem->m_Posx) * aScalar;
|
|
|
|
|
pos.y = (refy - WsItem->m_Posy) * aScalar;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg.Empty();
|
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_DATE:
|
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_REV:
|
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_KICAD_VERSION:
|
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_PODPIS:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_SIZESHEET:
|
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_IDENTSHEET:
|
2009-05-30 16:06:01 +00:00
|
|
|
|
if( WsItem->m_Legende )
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
if( aNScr > 1 )
|
|
|
|
|
msg << aScr;
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1, msg,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
TEXT_ORIENT_HORIZ, size, GR_TEXT_HJUSTIFY_LEFT,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
GR_TEXT_VJUSTIFY_CENTER, aLnW, false, false );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_SHEETS:
|
2009-05-30 16:06:01 +00:00
|
|
|
|
if( WsItem->m_Legende )
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg << aNScr;
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1, msg,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
TEXT_ORIENT_HORIZ, size, GR_TEXT_HJUSTIFY_LEFT,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
GR_TEXT_VJUSTIFY_CENTER, aLnW, false, false );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_COMPANY_NAME:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetCompany();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size1_5,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_TITLE:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetTitle();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size1_5,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_COMMENT1:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetComment1();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size3,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = (aLT.x + 1260) * aScalar;
|
|
|
|
|
pos.y = (aLT.y + 270) * aScalar;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, 1800, size2,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_COMMENT2:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetComment2();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_COMMENT3:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetComment3();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_COMMENT4:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetComment4();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_UPPER_SEGMENT:
|
|
|
|
|
case WS_LEFT_SEGMENT:
|
2009-11-23 15:16:50 +00:00
|
|
|
|
WS_MostUpperLine.m_Posy = WS_MostUpperLine.m_Endy =
|
|
|
|
|
WS_MostLeftLine.m_Posy = STAMP_OY;
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.y = ( refy - WsItem->m_Posy ) * aScalar;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_SEGMENT:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
xg = aSz.x - aRB.x - WsItem->m_Endx;
|
|
|
|
|
yg = aSz.y - aRB.y - WsItem->m_Endy;
|
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, pos.x, pos.y,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-05-30 16:06:01 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2009-04-05 20:49:15 +00:00
|
|
|
|
for( WsItem = &WS_CADRE_D; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = ( refx - WsItem->m_Posx ) * aScalar;
|
|
|
|
|
pos.y = ( refy - WsItem->m_Posy ) * aScalar;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg.Empty();
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_CADRE:
|
2011-12-22 21:57:50 +00:00
|
|
|
|
// Begin list number > 1
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg = aTb.GetComment1();
|
2009-12-02 13:06:55 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size3,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = (aLT.x + 1260) * aScalar;
|
|
|
|
|
pos.y = (aLT.y + 270) * aScalar;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, 1800, size2,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-12-02 13:06:55 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_PODPIS_D:
|
2009-05-30 16:06:01 +00:00
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_IDENTSHEET_D:
|
2009-05-30 16:06:01 +00:00
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg << aScr;
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-12-02 13:06:55 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_LEFT_SEGMENT_D:
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.y = ( refy - WsItem->m_Posy ) * aScalar;
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2009-04-05 20:49:15 +00:00
|
|
|
|
case WS_SEGMENT_D:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
xg = aSz.x - aRB.x - WsItem->m_Endx;
|
|
|
|
|
yg = aSz.y - aRB.y - WsItem->m_Endy;
|
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, pos.x, pos.y,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2009-04-05 20:49:15 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2008-11-05 11:41:15 +00:00
|
|
|
|
}
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2008-11-05 11:41:15 +00:00
|
|
|
|
#else
|
2012-03-26 21:45:05 +00:00
|
|
|
|
// Draw the border.
|
|
|
|
|
int ii, jj, ipas, gxpas, gypas;
|
|
|
|
|
for( ii = 0; ii < 2; ii++ )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRRect( m_canvas->GetClipBox(), aDC, refx * aScalar, refy * aScalar,
|
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
|
|
|
|
|
refx += GRID_REF_W; refy += GRID_REF_W;
|
|
|
|
|
xg -= GRID_REF_W; yg -= GRID_REF_W;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Upper left corner
|
|
|
|
|
refx = aLT.x;
|
|
|
|
|
refy = aLT.y;
|
|
|
|
|
|
|
|
|
|
// lower right corner
|
|
|
|
|
xg = aSz.x - aRB.x;
|
|
|
|
|
yg = aSz.y - aRB.y;
|
|
|
|
|
|
|
|
|
|
ipas = ( xg - refx ) / PAS_REF;
|
|
|
|
|
gxpas = ( xg - refx ) / ipas;
|
|
|
|
|
for( ii = refx + gxpas, jj = 1; ipas > 0; ii += gxpas, jj++, ipas-- )
|
|
|
|
|
{
|
|
|
|
|
Line.Printf( wxT( "%d" ), jj );
|
|
|
|
|
|
|
|
|
|
if( ii < xg - PAS_REF / 2 )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, ii * aScalar, refy * aScalar,
|
|
|
|
|
ii * aScalar, ( refy + GRID_REF_W ) * aScalar, aLnW, aClr1 );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
}
|
|
|
|
|
DrawGraphicText( m_canvas, aDC,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxPoint( ( ii - gxpas / 2 ) * aScalar,
|
|
|
|
|
( refy + GRID_REF_W / 2 ) * aScalar ),
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aClr1, Line, TEXT_ORIENT_HORIZ, size_ref,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
|
|
|
|
aLnW, false, false );
|
|
|
|
|
|
|
|
|
|
if( ii < xg - PAS_REF / 2 )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, ii * aScalar, yg * aScalar,
|
|
|
|
|
ii * aScalar, ( yg - GRID_REF_W ) * aScalar, aLnW, aClr1 );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
}
|
|
|
|
|
DrawGraphicText( m_canvas, aDC,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxPoint( ( ii - gxpas / 2 ) * aScalar,
|
|
|
|
|
( yg - GRID_REF_W / 2) * aScalar ),
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aClr1, Line, TEXT_ORIENT_HORIZ, size_ref,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
|
|
|
|
aLnW, false, false );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ipas = ( yg - refy ) / PAS_REF;
|
|
|
|
|
gypas = ( yg - refy ) / ipas;
|
|
|
|
|
|
|
|
|
|
for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- )
|
|
|
|
|
{
|
|
|
|
|
if( jj < 26 )
|
|
|
|
|
Line.Printf( wxT( "%c" ), jj + 'A' );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
else // I hope 52 identifiers are enough...
|
2012-03-26 21:45:05 +00:00
|
|
|
|
Line.Printf( wxT( "%c" ), 'a' + jj - 26 );
|
|
|
|
|
|
|
|
|
|
if( ii < yg - PAS_REF / 2 )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, refx * aScalar, ii * aScalar,
|
|
|
|
|
( refx + GRID_REF_W ) * aScalar, ii * aScalar, aLnW, aClr1 );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DrawGraphicText( m_canvas, aDC,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxPoint( ( refx + GRID_REF_W / 2 ) * aScalar,
|
|
|
|
|
( ii - gypas / 2 ) * aScalar ),
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aClr1, Line, TEXT_ORIENT_HORIZ, size_ref,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
|
|
|
|
aLnW, false, false );
|
|
|
|
|
|
|
|
|
|
if( ii < yg - PAS_REF / 2 )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, xg * aScalar, ii * aScalar,
|
|
|
|
|
( xg - GRID_REF_W ) * aScalar, ii * aScalar, aLnW, aClr1 );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
}
|
|
|
|
|
DrawGraphicText( m_canvas, aDC,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
wxPoint( ( xg - GRID_REF_W / 2 ) * aScalar,
|
|
|
|
|
( ii - gxpas / 2 ) * aScalar ),
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aClr1, Line, TEXT_ORIENT_HORIZ, size_ref,
|
|
|
|
|
GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
|
|
|
|
|
aLnW, false, false );
|
|
|
|
|
}
|
2011-12-22 21:57:50 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
int UpperLimit = VARIABLE_BLOCK_START_POSITION;
|
|
|
|
|
refx = aSz.x - aRB.x - GRID_REF_W;
|
|
|
|
|
refy = aSz.y - aRB.y - GRID_REF_W;
|
2008-03-04 14:27:48 +00:00
|
|
|
|
|
|
|
|
|
for( WsItem = &WS_Date; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.x = (refx - WsItem->m_Posx) * aScalar;
|
|
|
|
|
pos.y = (refy - WsItem->m_Posy) * aScalar;
|
2008-03-04 14:27:48 +00:00
|
|
|
|
msg.Empty();
|
|
|
|
|
|
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_DATE:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aTb.GetDate();
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, true );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_REV:
|
|
|
|
|
if( WsItem->m_Legende )
|
2012-03-26 21:45:05 +00:00
|
|
|
|
{
|
2008-03-04 14:27:48 +00:00
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1, msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-09-22 11:19:37 +00:00
|
|
|
|
GetPenSizeForBold( std::min( size.x, size.y ) ), false, true );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
pos.x += ReturnGraphicTextWidth( msg, size.x, false, false );
|
|
|
|
|
}
|
|
|
|
|
msg = aTb.GetRevision();
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2, msg, TEXT_ORIENT_HORIZ, size,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-09-22 11:19:37 +00:00
|
|
|
|
GetPenSizeForBold( std::min( size.x, size.y ) ), false, true );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_KICAD_VERSION:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg += g_ProductName + wxGetApp().GetAppName();
|
2008-03-04 14:27:48 +00:00
|
|
|
|
msg += wxT( " " ) + GetBuildVersion();
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_SIZESHEET:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aType;
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case WS_IDENTSHEET:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg << aScr << wxT( "/" ) << aNScr;
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_FILENAME:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
{
|
|
|
|
|
wxString fname, fext;
|
|
|
|
|
wxFileName::SplitPath( aFlNm, (wxString*) NULL, &fname, &fext );
|
2011-01-20 16:34:57 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2011-01-20 16:34:57 +00:00
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg << fname << wxT( "." ) << fext;
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
|
|
|
|
aLnW, false, false );
|
|
|
|
|
}
|
|
|
|
|
break;
|
2008-03-04 14:27:48 +00:00
|
|
|
|
|
|
|
|
|
case WS_FULLSHEETNAME:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
|
|
|
|
msg += GetScreenDesc();
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case WS_COMPANY_NAME:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aTb.GetCompany();
|
2008-03-04 14:27:48 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-09-22 11:19:37 +00:00
|
|
|
|
GetPenSizeForBold( std::min( size.x, size.y ) ),
|
2009-05-30 16:06:01 +00:00
|
|
|
|
false, true );
|
2012-09-22 11:19:37 +00:00
|
|
|
|
UpperLimit = std::max( UpperLimit, WsItem->m_Posy + SIZETEXT );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TITLE:
|
|
|
|
|
if( WsItem->m_Legende )
|
2012-03-26 21:45:05 +00:00
|
|
|
|
{
|
2008-03-04 14:27:48 +00:00
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr1, msg, TEXT_ORIENT_HORIZ, size,
|
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-09-22 11:19:37 +00:00
|
|
|
|
GetPenSizeForBold( std::min( size.x, size.y ) ), false, true );
|
2012-03-26 21:45:05 +00:00
|
|
|
|
pos.x += ReturnGraphicTextWidth( msg, size.x, false, false );
|
|
|
|
|
}
|
|
|
|
|
msg = aTb.GetTitle();
|
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2, msg, TEXT_ORIENT_HORIZ, size,
|
2009-05-30 16:06:01 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-09-22 11:19:37 +00:00
|
|
|
|
GetPenSizeForBold( std::min( size.x, size.y ) ), false, true );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_COMMENT1:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aTb.GetComment1();
|
2008-03-04 14:27:48 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2012-09-22 11:19:37 +00:00
|
|
|
|
UpperLimit = std::max( UpperLimit, WsItem->m_Posy + SIZETEXT );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_COMMENT2:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aTb.GetComment2();
|
2008-03-04 14:27:48 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2012-09-22 11:19:37 +00:00
|
|
|
|
UpperLimit = std::max( UpperLimit, WsItem->m_Posy + SIZETEXT );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_COMMENT3:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aTb.GetComment3();
|
2008-03-04 14:27:48 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2012-09-22 11:19:37 +00:00
|
|
|
|
UpperLimit = std::max( UpperLimit, WsItem->m_Posy + SIZETEXT );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_COMMENT4:
|
|
|
|
|
if( WsItem->m_Legende )
|
|
|
|
|
msg = WsItem->m_Legende;
|
2012-03-26 21:45:05 +00:00
|
|
|
|
msg += aTb.GetComment4();
|
2008-03-04 14:27:48 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2012-03-26 21:45:05 +00:00
|
|
|
|
DrawGraphicText( m_canvas, aDC, pos, aClr2,
|
2009-04-05 20:49:15 +00:00
|
|
|
|
msg, TEXT_ORIENT_HORIZ, size,
|
2009-11-23 15:16:50 +00:00
|
|
|
|
GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_VJUSTIFY_CENTER,
|
2012-03-26 21:45:05 +00:00
|
|
|
|
aLnW, false, false );
|
2012-09-22 11:19:37 +00:00
|
|
|
|
UpperLimit = std::max( UpperLimit, WsItem->m_Posy + SIZETEXT );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_UPPER_SEGMENT:
|
|
|
|
|
if( UpperLimit == 0 )
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_LEFT_SEGMENT:
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_MostUpperLine.m_Posy =
|
2008-03-04 14:27:48 +00:00
|
|
|
|
WS_MostUpperLine.m_Endy =
|
2009-05-30 16:06:01 +00:00
|
|
|
|
WS_MostLeftLine.m_Posy = UpperLimit;
|
2012-04-16 01:25:26 +00:00
|
|
|
|
pos.y = (refy - WsItem->m_Posy) * aScalar;
|
2008-03-04 14:27:48 +00:00
|
|
|
|
|
|
|
|
|
case WS_SEGMENT:
|
2012-03-26 21:45:05 +00:00
|
|
|
|
xg = aSz.x - GRID_REF_W - aRB.x - WsItem->m_Endx;
|
|
|
|
|
yg = aSz.y - GRID_REF_W - aRB.y - WsItem->m_Endy;
|
|
|
|
|
GRLine( m_canvas->GetClipBox(), aDC, pos.x, pos.y,
|
2012-04-16 01:25:26 +00:00
|
|
|
|
xg * aScalar, yg * aScalar, aLnW, aClr1 );
|
2008-03-04 14:27:48 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-05-30 16:06:01 +00:00
|
|
|
|
|
2008-11-05 11:41:15 +00:00
|
|
|
|
#endif
|
2007-06-05 12:10:51 +00:00
|
|
|
|
}
|
2008-03-04 14:27:48 +00:00
|
|
|
|
|
|
|
|
|
|
2012-09-02 12:06:47 +00:00
|
|
|
|
const wxString EDA_DRAW_FRAME::GetXYSheetReferences( const wxPoint& aPosition ) const
|
2008-07-31 15:30:57 +00:00
|
|
|
|
{
|
2011-12-22 21:57:50 +00:00
|
|
|
|
const PAGE_INFO& pageInfo = GetPageSettings();
|
2008-07-31 15:30:57 +00:00
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
int ii;
|
|
|
|
|
int xg, yg;
|
|
|
|
|
int ipas;
|
|
|
|
|
int gxpas, gypas;
|
|
|
|
|
int refx, refy;
|
|
|
|
|
wxString msg;
|
|
|
|
|
|
|
|
|
|
// Upper left corner
|
|
|
|
|
refx = pageInfo.GetLeftMarginMils();
|
|
|
|
|
refy = pageInfo.GetTopMarginMils();
|
2008-07-31 15:30:57 +00:00
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
// lower right corner
|
|
|
|
|
xg = pageInfo.GetSizeMils().x - pageInfo.GetRightMarginMils();
|
|
|
|
|
yg = pageInfo.GetSizeMils().y - pageInfo.GetBottomMarginMils();
|
2008-07-31 15:30:57 +00:00
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
// Get the Y axis identifier (A symbol A ... Z)
|
2012-04-01 20:51:56 +00:00
|
|
|
|
if( aPosition.y < refy || aPosition.y > yg ) // Outside of Y limits
|
2008-07-31 15:30:57 +00:00
|
|
|
|
msg << wxT( "?" );
|
|
|
|
|
else
|
|
|
|
|
{
|
2011-12-22 21:57:50 +00:00
|
|
|
|
ipas = ( yg - refy ) / PAS_REF; // ipas = Y count sections
|
|
|
|
|
gypas = ( yg - refy ) / ipas; // gypas = Y section size
|
2009-11-23 15:16:50 +00:00
|
|
|
|
ii = ( aPosition.y - refy ) / gypas;
|
2008-07-31 15:30:57 +00:00
|
|
|
|
msg.Printf( wxT( "%c" ), 'A' + ii );
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-22 21:57:50 +00:00
|
|
|
|
// Get the X axis identifier (A number 1 ... n)
|
2012-04-01 20:51:56 +00:00
|
|
|
|
if( aPosition.x < refx || aPosition.x > xg ) // Outside of X limits
|
2008-07-31 15:30:57 +00:00
|
|
|
|
msg << wxT( "?" );
|
|
|
|
|
else
|
|
|
|
|
{
|
2011-12-22 21:57:50 +00:00
|
|
|
|
ipas = ( xg - refx ) / PAS_REF; // ipas = X count sections
|
|
|
|
|
gxpas = ( xg - refx ) / ipas; // gxpas = X section size
|
2008-07-31 15:30:57 +00:00
|
|
|
|
|
2009-11-23 15:16:50 +00:00
|
|
|
|
ii = ( aPosition.x - refx ) / gxpas;
|
2008-07-31 15:30:57 +00:00
|
|
|
|
msg << ii + 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return msg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2011-01-21 19:30:59 +00:00
|
|
|
|
wxString EDA_DRAW_FRAME::GetScreenDesc()
|
2008-02-12 21:12:46 +00:00
|
|
|
|
{
|
2008-03-04 14:27:48 +00:00
|
|
|
|
wxString msg;
|
|
|
|
|
|
2011-02-05 02:21:11 +00:00
|
|
|
|
msg << GetScreen()->m_ScreenNumber << wxT( "/" )
|
2012-05-27 00:19:12 +00:00
|
|
|
|
<< GetScreen()->m_NumberOfScreens;
|
2008-03-04 14:27:48 +00:00
|
|
|
|
return msg;
|
2008-02-12 21:12:46 +00:00
|
|
|
|
}
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void TITLE_BLOCK::Format( OUTPUTFORMATTER* aFormatter, int aNestLevel, int aControlBits ) const
|
|
|
|
|
throw( IO_ERROR )
|
|
|
|
|
{
|
|
|
|
|
// Don't write the title block information if there is nothing to write.
|
2012-12-14 16:54:54 +00:00
|
|
|
|
if( !m_title.IsEmpty() || /* !m_date.IsEmpty() || */ !m_revision.IsEmpty()
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|| !m_company.IsEmpty() || !m_comment1.IsEmpty() || !m_comment2.IsEmpty()
|
|
|
|
|
|| !m_comment3.IsEmpty() || !m_comment4.IsEmpty() )
|
|
|
|
|
{
|
2012-12-30 15:40:05 +00:00
|
|
|
|
aFormatter->Print( aNestLevel, "(title_block \n" );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_title.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(title %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_title ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
2012-12-14 16:54:54 +00:00
|
|
|
|
/* version control users were complaining, see mailing list.
|
2012-04-01 20:51:56 +00:00
|
|
|
|
if( !m_date.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(date %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_date ).c_str() );
|
2012-12-14 16:54:54 +00:00
|
|
|
|
*/
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_revision.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(rev %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_revision ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_company.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(company %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_company ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_comment1.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(comment 1 %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_comment1 ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_comment2.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(comment 2 %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_comment2 ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_comment3.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(comment 3 %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_comment3 ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
|
|
|
|
if( !m_comment4.IsEmpty() )
|
2012-06-09 17:00:13 +00:00
|
|
|
|
aFormatter->Print( aNestLevel+1, "(comment 4 %s)\n",
|
|
|
|
|
aFormatter->Quotew( m_comment4 ).c_str() );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
|
2012-04-07 18:05:56 +00:00
|
|
|
|
aFormatter->Print( aNestLevel, ")\n\n" );
|
2012-04-01 20:51:56 +00:00
|
|
|
|
}
|
|
|
|
|
}
|