2013-05-19 19:35:49 +00:00
|
|
|
|
/**
|
2013-06-05 12:03:16 +00:00
|
|
|
|
* @file title_block_shape_gost.h
|
2013-05-19 19:35:49 +00:00
|
|
|
|
* @brief description of graphic items and texts to build a title block
|
|
|
|
|
* using GOST standard
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
2013-05-24 08:59:40 +00:00
|
|
|
|
* This file creates a lot of structures to define the shape of a title block
|
2013-05-19 19:35:49 +00:00
|
|
|
|
* and frame references
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 1992-2013 KiCad Developers, see change_log.txt for contributors.
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
|
*/
|
|
|
|
|
|
2013-05-24 08:59:40 +00:00
|
|
|
|
#include <fctsys.h>
|
|
|
|
|
#include <drawtxt.h>
|
|
|
|
|
#include <appl_wxstruct.h>
|
|
|
|
|
#include <worksheet.h>
|
|
|
|
|
#include <class_title_block.h>
|
|
|
|
|
#include <build_version.h>
|
|
|
|
|
#include <worksheet_shape_builder.h>
|
|
|
|
|
|
2013-05-22 15:08:57 +00:00
|
|
|
|
#define TEXTSIZE 100 // worksheet text size
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
2013-06-05 12:03:16 +00:00
|
|
|
|
struct Ki_WorkSheetData
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
int m_Type;
|
|
|
|
|
Ki_WorkSheetData* Pnext;
|
|
|
|
|
int m_Posx, m_Posy;
|
|
|
|
|
int m_Endx, m_Endy;
|
|
|
|
|
const wxChar* m_TextBase;
|
|
|
|
|
int m_Flags;
|
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
// Work sheet structure type definitions.
|
|
|
|
|
enum TypeKi_WorkSheetData {
|
|
|
|
|
WS_OSN,
|
|
|
|
|
WS_TONK,
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
WS_TEXTL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line1;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line2;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line3;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line4;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line5;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line6;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line7;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line8;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line9;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line10;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line11;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line12;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line13;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line14;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line15;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line16;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line17;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line18;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line19;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line20;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line21;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line22;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line23;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line24;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line25;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line26;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Line27;
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text1;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text2;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text3;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text4;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text5;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text6;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text7;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text8;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text9;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text10;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text11;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text12;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text13;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text14;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text15;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text16;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn1_Text17;
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line1;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line2;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line3;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line4;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line5;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line6;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line7;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line8;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line9;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line10;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Line11;
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text1;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text2;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text3;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text4;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text5;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text6;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text7;
|
|
|
|
|
extern Ki_WorkSheetData WS_Osn2a_Text8;
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line1;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line2;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line3;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line4;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line5;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line6;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line7;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line8;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line9;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line10;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line11;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line12;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line13;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Line14;
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text1;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text2;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text3;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text4;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text5;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text6;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopLeft_Text7;
|
|
|
|
|
|
|
|
|
|
extern Ki_WorkSheetData WS_DopTop_Line1;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopTop_Line2;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopTop_Line3;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopTop_Line4;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopTop_Line5;
|
|
|
|
|
extern Ki_WorkSheetData WS_DopTop_Line6;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
|
|
|
|
// Center - right bottom corner
|
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line2,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 185 ),Mm2mils( 55 ),
|
|
|
|
|
0, Mm2mils( 55 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line3,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 120 ),Mm2mils( 40 ),
|
|
|
|
|
0, Mm2mils( 40 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line4,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 185 ),Mm2mils( 35 ),
|
|
|
|
|
Mm2mils( 120 ),Mm2mils( 35 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line5,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 50 ), Mm2mils( 35 ),
|
|
|
|
|
0, Mm2mils( 35 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line6,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 185 ),Mm2mils( 30 ),
|
|
|
|
|
Mm2mils( 120 ),Mm2mils( 30 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line7,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 50 ), Mm2mils( 20 ),
|
|
|
|
|
0, Mm2mils( 20 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line7 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line8,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 120 ),Mm2mils( 15 ),
|
|
|
|
|
0, Mm2mils( 15 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line8 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line9,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 185 ),Mm2mils( 55 ),
|
|
|
|
|
Mm2mils( 185 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line9 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line10,
|
|
|
|
|
Mm2mils( 178 ), Mm2mils( 55 ),
|
|
|
|
|
Mm2mils( 178 ), Mm2mils( 30 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line10 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line11,
|
|
|
|
|
Mm2mils( 168 ), Mm2mils( 55 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 168 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line11 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line12,
|
|
|
|
|
Mm2mils( 145 ), Mm2mils( 55 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 145 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line12 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line13,
|
|
|
|
|
Mm2mils( 130 ), Mm2mils( 55 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 130 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line13 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line14,
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 55 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 120 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line14 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line15,
|
|
|
|
|
Mm2mils( 50 ), Mm2mils( 40 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 50 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line15 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line16,
|
|
|
|
|
Mm2mils( 35 ), Mm2mils( 40 ),
|
|
|
|
|
Mm2mils( 35 ), Mm2mils( 20 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line16 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line17,
|
|
|
|
|
Mm2mils( 30 ), Mm2mils( 20 ),
|
|
|
|
|
Mm2mils( 30 ), Mm2mils( 15 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line17 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn1_Line18,
|
|
|
|
|
Mm2mils( 18 ), Mm2mils( 40 ),
|
|
|
|
|
Mm2mils( 18 ), Mm2mils( 20 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line18 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line19,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 50 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 50 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line19 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line20,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 45 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 45 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line20 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line21,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 40 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 40 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line21 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line22,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 25 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 25 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line22 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line23,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 20 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 20 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line23 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line24,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 15 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 15 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line24 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line25,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 10 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 10 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line25 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line26,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 5 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 5 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line26 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Line27,
|
|
|
|
|
Mm2mils( 45 ), Mm2mils( 35 ),
|
|
|
|
|
Mm2mils( 45 ), Mm2mils( 20 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Line27 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn1_Text1,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 40 ), Mm2mils( 35 ),
|
|
|
|
|
Mm2mils( 40 ), Mm2mils( 20 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text2,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 181.5 ),Mm2mils( 32.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Изм." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text3,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 184 ), Mm2mils( 27.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Разраб." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text4,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 184 ),Mm2mils( 22.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Пров." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text5,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 184 ), Mm2mils( 17.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Т.контр." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text6,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 184 ), Mm2mils( 7.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Н.контр." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text7,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 184 ),Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Утв." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text7 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text8,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 173 ),Mm2mils( 32.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Лист" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text8 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text9,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 156.5 ), Mm2mils( 32.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "N докум." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text9 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text10,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 137.5 ),Mm2mils( 32.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Подп." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text10 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text11,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 125 ), Mm2mils( 32.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Дата" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text11 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text12,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 42.5 ),Mm2mils( 37.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Лит." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text12 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text13,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 26.5 ),Mm2mils( 37.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Масса" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text13 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn1_Text14,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9 ), Mm2mils( 37.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Масштаб" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text14 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text15,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 49 ), Mm2mils( 17.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Лист" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text15 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text16,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 29 ), Mm2mils( 17.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Листов" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text16 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn1_Text17,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 40 ), -Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Формат" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn1_Text17 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
NULL,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 110 ), -Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Копировал" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line2,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 15 ),
|
|
|
|
|
0, Mm2mils( 15 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line3,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 5 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 5 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line4,
|
|
|
|
|
Mm2mils( 10 ), Mm2mils( 8 ),
|
|
|
|
|
0, Mm2mils( 8 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line5,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 15 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 185 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line6,
|
|
|
|
|
Mm2mils( 178 ), Mm2mils( 15 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 178 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line7,
|
|
|
|
|
Mm2mils( 168 ), Mm2mils( 15 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 168 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line7 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line8,
|
|
|
|
|
Mm2mils( 145 ), Mm2mils( 15 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 145 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line8 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line9,
|
|
|
|
|
Mm2mils( 130 ), Mm2mils( 15 ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 130 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line9 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line10,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 120 ), Mm2mils( 15 ),
|
|
|
|
|
Mm2mils( 120 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line10 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_Osn2a_Line11,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 10 ), Mm2mils( 15 ),
|
|
|
|
|
Mm2mils( 10 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Line11 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TONK,
|
|
|
|
|
&WS_Osn2a_Text1,
|
|
|
|
|
Mm2mils( 185 ), Mm2mils( 10 ),
|
|
|
|
|
Mm2mils( 120 ), Mm2mils( 10 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn2a_Text2,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 181.5 ),Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Изм." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn2a_Text3,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 173 ), Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Лист" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn2a_Text4,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 156.5 ), Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "N докум." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn2a_Text5,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 137.5 ),Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Подп." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn2a_Text6,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 125 ), Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Дата" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_Osn2a_Text7,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 5 ), Mm2mils( 11.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Лист" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text7 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
&WS_Osn2a_Text8,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 40 ), -Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Формат" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_Osn2a_Text8 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXTL,
|
|
|
|
|
NULL,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 110 ), -Mm2mils( 2.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Копировал" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Center - left bottom corner
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line2,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 145 ),
|
|
|
|
|
0, Mm2mils( 145 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line3,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 110 ),
|
|
|
|
|
0, Mm2mils( 110 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line4,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 85 ),
|
|
|
|
|
0, Mm2mils( 85 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line5,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 60 ),
|
|
|
|
|
0, Mm2mils( 60 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line6,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 25 ),
|
|
|
|
|
0, Mm2mils( 25 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line7,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), 0,
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line7 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line8,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 145 ),
|
|
|
|
|
Mm2mils( 12 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line8 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Text1,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 7 ), Mm2mils( 145 ),
|
|
|
|
|
Mm2mils( 7 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_DopLeft_Text2,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 12.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Инв.N подл." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_DopLeft_Text3,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 42.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Подп. и дата" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_DopLeft_Text4,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 72.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Взам.инв.N" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_DopLeft_Text5,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 97.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Инв.N дубл." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_DopLeft_Line9,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 127.5 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Подп. и дата" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line9 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line10,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 7 ), Mm2mils( 287 ),
|
|
|
|
|
Mm2mils( 7 ), Mm2mils( 167 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line10 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line11,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 287 ),
|
|
|
|
|
Mm2mils( 12 ), Mm2mils( 167 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line11 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line12,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 287 ),
|
|
|
|
|
Mm2mils( 12 ), Mm2mils( 167 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line12 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line13,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 167 ),
|
|
|
|
|
0, Mm2mils( 167 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line13 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Line14,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 227 ),
|
|
|
|
|
0, Mm2mils( 227 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Line14 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopLeft_Text6,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 12 ), Mm2mils( 287 ),
|
|
|
|
|
0, Mm2mils( 287 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
&WS_DopLeft_Text7,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 197 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Справ. N" )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopLeft_Text7 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_TEXT,
|
|
|
|
|
NULL,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 9.5 ), Mm2mils( 257 ),
|
|
|
|
|
0, 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
wxT( "Перв. примен." )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Center - left top corner
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopTop_Line1 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopTop_Line2,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 70 ), 0,
|
|
|
|
|
Mm2mils( 70 ), Mm2mils( 14 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopTop_Line2 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopTop_Line3,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 70 ), Mm2mils( 14 ),
|
|
|
|
|
0, Mm2mils( 14 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopTop_Line3 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopTop_Line4,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 70 ), Mm2mils( 14 ),
|
|
|
|
|
Mm2mils( 137 ), Mm2mils( 14 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopTop_Line4 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopTop_Line5,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 84 ), Mm2mils( 7 ),
|
|
|
|
|
Mm2mils( 137 ), Mm2mils( 7 ),
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopTop_Line5 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
&WS_DopTop_Line6,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 84 ), Mm2mils( 14 ),
|
|
|
|
|
Mm2mils( 84 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-19 19:35:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Ki_WorkSheetData WS_DopTop_Line6 =
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
WS_OSN,
|
|
|
|
|
NULL,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Mm2mils( 137 ),Mm2mils( 14 ),
|
|
|
|
|
Mm2mils( 137 ), 0,
|
2013-05-24 08:59:40 +00:00
|
|
|
|
NULL
|
2013-05-21 07:18:25 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#include <worksheet_shape_builder.h>
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
void WS_DRAW_ITEM_LIST::BuildWorkSheetGraphicList(
|
2013-05-21 07:18:25 +00:00
|
|
|
|
const wxString& aPaperFormat,
|
|
|
|
|
const wxString& aFileName,
|
|
|
|
|
const wxString& aSheetPathHumanReadable,
|
|
|
|
|
const TITLE_BLOCK& aTitleBlock,
|
|
|
|
|
EDA_COLOR_T aLineColor, EDA_COLOR_T aTextColor )
|
|
|
|
|
{
|
|
|
|
|
wxPoint pos;
|
|
|
|
|
wxPoint end;
|
|
|
|
|
int refx, refy;
|
|
|
|
|
Ki_WorkSheetData* WsItem;
|
2013-05-22 15:08:57 +00:00
|
|
|
|
wxSize size( TEXTSIZE * m_milsToIu, TEXTSIZE * m_milsToIu );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
wxString msg;
|
|
|
|
|
WS_DRAW_ITEM_TEXT* gtext;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// Upper left corner
|
2013-05-22 08:45:25 +00:00
|
|
|
|
refx = m_LTmargin.x;
|
|
|
|
|
refy = m_LTmargin.y;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// lower right corner
|
|
|
|
|
int xg, yg;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
xg = m_pageSize.x - m_RBmargin.x;
|
|
|
|
|
yg = m_pageSize.y - m_RBmargin.y;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
|
|
|
|
int lnMsg, ln;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
int lnWosn = m_penSize * 2;
|
|
|
|
|
int lnWtonk = m_penSize;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
wxSize sz;
|
2013-05-22 15:08:57 +00:00
|
|
|
|
wxSize size0_8( TEXTSIZE * m_milsToIu * 0.8, TEXTSIZE * m_milsToIu * 1 );
|
|
|
|
|
wxSize size1_5( TEXTSIZE * m_milsToIu * 1.5, TEXTSIZE * m_milsToIu * 1.5 );
|
|
|
|
|
wxSize size2( TEXTSIZE * m_milsToIu * 2, TEXTSIZE * m_milsToIu * 2 );
|
|
|
|
|
wxSize size3( TEXTSIZE * m_milsToIu * 3, TEXTSIZE * m_milsToIu * 3 );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// Draw the border.
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_RECT(
|
2013-05-22 08:45:25 +00:00
|
|
|
|
wxPoint( refx * m_milsToIu, refy * m_milsToIu ),
|
|
|
|
|
wxPoint( xg * m_milsToIu, yg * m_milsToIu ),
|
2013-05-21 07:18:25 +00:00
|
|
|
|
lnWosn, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// Center - right bottom corner
|
2013-05-22 08:45:25 +00:00
|
|
|
|
refx = m_pageSize.x - m_RBmargin.x;
|
|
|
|
|
refy = m_pageSize.y - m_RBmargin.y;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// First page
|
2013-05-24 08:59:40 +00:00
|
|
|
|
if( m_sheetNumber == 1 )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
for( WsItem = &WS_Osn1_Line1; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = (refx - WsItem->m_Posx) * m_milsToIu;
|
|
|
|
|
pos.y = (refy - WsItem->m_Posy) * m_milsToIu;
|
|
|
|
|
end.x = (refx - WsItem->m_Endx) * m_milsToIu;
|
|
|
|
|
end.y = (refy - WsItem->m_Endy) * m_milsToIu;
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg = WsItem->m_TextBase;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_OSN:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWosn, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TONK:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWtonk, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TEXT:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
|
|
|
|
if( WsItem == &WS_Osn1_Text1 )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size0_8, m_penSize,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
else
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TEXTL:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
{
|
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
|
|
|
|
}
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
break;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Sheet number
|
2013-05-24 08:59:40 +00:00
|
|
|
|
if( m_sheetCount > 1 )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 36 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 17.5 ) ) * m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
msg.Empty();
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg << m_sheetNumber;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Count of sheets
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 10 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 17.5 ) ) * m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
msg.Empty();
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg << m_sheetCount;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// Company name
|
|
|
|
|
msg = aTitleBlock.GetCompany();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size1_5;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 49 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 25 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 7.5 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Title
|
|
|
|
|
msg = aTitleBlock.GetTitle();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
|
|
|
|
sz = size1_5;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
wxArrayString lines;
|
|
|
|
|
int titleWidth = 0;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
int titleHeight = (sz.y + sz.y * 0.5) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
int titleFieldWidth = Mm2mils( 69 );
|
|
|
|
|
int titleFieldHeight = Mm2mils( 24 );
|
|
|
|
|
int index = 0;
|
|
|
|
|
wxString fullMsg = msg;
|
|
|
|
|
|
2013-05-22 15:08:57 +00:00
|
|
|
|
while( 1 ) // Reduce the height of wrapped title until the fit
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
2013-05-22 15:08:57 +00:00
|
|
|
|
while( 1 ) // Wrap the title
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
2013-05-22 08:45:25 +00:00
|
|
|
|
titleWidth = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( titleWidth > titleFieldWidth )
|
|
|
|
|
{
|
|
|
|
|
index = 0;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-22 15:08:57 +00:00
|
|
|
|
while( 1 )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
msg = msg.Left( msg.Length() - 1 );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( msg.Length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
lines.Clear();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
msg = fullMsg;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz.x -= m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
index++;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
titleWidth =
|
2013-05-22 08:45:25 +00:00
|
|
|
|
ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
wxString ch = wxString( msg.Last() );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( titleWidth < titleFieldWidth && ch == wxT( " " ) )
|
|
|
|
|
{
|
|
|
|
|
// New sentence on a new line
|
|
|
|
|
int dot = msg.Index( wxT( ". " ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( dot != wxNOT_FOUND )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
index += msg.Length() - dot - 2;
|
|
|
|
|
msg = msg.Left( dot + 1 );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
lines.Add( msg );
|
|
|
|
|
msg = fullMsg.Right( index );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
msg = msg.Left( msg.Length() - 1 );
|
|
|
|
|
lines.Add( msg );
|
|
|
|
|
msg = fullMsg.Right( index );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-22 15:08:57 +00:00
|
|
|
|
}
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// New sentence on a new line
|
|
|
|
|
int dot = msg.Index( wxT( ". " ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( dot != wxNOT_FOUND )
|
|
|
|
|
{
|
|
|
|
|
lines.Add( msg.Left( dot + 1 ) );
|
|
|
|
|
lines.Add( fullMsg.Right( msg.Length() - dot - 2 ) );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
lines.Add( msg );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
2013-05-22 15:08:57 +00:00
|
|
|
|
}
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
if( titleFieldHeight < (int) ( titleHeight * lines.Count() ) )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz.y -= m_milsToIu;
|
|
|
|
|
sz.x -= m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
msg = fullMsg;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
lines.Clear();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
break;
|
2013-05-22 15:08:57 +00:00
|
|
|
|
}
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 85 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
pos.y =
|
2013-05-22 08:45:25 +00:00
|
|
|
|
( refy - Mm2mils( 27.5 ) - (titleHeight * (lines.Count() - 1) / 2) ) * m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
2013-05-21 07:18:25 +00:00
|
|
|
|
for( unsigned curLn = 0; curLn < lines.Count(); curLn++ )
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
msg = lines[curLn];
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
|
|
|
|
pos.y += titleHeight * m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Decimal number
|
|
|
|
|
msg = aTitleBlock.GetComment1();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size3;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 119 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 60 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 47.5 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Developer
|
|
|
|
|
msg = aTitleBlock.GetComment2();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 22 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 167.5 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 27.5 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Verifier
|
|
|
|
|
msg = aTitleBlock.GetComment3();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 22 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 167 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 22.5 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Approver
|
|
|
|
|
msg = aTitleBlock.GetComment4();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 22 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 167 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 2.5 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-21 07:18:25 +00:00
|
|
|
|
else // other pages
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
for( WsItem = &WS_Osn2a_Line1; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = (refx - WsItem->m_Posx) * m_milsToIu;
|
|
|
|
|
pos.y = (refy - WsItem->m_Posy) * m_milsToIu;
|
|
|
|
|
end.x = (refx - WsItem->m_Endx) * m_milsToIu;
|
|
|
|
|
end.y = (refy - WsItem->m_Endy) * m_milsToIu;
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg = WsItem->m_TextBase;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_OSN:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWosn, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TONK:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWtonk, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TEXT:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
|
|
|
|
if( WsItem == &WS_Osn2a_Text1 )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size0_8, m_penSize,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
else
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TEXTL:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
{
|
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize,
|
2013-05-21 07:18:25 +00:00
|
|
|
|
aLineColor ) );
|
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Sheet number
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 5 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 4 ) ) * m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
msg.Empty();
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg << m_sheetNumber;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// Decimal number
|
|
|
|
|
msg = aTitleBlock.GetComment1();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size3;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 109 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 65 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy - Mm2mils( 7.5 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Format
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 23 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy + Mm2mils( 2.5 ) ) * m_milsToIu;
|
2013-05-19 19:35:49 +00:00
|
|
|
|
msg.Empty();
|
|
|
|
|
msg << aPaperFormat;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetHorizJustify( GR_TEXT_HJUSTIFY_LEFT );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
|
|
|
|
|
// Center - left bottom corner
|
2013-05-22 08:45:25 +00:00
|
|
|
|
refx = m_LTmargin.x;
|
|
|
|
|
refy = m_pageSize.y - m_RBmargin.y;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
for( WsItem = &WS_DopLeft_Line1; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2013-05-24 08:59:40 +00:00
|
|
|
|
if( m_sheetNumber > 1 && WsItem == &WS_DopLeft_Line9 ) // Some fields for first page only
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = (refx - WsItem->m_Posx) * m_milsToIu;
|
|
|
|
|
pos.y = (refy - WsItem->m_Posy) * m_milsToIu;
|
|
|
|
|
end.x = (refx - WsItem->m_Endx) * m_milsToIu;
|
|
|
|
|
end.y = (refy - WsItem->m_Endy) * m_milsToIu;
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg = WsItem->m_TextBase;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_OSN:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWosn, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TEXT:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
{
|
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
size, m_penSize, aLineColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetOrientation( TEXT_ORIENT_VERT );
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
if( aPaperFormat == PAGE_INFO::A4 || m_pageSize.x > m_pageSize.y ) // A4 or Landscape
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
// Center - left top corner
|
2013-05-22 08:45:25 +00:00
|
|
|
|
refx = m_LTmargin.x;
|
|
|
|
|
refy = m_LTmargin.y;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
for( WsItem = &WS_DopTop_Line1; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2013-05-24 08:59:40 +00:00
|
|
|
|
if( m_sheetNumber > 1 && WsItem == &WS_DopTop_Line3 ) // Some fields for first page only
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = (refx + WsItem->m_Posx) * m_milsToIu;
|
|
|
|
|
pos.y = (refy + WsItem->m_Posy) * m_milsToIu;
|
|
|
|
|
end.x = (refx + WsItem->m_Endx) * m_milsToIu;
|
|
|
|
|
end.y = (refy + WsItem->m_Endy) * m_milsToIu;
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg = WsItem->m_TextBase;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_OSN:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWosn, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TONK:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWtonk, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Decimal number
|
|
|
|
|
msg = aTitleBlock.GetComment1();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size2;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 69 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx + Mm2mils( 35 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy + Mm2mils( 7 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetOrientation( 1800.0 );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-21 07:18:25 +00:00
|
|
|
|
else // Portrait
|
2013-05-19 19:35:49 +00:00
|
|
|
|
{
|
|
|
|
|
// Center - right top corner
|
|
|
|
|
// Lines are used from the upper left corner by the change of coordinates
|
2013-05-22 08:45:25 +00:00
|
|
|
|
refx = m_pageSize.x - m_RBmargin.x;
|
|
|
|
|
refy = m_LTmargin.y;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
for( WsItem = &WS_DopTop_Line1; WsItem != NULL; WsItem = WsItem->Pnext )
|
|
|
|
|
{
|
2013-05-24 08:59:40 +00:00
|
|
|
|
if( m_sheetNumber > 1 && WsItem == &WS_DopTop_Line3 ) // Some fields for first page only
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = (refx - WsItem->m_Posy) * m_milsToIu;
|
|
|
|
|
pos.y = (refy + WsItem->m_Posx) * m_milsToIu;
|
|
|
|
|
end.x = (refx - WsItem->m_Endy) * m_milsToIu;
|
|
|
|
|
end.y = (refy + WsItem->m_Endx) * m_milsToIu;
|
2013-05-24 08:59:40 +00:00
|
|
|
|
msg = WsItem->m_TextBase;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
switch( WsItem->m_Type )
|
|
|
|
|
{
|
|
|
|
|
case WS_OSN:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWosn, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WS_TONK:
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( new WS_DRAW_ITEM_LINE( pos, end,
|
|
|
|
|
lnWtonk, aLineColor ) );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Decimal number
|
|
|
|
|
msg = aTitleBlock.GetComment1();
|
2013-05-21 07:18:25 +00:00
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( !msg.IsEmpty() )
|
|
|
|
|
{
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz = size2;
|
2013-05-22 08:45:25 +00:00
|
|
|
|
lnMsg = ReturnGraphicTextWidth( msg, sz.x, false, false ) / m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
ln = Mm2mils( 69 );
|
|
|
|
|
|
2013-05-19 19:35:49 +00:00
|
|
|
|
if( lnMsg > ln )
|
2013-05-21 07:18:25 +00:00
|
|
|
|
sz.x *= float(ln) / lnMsg;
|
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
|
pos.x = ( refx - Mm2mils( 7 ) ) * m_milsToIu;
|
|
|
|
|
pos.y = ( refy + Mm2mils( 35 ) ) * m_milsToIu;
|
2013-05-21 07:18:25 +00:00
|
|
|
|
Append( gtext = new WS_DRAW_ITEM_TEXT( msg, pos,
|
2013-05-22 08:45:25 +00:00
|
|
|
|
sz, m_penSize, aTextColor ) );
|
2013-05-21 07:18:25 +00:00
|
|
|
|
gtext->SetOrientation( TEXT_ORIENT_VERT );
|
2013-05-19 19:35:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|