git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34417
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
extern wxHashTable TexReferences;
extern wxHashTable TexReferences;
extern void DecToHex(int, wxChar *);
void GenerateHTMLIndexFile(wxChar *fname);
extern void DecToHex(int, wxChar *);
void GenerateHTMLIndexFile(wxChar *fname);
if (s)
{
TexOutput(_T(" BACKGROUND=\""));
if (s)
{
TexOutput(_T(" BACKGROUND=\""));
if ( combineSubSections && !subsectionStarted )
{
fflush(Sections);
if ( combineSubSections && !subsectionStarted )
{
fflush(Sections);
// Read old .con file in at this point
wxChar buf[256];
wxStrcpy(buf, CurrentSectionFile);
// Read old .con file in at this point
wxChar buf[256];
wxStrcpy(buf, CurrentSectionFile);
TexOutput(_T("\n<TABLE>\n"));
else {
TexOutput(_T("\n</TABLE>\n"));
TexOutput(_T("\n<TABLE>\n"));
else {
TexOutput(_T("\n</TABLE>\n"));
TwoColWidthA = -1;
TwoColWidthB = -1;
}
TwoColWidthA = -1;
TwoColWidthB = -1;
}
TraverseChildrenFromChunk(helpRefText);
if (!ignoreBadRefs)
TexOutput(_T(" (REF NOT FOUND)"));
TraverseChildrenFromChunk(helpRefText);
if (!ignoreBadRefs)
TexOutput(_T(" (REF NOT FOUND)"));
- wxString errBuf;
- errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
- OnInform((wxChar *)errBuf.c_str());
+
+ // for launching twice do not warn in preparation pass
+ if ((passNumber == 1 && !runTwice) ||
+ (passNumber == 2 && runTwice))
+ {
+ wxString errBuf;
+ errBuf.Printf(_T("Warning: unresolved reference '%s'"), refName);
+ OnInform((wxChar *)errBuf.c_str());
+ }
}
}
else TexOutput(_T("??"));
}
}
else TexOutput(_T("??"));
TexOutput(_T("<img src=\""));
TexOutput(ConvertCase(wxFileNameFromPath(inlineFilename)));
TexOutput(_T("\""));
TexOutput(_T("<img src=\""));
TexOutput(ConvertCase(wxFileNameFromPath(inlineFilename)));
TexOutput(_T("\""));
TexOutput(_T("></A>"));
}
else
TexOutput(_T("></A>"));
}
else
TexOutput(_T("<img src=\""));
TexOutput(ConvertCase(wxFileNameFromPath(inlineFilename)));
TexOutput(_T("\""));
TexOutput(_T("<img src=\""));
TexOutput(ConvertCase(wxFileNameFromPath(inlineFilename)));
TexOutput(_T("\""));
TexOutput(_T(">"));
delete[] inlineFilename;
}
TexOutput(_T(">"));
delete[] inlineFilename;
}
wxSnprintf(buf, sizeof(buf), _T("\n<TD VALIGN=TOP WIDTH=%d>\n"),TwoColWidthB);
TexOutput(buf);
}
wxSnprintf(buf, sizeof(buf), _T("\n<TD VALIGN=TOP WIDTH=%d>\n"),TwoColWidthB);
TexOutput(buf);
}
{
TexOutput(_T("\n<TD VALIGN=TOP>\n"));
}
{
TexOutput(_T("\n<TD VALIGN=TOP>\n"));
}