32 for(
unsigned idx = 0; idx <
m_tbTexts.GetCount(); idx++ )
43 aFormatter->
Print(
"(title_block" );
57 for(
int ii = 0; ii < 9; ii++ )
61 aFormatter->
Print(
"(comment %d %s)",
67 aFormatter->
Print(
")" );
76 aVars->push_back( wxT(
"ISSUE_DATE" ) );
77 aVars->push_back( wxT(
"CURRENT_DATE" ) );
78 aVars->push_back( wxT(
"CURRENT_TIME_LOCALE" ) );
79 aVars->push_back( wxT(
"CURRENT_TIME_HH_MM_SS" ) );
80 aVars->push_back( wxT(
"REVISION" ) );
81 aVars->push_back( wxT(
"TITLE" ) );
82 aVars->push_back( wxT(
"COMPANY" ) );
83 aVars->push_back( wxT(
"COMMENT1" ) );
84 aVars->push_back( wxT(
"COMMENT2" ) );
85 aVars->push_back( wxT(
"COMMENT3" ) );
86 aVars->push_back( wxT(
"COMMENT4" ) );
87 aVars->push_back( wxT(
"COMMENT5" ) );
88 aVars->push_back( wxT(
"COMMENT6" ) );
89 aVars->push_back( wxT(
"COMMENT7" ) );
90 aVars->push_back( wxT(
"COMMENT8" ) );
91 aVars->push_back( wxT(
"COMMENT9" ) );
125 bool tokenUpdated =
false;
126 wxString originalToken = *aToken;
128 if( aToken->IsSameAs( wxT(
"ISSUE_DATE" ) ) )
133 else if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
138 else if( aToken->IsSameAs( wxT(
"CURRENT_TIME_HH_MM_SS" ) ) )
143 else if( aToken->IsSameAs( wxT(
"CURRENT_TIME_LOCALE" ) ) )
148 else if( aToken->IsSameAs( wxT(
"REVISION" ) ) )
153 else if( aToken->IsSameAs( wxT(
"TITLE" ) ) )
158 else if( aToken->IsSameAs( wxT(
"COMPANY" ) ) )
163 else if( aToken->Left( aToken->Len() - 1 ).IsSameAs( wxT(
"COMMENT" ) ) )
165 wxChar c = aToken->Last();
185 if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
191 if( *aToken == wxT(
"${" ) + originalToken + wxT(
"}" ) )
Container for project specific data.
static wxDateTime CurrentTime()
const wxString & GetCompany() const
static wxString GetCurrentTimeLocale()
bool TextVarResolver(wxString *aToken, const PROJECT *aProject, RESOLUTION_CONTEXT aContext) const
const wxString & GetRevision() const
static wxString GetCurrentTimeHHMMSS()
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, RESOLUTION_CONTEXT aContext)
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.