61 m_WSunits2Iu( 1000.0 ),
62 m_DefaultLineWidth( 0.0 ),
64 m_DefaultTextThickness( 0.0 ),
100#define MILS_TO_MM (25.4/1000)
129 m_list.push_back( aItem );
135 auto newEnd = std::remove(
m_list.begin(),
m_list.end(), aItem );
142 if( aIdx <
m_list.size() )
153 if( fullFileName.IsEmpty() )
156 wxFileName fn = fullFileName;
158 if( fn.IsAbsolute() )
162 if( !aProjectPath.IsEmpty() )
164 fn.MakeAbsolute( aProjectPath );
166 if( wxFileExists( fn.GetFullPath() ) )
167 return fn.GetFullPath();
173 if( !
name.IsEmpty() )
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
Drawing sheet structure type definitions.
Handle the graphic items list to draw/plot the frame and title block.
std::vector< DS_DATA_ITEM * > m_list
void SetupDrawEnvironment(const PAGE_INFO &aPageInfo, double aMilsToIU)
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
DS_DATA_ITEM * GetItem(unsigned aIdx) const
void Append(DS_DATA_ITEM *aItem)
void ClearList()
Erase the list of items.
void Remove(DS_DATA_ITEM *aItem)
static void SetAltInstance(DS_DATA_MODEL *aLayout=nullptr)
Set an alternate instance of DS_DATA_MODEL.
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
SEARCH_STACK & KifaceSearch()
Only for DSO specific 'non-library' files.
Describe the page size and margins of a paper page on which to eventually print or plot.
const VECTOR2D & GetSizeMils() const
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
#define TB_DEFAULT_TEXTSIZE
static DS_DATA_MODEL * wksAltInstance
static DS_DATA_MODEL wksTheInstance