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(
"CURRENT_TIME_LOCALE" ) );
82 aVars->push_back( wxT(
"CURRENT_TIME_HH_MM_SS" ) );
83 aVars->push_back( wxT(
"REVISION" ) );
84 aVars->push_back( wxT(
"TITLE" ) );
85 aVars->push_back( wxT(
"COMPANY" ) );
86 aVars->push_back( wxT(
"COMMENT1" ) );
87 aVars->push_back( wxT(
"COMMENT2" ) );
88 aVars->push_back( wxT(
"COMMENT3" ) );
89 aVars->push_back( wxT(
"COMMENT4" ) );
90 aVars->push_back( wxT(
"COMMENT5" ) );
91 aVars->push_back( wxT(
"COMMENT6" ) );
92 aVars->push_back( wxT(
"COMMENT7" ) );
93 aVars->push_back( wxT(
"COMMENT8" ) );
94 aVars->push_back( wxT(
"COMMENT9" ) );
107 return wxDateTime::Now().FormatISODate();
115 return wxDateTime::Now().Format( wxT(
"%Hh%Mm%Ss" ) );
122 return wxDateTime::Now().FormatTime();
128 bool tokenUpdated =
false;
129 wxString originalToken = *aToken;
131 if( aToken->IsSameAs( wxT(
"ISSUE_DATE" ) ) )
136 else if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
141 else if( aToken->IsSameAs( wxT(
"CURRENT_TIME_HH_MM_SS" ) ) )
146 else if( aToken->IsSameAs( wxT(
"CURRENT_TIME_LOCALE" ) ) )
151 else if( aToken->IsSameAs( wxT(
"REVISION" ) ) )
156 else if( aToken->IsSameAs( wxT(
"TITLE" ) ) )
161 else if( aToken->IsSameAs( wxT(
"COMPANY" ) ) )
166 else if( aToken->Left( aToken->Len() - 1 ).IsSameAs( wxT(
"COMMENT" ) ) )
168 wxChar c = aToken->Last();
188 if( aToken->IsSameAs( wxT(
"CURRENT_DATE" ) ) )
194 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.