summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f705f97)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44880
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
label.Trim(true); label.Trim(false);
wxString typeName = label;
label.MakeLower();
label.Trim(true); label.Trim(false);
wxString typeName = label;
label.MakeLower();
- TexRef *texRef = FindReference((wxChar*)label.c_str());
+ TexRef *texRef = FindReference(label);
if (texRef && texRef->refFile && wxStrcmp(texRef->refFile, _T("??")) != 0) {
int a = typeDecl.Find(typeName);
if (texRef && texRef->refFile && wxStrcmp(texRef->refFile, _T("??")) != 0) {
int a = typeDecl.Find(typeName);
{
wxString errBuf;
errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
{
wxString errBuf;
errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
- OnInform((wxChar *)errBuf.c_str());
if (f != _T(""))
{
// The default HTML file to go to is THIS file (so a no-op)
if (f != _T(""))
{
// The default HTML file to go to is THIS file (so a no-op)
- SHGToMap((wxChar *)f.c_str(), currentFileName);
+ SHGToMap(f, currentFileName);
}
wxChar *mapName = GetArgData();
}
wxChar *mapName = GetArgData();
// Convert Windows .SHG file to HTML map file
// Convert Windows .SHG file to HTML map file
-bool SHGToMap(wxChar *filename, wxChar *defaultFile)
+bool SHGToMap(const wxChar *filename, const wxChar *defaultFile)
{
// Test the SHG parser
HotSpot *hotspots = NULL;
{
// Test the SHG parser
HotSpot *hotspots = NULL;
extern int ParseSHG( const wxChar* fileName, HotSpot **hotspots);
// Converts Windows .SHG file to HTML map file
extern int ParseSHG( const wxChar* fileName, HotSpot **hotspots);
// Converts Windows .SHG file to HTML map file
-extern bool SHGToMap(wxChar *filename, wxChar *defaultFile);
+extern bool SHGToMap(const wxChar *filename, const wxChar *defaultFile);
if(tok.HasMoreTokens())
{
wxString token = tok.GetNextToken();
if(tok.HasMoreTokens())
{
wxString token = tok.GetNextToken();
- imageWidth = (int)(20*ParseUnitArgument((wxChar*)token.c_str()));
+ imageWidth = (int)(20*ParseUnitArgument(token));
if(tok.HasMoreTokens())
{
wxString token = tok.GetNextToken();
if(tok.HasMoreTokens())
{
wxString token = tok.GetNextToken();
- imageHeight = (int)(20*ParseUnitArgument((wxChar*)token.c_str()));
+ imageHeight = (int)(20*ParseUnitArgument(token));
case FORBID_WARN:
{
informBuf.Printf(_T("Warning: it is recommended that command %s is not used."), def->name);
case FORBID_WARN:
{
informBuf.Printf(_T("Warning: it is recommended that command %s is not used."), def->name);
- OnInform((const wxChar *)informBuf.c_str());
break;
}
case FORBID_ABSOLUTELY:
{
informBuf.Printf(_T("Error: command %s cannot be used and will lead to errors."), def->name);
break;
}
case FORBID_ABSOLUTELY:
{
informBuf.Printf(_T("Error: command %s cannot be used and will lead to errors."), def->name);
- OnInform((const wxChar *)informBuf.c_str());
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(), MAX_LINE_BUFFER_SIZE);
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(), MAX_LINE_BUFFER_SIZE);
- OnError((wxChar *)errBuf.c_str());
{
wxString errBuf;
errBuf.Printf(_T("An extra right Curly brace ('}') was detected at line %lu inside file %s"), LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
{
wxString errBuf;
errBuf.Printf(_T("An extra right Curly brace ('}') was detected at line %lu inside file %s"), LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
- OnError((wxChar *)errBuf.c_str());
// Reduce the count of right Curly braces, so the mismatched count
// isn't reported on every line that has a '}' after the first mismatch
// Reduce the count of right Curly braces, so the mismatched count
// isn't reported on every line that has a '}' after the first mismatch
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
- OnError((wxChar *)errBuf.c_str());
return false;
}
wxStrcat(buf, _T("\\par"));
return false;
}
wxStrcat(buf, _T("\\par"));
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
- OnError((wxChar *)errBuf.c_str());
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
- OnError((wxChar *)errBuf.c_str());
return false;
}
buf[bufIndex++]='\\';
return false;
}
buf[bufIndex++]='\\';
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
- OnError((wxChar *)errBuf.c_str());
return false;
}
buf[bufIndex++]='\\';
return false;
}
buf[bufIndex++]='\\';
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
wxString errBuf;
errBuf.Printf(_T("Line %lu of file %s is too long. Lines can be no longer than %lu characters. Truncated."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str(),MAX_LINE_BUFFER_SIZE);
- OnError((wxChar *)errBuf.c_str());
return false;
}
// If the current character read in is a '_', we need to check
return false;
}
// If the current character read in is a '_', we need to check
// wxString errBuf;
// errBuf.Printf(_T("An underscore ('_') was detected at line %lu inside file %s that should NOT have a '\\' before it."),
// LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
// wxString errBuf;
// errBuf.Printf(_T("An underscore ('_') was detected at line %lu inside file %s that should NOT have a '\\' before it."),
// LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
-// OnError((wxChar *)errBuf.c_str());
wxString errBuf;
errBuf.Printf(_T("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
wxString errBuf;
errBuf.Printf(_T("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
- OnError((wxChar *)errBuf.c_str());
}
else if ((buf[bufIndex-1] != '\\') && (buf[0] != '%') && // If it is a comment line, then no warnings
(wxStrncmp(buf, _T("\\input"), 6))) // do not report filenames that have underscores in them
}
else if ((buf[bufIndex-1] != '\\') && (buf[0] != '%') && // If it is a comment line, then no warnings
(wxStrncmp(buf, _T("\\input"), 6))) // do not report filenames that have underscores in them
wxString errBuf;
errBuf.Printf(_T("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
wxString errBuf;
errBuf.Printf(_T("An underscore ('_') was detected at line %lu inside file %s that may need a '\\' before it."),
LineNumbers[CurrentInputIndex], (const wxChar*) currentFileName.c_str());
- OnError((wxChar *)errBuf.c_str());
wxString errBuf;
errBuf.Printf(_T("Curly braces do not match inside file %s\n%lu opens, %lu closes"),
(const wxChar*) currentFileName.c_str(),leftCurly,rightCurly);
wxString errBuf;
errBuf.Printf(_T("Curly braces do not match inside file %s\n%lu opens, %lu closes"),
(const wxChar*) currentFileName.c_str(),leftCurly,rightCurly);
- OnError((wxChar *)errBuf.c_str());
}
leftCurly = 0;
rightCurly = 0;
}
leftCurly = 0;
rightCurly = 0;
{
wxString errBuf;
errBuf.Printf(_T("Could not find file: %s"),fileName);
{
wxString errBuf;
errBuf.Printf(_T("Could not find file: %s"),fileName);
- OnError((wxChar *)errBuf.c_str());
}
else
{
wxString informStr;
informStr.Printf(_T("Processing: %s"),actualFile.c_str());
}
else
{
wxString informStr;
informStr.Printf(_T("Processing: %s"),actualFile.c_str());
- OnInform((wxChar *)informStr.c_str());
CurrentInputIndex ++;
Inputs[CurrentInputIndex] = wxFopen(actualFile, _T("r"));
CurrentInputIndex ++;
Inputs[CurrentInputIndex] = wxFopen(actualFile, _T("r"));
fileNameStr.Replace(_T("\\"), _T(""));
// Ignore some types of input files (e.g. macro definition files)
fileNameStr.Replace(_T("\\"), _T(""));
// Ignore some types of input files (e.g. macro definition files)
- wxChar *fileOnly = wxFileNameFromPath((wxChar*) (const wxChar*) fileNameStr);
+ wxString fileOnly = wxFileNameFromPath(fileNameStr);
currentFileName = fileOnly;
if (IgnorableInputFiles.Member(fileOnly))
return read_a_line(buf);
currentFileName = fileOnly;
if (IgnorableInputFiles.Member(fileOnly))
return read_a_line(buf);
{
wxString errBuf;
errBuf.Printf(_T("Could not find file: %s"),fileName);
{
wxString errBuf;
errBuf.Printf(_T("Could not find file: %s"),fileName);
- OnError((wxChar *)errBuf.c_str());
wxString informStr;
informStr.Printf(_T("Processing: %s"),actualFile.c_str());
wxString informStr;
informStr.Printf(_T("Processing: %s"),actualFile.c_str());
- OnInform((wxChar *)informStr.c_str());
CurrentInputIndex ++;
Inputs[CurrentInputIndex] = wxFopen(actualFile, _T("r"));
CurrentInputIndex ++;
Inputs[CurrentInputIndex] = wxFopen(actualFile, _T("r"));
wxString errBuf;
errBuf.Printf(_T("Could not open include file %s"), (const wxChar*) actualFile);
CurrentInputIndex --;
wxString errBuf;
errBuf.Printf(_T("Could not open include file %s"), (const wxChar*) actualFile);
CurrentInputIndex --;
- OnError((wxChar *)errBuf.c_str());
}
}
bool succ = read_a_line(buf);
}
}
bool succ = read_a_line(buf);
LineNumbers[CurrentInputIndex],
currentFileName.c_str());
}
LineNumbers[CurrentInputIndex],
currentFileName.c_str());
}
- OnError((wxChar *)errBuf.c_str());
wxString errBuf;
errBuf.Printf(_T("Curly braces do not match inside file %s\n%lu opens, %lu closes"),
(const wxChar*) currentFileName.c_str(),leftCurly,rightCurly);
wxString errBuf;
errBuf.Printf(_T("Curly braces do not match inside file %s\n%lu opens, %lu closes"),
(const wxChar*) currentFileName.c_str(),leftCurly,rightCurly);
- OnError((wxChar *)errBuf.c_str());
errBuf.Printf(_T("Could not find macro: %s at line %d, file %s"),
macroBuf, (int)(LineNumbers[CurrentInputIndex]-1), FileNames[CurrentInputIndex]);
errBuf.Printf(_T("Could not find macro: %s at line %d, file %s"),
macroBuf, (int)(LineNumbers[CurrentInputIndex]-1), FileNames[CurrentInputIndex]);
- OnError((wxChar *)errBuf.c_str());
if (wxStrcmp(macroBuf,_T("\\end{document}")) == 0)
{
if (wxStrcmp(macroBuf,_T("\\end{document}")) == 0)
{
tmpBuffer = tmpBuffer.Mid(0,tmpBuffer.length()-4);
}
errBuf.Printf(_T("Missing macro argument in the line:\n\t%s\n"),tmpBuffer.c_str());
tmpBuffer = tmpBuffer.Mid(0,tmpBuffer.length()-4);
}
errBuf.Printf(_T("Missing macro argument in the line:\n\t%s\n"),tmpBuffer.c_str());
- OnError((wxChar *)errBuf.c_str());
{
wxString informBuf;
informBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
{
wxString informBuf;
informBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
- OnInform((wxChar *)informBuf.c_str());
}
}
else TexOutput(_T("??"), true);
}
}
else TexOutput(_T("??"), true);
{
wxString informBuf;
informBuf.Printf(_T("Warning: unresolved citation %s."), citeKey);
{
wxString informBuf;
informBuf.Printf(_T("Warning: unresolved citation %s."), citeKey);
- OnInform((wxChar *)informBuf.c_str());
}
}
citeKey = ParseMultifieldString(citeKeys, &pos);
}
}
citeKey = ParseMultifieldString(citeKeys, &pos);
{
wxString errBuf;
errBuf.Printf(_T(".bib file %s not found or malformed"), (const wxChar*) actualFile);
{
wxString errBuf;
errBuf.Printf(_T(".bib file %s not found or malformed"), (const wxChar*) actualFile);
- OnError((wxChar *)errBuf.c_str());
}
}
else
{
wxString errBuf;
errBuf.Printf(_T(".bib file %s not found"), fileBuf);
}
}
else
{
wxString errBuf;
errBuf.Printf(_T(".bib file %s not found"), fileBuf);
- OnError((wxChar *)errBuf.c_str());
}
bibFile = ParseMultifieldString(allFiles, &pos);
}
}
bibFile = ParseMultifieldString(allFiles, &pos);
}
bool DefaultOnArgument(int macroId, int arg_no, bool start);
// Called on error
bool DefaultOnArgument(int macroId, int arg_no, bool start);
// Called on error
-void OnError(const wxChar *msg);
+void OnError(const wxString& msg);
// Called for information
// Called for information
-void OnInform(const wxChar *msg);
+void OnInform(const wxString& msg);
// Special yield wrapper
void Tex2RTFYield(bool force = false);
// Special yield wrapper
void Tex2RTFYield(bool force = false);
void ResetTopicCounter(void);
// Parse unit eg. 14, 12pt, 34cm and return value in points.
void ResetTopicCounter(void);
// Parse unit eg. 14, 12pt, 34cm and return value in points.
-int ParseUnitArgument(wxChar *unitArg);
+int ParseUnitArgument(const wxChar *unitArg);
// Set small, large, normal etc. point sizes for reference size
void SetFontSizes(int pointSize);
// Set small, large, normal etc. point sizes for reference size
void SetFontSizes(int pointSize);
extern wxList BibList;
extern wxStringList CitationList;
extern wxList BibList;
extern wxStringList CitationList;
-bool ReadBib(wxChar *filename);
+bool ReadBib(const wxChar *filename);
void OutputBib(void);
void ResolveBibReferences(void);
void OutputBib(void);
void ResolveBibReferences(void);
-void AddCitation(wxChar *citeKey);
-TexRef *FindReference(wxChar *key);
+void AddCitation(const wxChar *citeKey);
+TexRef *FindReference(const wxChar *key);
/*
* Ability to customize, or at least suppress unknown macro errors
/*
* Ability to customize, or at least suppress unknown macro errors
{
wxString buf;
buf.Printf(_T("Invalid switch %s.\n"), argv[i]);
{
wxString buf;
buf.Printf(_T("Invalid switch %s.\n"), argv[i]);
- OnError((wxChar *)buf.c_str());
#ifdef NO_GUI
ShowOptions();
exit(1);
#ifdef NO_GUI
ShowOptions();
exit(1);
#endif // wxUSE_STATUSBAR
wxString errBuf;
errBuf.Printf(_T("\nErrors encountered during this pass: %lu\n"), errorCount);
#endif // wxUSE_STATUSBAR
wxString errBuf;
errBuf.Printf(_T("\nErrors encountered during this pass: %lu\n"), errorCount);
- OnInform((wxChar *)errBuf.c_str());
wxString str = wxFileNameFromPath(InputFile);
wxString buf;
buf.Printf(_T("Tex2RTF [%s]"), str.c_str());
wxString str = wxFileNameFromPath(InputFile);
wxString buf;
buf.Printf(_T("Tex2RTF [%s]"), str.c_str());
- frame->SetTitle((wxChar *)buf.c_str());
OutputFile = wxEmptyString;
}
}
OutputFile = wxEmptyString;
}
}
{
wxString buf;
buf.Printf(_T("Working, pass %d...Click CLOSE to abort"), passNumber);
{
wxString buf;
buf.Printf(_T("Working, pass %d...Click CLOSE to abort"), passNumber);
- frame->SetStatusText((wxChar *)buf.c_str());
+ frame->SetStatusText(buf);
}
#endif
OkToClose = false;
}
#endif
OkToClose = false;
#ifndef NO_GUI
wxLongLong elapsed = wxGetLocalTimeMillis() - localTime;
buf.Printf(_T("Finished PASS #%d in %ld seconds.\n"), passNumber, (long)(elapsed.GetLo()/1000.0));
#ifndef NO_GUI
wxLongLong elapsed = wxGetLocalTimeMillis() - localTime;
buf.Printf(_T("Finished PASS #%d in %ld seconds.\n"), passNumber, (long)(elapsed.GetLo()/1000.0));
- OnInform((wxChar *)buf.c_str());
if (errorCount)
{
buf.Printf(_T("Errors encountered during this pass: %lu\n"), errorCount);
if (errorCount)
{
buf.Printf(_T("Errors encountered during this pass: %lu\n"), errorCount);
- OnInform((wxChar *)buf.c_str());
}
#if wxUSE_STATUSBAR
if (isInteractive)
{
buf.Printf(_T("Done, %d %s."), passNumber, (passNumber > 1) ? _T("passes") : _T("pass"));
}
#if wxUSE_STATUSBAR
if (isInteractive)
{
buf.Printf(_T("Done, %d %s."), passNumber, (passNumber > 1) ? _T("passes") : _T("pass"));
- frame->SetStatusText((wxChar *)buf.c_str());
+ frame->SetStatusText(buf);
}
#endif // wxUSE_STATUSBAR
#else
buf.Printf(_T("Done, %d %s."), passNumber, (passNumber > 1) ? _T("passes") : _T("pass"));
}
#endif // wxUSE_STATUSBAR
#else
buf.Printf(_T("Done, %d %s."), passNumber, (passNumber > 1) ? _T("passes") : _T("pass"));
- OnInform((wxChar *)buf.c_str());
if (errorCount)
{
buf.Printf(_T("Errors encountered during this pass: %lu\n"), errorCount);
if (errorCount)
{
buf.Printf(_T("Errors encountered during this pass: %lu\n"), errorCount);
- OnInform((wxChar *)buf.c_str());
-void OnError(const wxChar *msg)
+void OnError(const wxString& msg)
- wxString msg_string = msg;
errorCount++;
#ifdef NO_GUI
errorCount++;
#ifdef NO_GUI
- wxSTD cerr << "Error: " << msg_string.mb_str() << "\n";
+ wxSTD cerr << "Error: " << msg.mb_str() << "\n";
wxSTD cerr.flush();
#else
if (isInteractive && frame)
wxSTD cerr.flush();
#else
if (isInteractive && frame)
else
{
#if defined(__UNIX__)
else
{
#if defined(__UNIX__)
- wxSTD cerr << "Error: " << msg_string.mb_str() << "\n";
+ wxSTD cerr << "Error: " << msg.mb_str() << "\n";
wxSTD cerr.flush();
#elif defined(__WXMSW__)
wxLogError(msg);
wxSTD cerr.flush();
#elif defined(__WXMSW__)
wxLogError(msg);
-void OnInform(const wxChar *msg)
+void OnInform(const wxString& msg)
- wxString msg_string = msg;
- wxSTD cout << msg_string.mb_str() << "\n";
+ wxSTD cout << msg.mb_str() << "\n";
wxSTD cout.flush();
#else
if (isInteractive && frame)
wxSTD cout.flush();
#else
if (isInteractive && frame)
else
{
#if defined(__UNIX__)
else
{
#if defined(__UNIX__)
- wxSTD cout << msg_string.mb_str() << "\n";
+ wxSTD cout << msg.mb_str() << "\n";
wxSTD cout.flush();
#elif defined(__WXMSW__)
wxLogInfo(msg);
wxSTD cout.flush();
#elif defined(__WXMSW__)
wxLogInfo(msg);
-void StartSimulateArgument(wxChar *data)
+void StartSimulateArgument(const wxChar *data)
{
wxStrcpy(currentArgData, data);
haveArgData = true;
{
wxStrcpy(currentArgData, data);
haveArgData = true;
-int ParseUnitArgument(wxChar *unitArg)
+int ParseUnitArgument(const wxChar *unitArg_)
+ wxWxCharBuffer unitBuf(unitArg_);
+ wxChar *unitArg = unitBuf.data();
+
float conversionFactor = 1.0;
float unitValue = 0.0;
int len = wxStrlen(unitArg);
float conversionFactor = 1.0;
float unitValue = 0.0;
int len = wxStrlen(unitArg);
{
while(!line.empty() && (line[0] == _T(' ') || line[0] == _T('\t') || line[0] == (wxChar)EOF))
{
{
while(!line.empty() && (line[0] == _T(' ') || line[0] == _T('\t') || line[0] == (wxChar)EOF))
{
BibLine ++;
line = line.substr(1);
}
BibLine ++;
line = line.substr(1);
}
// If in quotes, read white space too. If not,
// stop at white space or comment.
while (!line.empty() && line[0] != _T('"') &&
// If in quotes, read white space too. If not,
// stop at white space or comment.
while (!line.empty() && line[0] != _T('"') &&
- (inQuotes || ((line[0] != _T(' ')) && (line[0] != 9) &&
+ (inQuotes || ((line[0] != _T(' ')) && (line[0] != '\t') &&
(line[0] != _T(';')) && (line[0] != _T('%')) && (line[0] != _T('#')))))
{
val << line[0];
(line[0] != _T(';')) && (line[0] != _T('%')) && (line[0] != _T('#')))))
{
val << line[0];
-bool ReadBib(wxChar *filename)
+bool ReadBib(const wxChar *filename)
{
if (!wxFileExists(filename))
return false;
{
if (!wxFileExists(filename))
return false;
}
// Remember we need to resolve this citation
}
// Remember we need to resolve this citation
-void AddCitation(wxChar *citeKey)
+void AddCitation(const wxChar *citeKey)
{
if (!CitationList.Member(citeKey))
CitationList.Add(citeKey);
{
if (!CitationList.Member(citeKey))
CitationList.Add(citeKey);
-TexRef *FindReference(wxChar *key)
+TexRef *FindReference(const wxChar *key)
{
return (TexRef *)TexReferences.Get(key);
}
{
return (TexRef *)TexReferences.Get(key);
}