25#ifndef  DS_DATA_MODEL_H 
   26#define  DS_DATA_MODEL_H 
  100    void Save( 
const wxString& aFullFileName );
 
  112    void SaveInString( std::vector<DS_DATA_ITEM*>& aItemsList, wxString* aOutputString );
 
  155    bool LoadDrawingSheet( 
const wxString& aFullFileName, wxString* aMsg, 
bool aAppend = 
false );
 
  165    void SetPageLayout( 
const char* aPageLayout, 
bool aAppend = 
false,
 
  166                        const wxString& aSource = wxT( 
"Sexpr_string" )  );
 
  171    static const wxString 
ResolvePath( 
const wxString& aPath, 
const wxString& aProjectPath );
 
 
Drawing sheet structure type definitions.
 
Handle the graphic items list to draw/plot the frame and title block.
 
bool LoadDrawingSheet(const wxString &aFullFileName, wxString *aMsg, bool aAppend=false)
Populate the list with a custom layout or the default layout if no custom layout is available.
 
void SetBottomMargin(double aMargin)
 
std::vector< DS_DATA_ITEM * > m_list
 
void SetupDrawEnvironment(const PAGE_INFO &aPageInfo, double aMilsToIU)
 
VECTOR2D m_DefaultTextSize
 
static DS_DATA_MODEL & GetTheInstance()
Return the instance of DS_DATA_MODEL used in the application.
 
void SetRightMargin(double aMargin)
 
unsigned GetCount() const
 
double m_DefaultLineWidth
 
DS_DATA_ITEM * GetItem(unsigned aIdx) const
 
static wxString DefaultLayout()
Return a string containing the empty layout shape.
 
static wxString EmptyLayout()
Return a string containing the empty layout shape.
 
void SetLeftMargin(double aMargin)
 
double m_DefaultTextThickness
 
void Append(DS_DATA_ITEM *aItem)
 
void SaveInString(wxString *aOutputString)
Save the description in a buffer.
 
void AllowVoidList(bool Allow)
In KiCad applications, a drawing sheet is needed So if the list is empty, a default drawing sheet is ...
 
void ClearList()
Erase the list of items.
 
void Remove(DS_DATA_ITEM *aItem)
 
int GetFileFormatVersionAtLoad()
 
void SetTopMargin(double aMargin)
 
std::vector< DS_DATA_ITEM * > & GetItems()
 
void SetFileFormatVersionAtLoad(int aVersion)
 
void SetPageLayout(const char *aPageLayout, bool aAppend=false, const wxString &aSource=wxT("Sexpr_string"))
Populate the list from a S expr description stored in a string.
 
static void SetAltInstance(DS_DATA_MODEL *aLayout=nullptr)
Set an alternate instance of DS_DATA_MODEL.
 
void Save(const wxString &aFullFileName)
Save the description in a file.
 
static const wxString ResolvePath(const wxString &aPath, const wxString &aProjectPath)
Resolve a path which might be project-relative or contain env variable references.
 
int m_fileFormatVersionAtLoad
 
Describe the page size and margins of a paper page on which to eventually print or plot.
 
VECTOR2< double > VECTOR2D