31 for(
unsigned idx = 0; idx <
m_tbTexts.GetCount(); idx++ )
42 aFormatter->
Print(
"(title_block" );
56 for(
int ii = 0; ii < 9; ii++ )
60 aFormatter->
Print(
"(comment %d %s)",
66 aFormatter->
Print(
")" );
75 aVars->push_back( wxT(
"ISSUE_DATE" ) );
76 aVars->push_back( wxT(
"CURRENT_DATE" ) );
77 aVars->push_back( wxT(
"CURRENT_TIME_LOCALE" ) );
78 aVars->push_back( wxT(
"CURRENT_TIME_HH_MM_SS" ) );
79 aVars->push_back( wxT(
"REVISION" ) );
80 aVars->push_back( wxT(
"TITLE" ) );
81 aVars->push_back( wxT(
"COMPANY" ) );
82 aVars->push_back( wxT(
"COMMENT1" ) );
83 aVars->push_back( wxT(
"COMMENT2" ) );
84 aVars->push_back( wxT(
"COMMENT3" ) );
85 aVars->push_back( wxT(
"COMMENT4" ) );
86 aVars->push_back( wxT(
"COMMENT5" ) );
87 aVars->push_back( wxT(
"COMMENT6" ) );
88 aVars->push_back( wxT(
"COMMENT7" ) );
89 aVars->push_back( wxT(
"COMMENT8" ) );
90 aVars->push_back( wxT(
"COMMENT9" ) );
103 return wxDateTime::Now().FormatISODate();
111 return wxDateTime::Now().Format( wxT(
"%Hh%Mm%Ss" ) );
118 return wxDateTime::Now().FormatTime();
124 bool tokenUpdated =
false;
125 wxString originalToken = *aToken;
127 if( aToken->IsSameAs( wxT(
"ISSUE_DATE" ) ) )
132 else if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
137 else if( aToken->IsSameAs( wxT(
"CURRENT_TIME_HH_MM_SS" ) ) )
142 else if( aToken->IsSameAs( wxT(
"CURRENT_TIME_LOCALE" ) ) )
147 else if( aToken->IsSameAs( wxT(
"REVISION" ) ) )
152 else if( aToken->IsSameAs( wxT(
"TITLE" ) ) )
157 else if( aToken->IsSameAs( wxT(
"COMPANY" ) ) )
162 else if( aToken->Left( aToken->Len() - 1 ).IsSameAs( wxT(
"COMMENT" ) ) )
164 wxChar c = aToken->Last();
184 if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
190 if( *aToken == wxT(
"${" ) + originalToken + wxT(
"}" ) )
Container for project specific data.
const wxString & GetCompany() const
static wxString GetCurrentTimeLocale()
const wxString & GetRevision() const
bool TextVarResolver(wxString *aToken, const PROJECT *aProject, int aFlags=0) 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, int aFlags)
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.