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 );
144 while( idx <
m_list.size() )
146 if(
m_list[idx] == aItem )
159 if( aIdx <
m_list.size() )
170 if( fullFileName.IsEmpty() )
173 wxFileName fn = fullFileName;
175 if( fn.IsAbsolute() )
179 if( !aProjectPath.IsEmpty() )
181 fn.MakeAbsolute( aProjectPath );
183 if( wxFileExists( fn.GetFullPath() ) )
184 return fn.GetFullPath();
190 if( !
name.IsEmpty() )
void ClearList()
Erase the list of items.
std::vector< DS_DATA_ITEM * > m_list
Handle the graphic items list to draw/plot the frame and title block.
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
static DS_DATA_MODEL wksTheInstance
#define TB_DEFAULT_TEXTSIZE
const wxString ExpandEnvVarSubstitutions(const wxString &aString, PROJECT *aProject)
Replace any environment variable & text variable references with their values.
int m_fileFormatVersionAtLoad
SEARCH_STACK & KifaceSearch()
Only for DSO specific 'non-library' files.
int GetItemIndex(DS_DATA_ITEM *aItem) const
static const wxString ResolvePath(const wxString &aPath, const wxString &aProjectPath)
Resolve a path which might be project-relative or contain env variable references.
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
Describe the page size and margins of a paper page on which to eventually print or plot.
static void SetAltInstance(DS_DATA_MODEL *aLayout=nullptr)
Set an alternate instance of DS_DATA_MODEL.
const wxSize & GetSizeMils() const
DS_DATA_ITEM * GetItem(unsigned aIdx) const
Drawing sheet structure type definitions.
void SetupDrawEnvironment(const PAGE_INFO &aPageInfo, double aMilsToIU)
void Remove(DS_DATA_ITEM *aItem)
void Append(DS_DATA_ITEM *aItem)
static DS_DATA_MODEL * wksAltInstance