KiCad PCB EDA Suite
|
Public Member Functions | |
void | Format (DS_DATA_MODEL *aSheet) const |
void | Format (DS_DATA_MODEL *aModel, std::vector< DS_DATA_ITEM * > &aItemsList) const |
void | Format (DS_DATA_MODEL *aModel, DS_DATA_ITEM *aItem, int aNestLevel) const |
Protected Member Functions | |
DS_DATA_MODEL_IO () | |
virtual | ~DS_DATA_MODEL_IO () |
Protected Attributes | |
OUTPUTFORMATTER * | m_out |
Private Member Functions | |
void | format (DS_DATA_ITEM_TEXT *aItem, int aNestLevel) const |
void | format (DS_DATA_MODEL *aModel, DS_DATA_ITEM *aItem, int aNestLevel) const |
void | format (DS_DATA_ITEM_POLYGONS *aItem, int aNestLevel) const |
void | format (DS_DATA_ITEM_BITMAP *aItem, int aNestLevel) const |
void | formatCoordinate (const char *aToken, POINT_COORD &aCoord) const |
void | formatRepeatParameters (DS_DATA_ITEM *aItem) const |
void | formatOptions (DS_DATA_ITEM *aItem) const |
Definition at line 53 of file ds_data_model_io.cpp.
|
inlineprotected |
Definition at line 62 of file ds_data_model_io.cpp.
References m_out.
|
inlineprotectedvirtual |
Definition at line 63 of file ds_data_model_io.cpp.
|
private |
Definition at line 402 of file ds_data_model_io.cpp.
References formatCoordinate(), FormatDouble2Str(), formatOptions(), formatRepeatParameters(), BITMAP_BASE::GetImageDataBuffer(), BITMAP_BASE::GetOriginalImageData(), BITMAP_BASE::GetScale(), DS_DATA_ITEM_BITMAP::m_ImageBitmap, DS_DATA_ITEM::m_Info, DS_DATA_ITEM::m_Name, m_out, DS_DATA_ITEM::m_Pos, MIME_BASE64_LENGTH, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), and TO_UTF8.
|
private |
Definition at line 351 of file ds_data_model_io.cpp.
References EDA_ANGLE::AsDegrees(), formatCoordinate(), FormatDouble2Str(), formatOptions(), formatRepeatParameters(), DS_DATA_ITEM_POLYGONS::GetPolyCount(), DS_DATA_ITEM_POLYGONS::GetPolyIndexEnd(), DS_DATA_ITEM_POLYGONS::GetPolyIndexStart(), EDA_ANGLE::IsZero(), DS_DATA_ITEM_POLYGONS::m_Corners, DS_DATA_ITEM::m_Info, DS_DATA_ITEM::m_LineWidth, DS_DATA_ITEM::m_Name, DS_DATA_ITEM_POLYGONS::m_Orient, m_out, DS_DATA_ITEM::m_Pos, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 237 of file ds_data_model_io.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, formatCoordinate(), FormatDouble2Str(), formatOptions(), formatRepeatParameters(), KIGFX::COLOR4D::g, KIFONT::FONT::GetName(), getTokenName(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, KiROUND(), DS_DATA_ITEM_TEXT::m_Bold, DS_DATA_ITEM_TEXT::m_BoundingBoxSize, DS_DATA_ITEM_TEXT::m_Font, DS_DATA_ITEM_TEXT::m_Hjustify, DS_DATA_ITEM::m_Info, DS_DATA_ITEM_TEXT::m_Italic, DS_DATA_ITEM::m_LineWidth, DS_DATA_ITEM::m_Name, DS_DATA_ITEM_TEXT::m_Orient, m_out, DS_DATA_ITEM::m_Pos, DS_DATA_ITEM_TEXT::m_TextBase, DS_DATA_ITEM_TEXT::m_TextColor, DS_DATA_ITEM_TEXT::m_TextSize, DS_DATA_ITEM_TEXT::m_Vjustify, KIFONT::FONT::NameAsToken(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), KIGFX::COLOR4D::r, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Format().
void DS_DATA_MODEL_IO::Format | ( | DS_DATA_MODEL * | aModel, |
DS_DATA_ITEM * | aItem, | ||
int | aNestLevel | ||
) | const |
Definition at line 174 of file ds_data_model_io.cpp.
References DS_DATA_ITEM::DS_BITMAP, DS_DATA_ITEM::DS_POLYPOLYGON, DS_DATA_ITEM::DS_RECT, DS_DATA_ITEM::DS_SEGMENT, DS_DATA_ITEM::DS_TEXT, format(), and DS_DATA_ITEM::GetType().
|
private |
Definition at line 326 of file ds_data_model_io.cpp.
References DS_DATA_ITEM::DS_RECT, formatCoordinate(), FormatDouble2Str(), formatOptions(), formatRepeatParameters(), getTokenName(), DS_DATA_ITEM::GetType(), DS_DATA_MODEL::m_DefaultLineWidth, DS_DATA_ITEM::m_End, DS_DATA_ITEM::m_Info, DS_DATA_ITEM::m_LineWidth, DS_DATA_ITEM::m_Name, m_out, DS_DATA_ITEM::m_Pos, OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().
void DS_DATA_MODEL_IO::Format | ( | DS_DATA_MODEL * | aModel, |
std::vector< DS_DATA_ITEM * > & | aItemsList | ||
) | const |
Definition at line 160 of file ds_data_model_io.cpp.
References Format(), GetMajorMinorVersion(), m_out, OUTPUTFORMATTER::Print(), and SEXPR_WORKSHEET_FILE_VERSION.
void DS_DATA_MODEL_IO::Format | ( | DS_DATA_MODEL * | aSheet | ) | const |
Definition at line 201 of file ds_data_model_io.cpp.
References Format(), FormatDouble2Str(), DS_DATA_MODEL::GetBottomMargin(), DS_DATA_MODEL::GetCount(), DS_DATA_MODEL::GetItem(), DS_DATA_MODEL::GetLeftMargin(), GetMajorMinorVersion(), DS_DATA_MODEL::GetRightMargin(), DS_DATA_MODEL::GetTopMargin(), DS_DATA_MODEL::m_DefaultLineWidth, DS_DATA_MODEL::m_DefaultTextSize, DS_DATA_MODEL::m_DefaultTextThickness, m_out, OUTPUTFORMATTER::Print(), SEXPR_WORKSHEET_FILE_VERSION, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by Format(), DS_DATA_MODEL::Save(), and DS_DATA_MODEL::SaveInString().
|
private |
Definition at line 445 of file ds_data_model_io.cpp.
References FormatDouble2Str(), LB_CORNER, LT_CORNER, POINT_COORD::m_Anchor, m_out, POINT_COORD::m_Pos, OUTPUTFORMATTER::Print(), RB_CORNER, RT_CORNER, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by format().
|
private |
Definition at line 481 of file ds_data_model_io.cpp.
References FIRST_PAGE_ONLY, DS_DATA_ITEM::GetPage1Option(), m_out, OUTPUTFORMATTER::Print(), and SUBSEQUENT_PAGES.
Referenced by format().
|
private |
Definition at line 463 of file ds_data_model_io.cpp.
References DS_DATA_ITEM::DS_TEXT, FormatDouble2Str(), DS_DATA_ITEM::GetType(), DS_DATA_ITEM::m_IncrementLabel, DS_DATA_ITEM::m_IncrementVector, m_out, DS_DATA_ITEM::m_RepeatCount, OUTPUTFORMATTER::Print(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by format().
|
protected |
Definition at line 75 of file ds_data_model_io.cpp.
Referenced by DS_DATA_MODEL_FILEIO::DS_DATA_MODEL_FILEIO(), DS_DATA_MODEL_IO(), DS_DATA_MODEL_STRINGIO::DS_DATA_MODEL_STRINGIO(), format(), Format(), formatCoordinate(), formatOptions(), and formatRepeatParameters().