35 for(
unsigned idx = 0; idx <
m_tbTexts.GetCount(); idx++ )
46 aFormatter->
Print(
"(title_block" );
60 for(
int ii = 0; ii < 9; ii++ )
64 aFormatter->
Print(
"(comment %d %s)",
70 aFormatter->
Print(
")" );
79 aVars->push_back( wxT(
"ISSUE_DATE" ) );
80 aVars->push_back( wxT(
"CURRENT_DATE" ) );
81 aVars->push_back( wxT(
"REVISION" ) );
82 aVars->push_back( wxT(
"TITLE" ) );
83 aVars->push_back( wxT(
"COMPANY" ) );
84 aVars->push_back( wxT(
"COMMENT1" ) );
85 aVars->push_back( wxT(
"COMMENT2" ) );
86 aVars->push_back( wxT(
"COMMENT3" ) );
87 aVars->push_back( wxT(
"COMMENT4" ) );
88 aVars->push_back( wxT(
"COMMENT5" ) );
89 aVars->push_back( wxT(
"COMMENT6" ) );
90 aVars->push_back( wxT(
"COMMENT7" ) );
91 aVars->push_back( wxT(
"COMMENT8" ) );
92 aVars->push_back( wxT(
"COMMENT9" ) );
105 return wxDateTime::Now().FormatISODate();
111 bool tokenUpdated =
false;
112 wxString originalToken = *aToken;
114 if( aToken->IsSameAs( wxT(
"ISSUE_DATE" ) ) )
119 else if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
124 else if( aToken->IsSameAs( wxT(
"REVISION" ) ) )
129 else if( aToken->IsSameAs( wxT(
"TITLE" ) ) )
134 else if( aToken->IsSameAs( wxT(
"COMPANY" ) ) )
139 else if( aToken->Left( aToken->Len() - 1 ).IsSameAs( wxT(
"COMMENT" ) ) )
141 wxChar c = aToken->Last();
161 if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
167 if( *aToken == wxT(
"${" ) + originalToken + wxT(
"}" ) )
Container for project specific data.
const wxString & GetCompany() const
const wxString & GetRevision() const
bool TextVarResolver(wxString *aToken, const PROJECT *aProject, int aFlags=0) const
const wxString & GetDate() const
const wxString & GetComment(int aIdx) const
const wxString & GetTitle() const
static wxString GetCurrentDate()
virtual void Format(OUTPUTFORMATTER *aFormatter) const
Output the object to aFormatter in s-expression form.
static void GetContextualTextVars(wxArrayString *aVars)
wxString ExpandTextVars(const wxString &aSource, const PROJECT *aProject, int aFlags)
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.