git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13449
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\func{wxMenu *}{Remove}{\param{size\_t }{pos}}
Removes the menu from the menu bar and returns the menu object - the caller is
\func{wxMenu *}{Remove}{\param{size\_t }{pos}}
Removes the menu from the menu bar and returns the menu object - the caller is
-reposnbile for deleting it. This function may be used together with
+responsible for deleting it. This function may be used together with
\helpref{wxMenuBar::Insert}{wxmenubarinsert} to change the menubar
dynamically.
\helpref{wxMenuBar::Insert}{wxmenubarinsert} to change the menubar
dynamically.
\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
-Called when the window has been resized.
+Called when the window has been resized. This is not a virtual function; you should
+provide your own non-virtual OnSize function and direct size events to it using EVT\_SIZE
+in an event table definition.
#include <wx/generic/fontdlgg.h>
#endif
#include <wx/generic/fontdlgg.h>
#endif
+#define wxUSE_DIRDLGG 1
+
#if !defined(__WXMSW__) || defined(wxUSE_DIRDLGG) && wxUSE_DIRDLGG
#if !defined(__WXMSW__) || defined(wxUSE_DIRDLGG) && wxUSE_DIRDLGG
-// New wxGenericDirCtrl
-#include "wx/dirctrl.h"
+#include "wx/generic/dirdlgg.h"
#endif
#include "dialogs.h"
#endif
#include "dialogs.h"
#include "wx/textctrl.h"
#include "wx/button.h"
#include "wx/sizer.h"
#include "wx/textctrl.h"
#include "wx/button.h"
#include "wx/sizer.h"
- #include "wx/statline.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#endif
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/msgdlg.h"
#endif
+#include "wx/statline.h"
#include "wx/generic/dirctrlg.h"
#include "wx/generic/dirdlgg.h"
#include "wx/generic/dirctrlg.h"
#include "wx/generic/dirdlgg.h"
the generation of separate HTML files below section level. This can reduce the
number of HTML files substantially. A subsection contents list is inserted before
the first subsection.}
the generation of separate HTML files below section level. This can reduce the
number of HTML files substantially. A subsection contents list is inserted before
the first subsection.}
+\twocolitem{\inioption{htmlFaceName}}{A string specifying the overall font face, such as ``"Arial, Lucida, Helvetica".}
\end{twocollist}
\section{DDE commands}\index{DDE}%
\end{twocollist}
\section{DDE commands}\index{DDE}%
- fprintf(*fd, "\n</BODY></HTML>\n");
+ fprintf(*fd, "\n</FONT></BODY></HTML>\n");
fclose(*fd);
}
fileId ++;
fclose(*fd);
}
fileId ++;
+void OutputFont(void)
+{
+ // Output <FONT FACE=...>
+ TexOutput("<FONT FACE=\"");
+ if (htmlFaceName)
+ TexOutput(htmlFaceName);
+ else
+ TexOutput("Times New Roman");
+ TexOutput("\">\n");
+}
+
// Output start of <BODY> block
void OutputBodyStart(void)
{
// Output start of <BODY> block
void OutputBodyStart(void)
{
}
// Called on start/end of macro examination
}
// Called on start/end of macro examination
if (inTabular)
{
// End cell, start cell
if (inTabular)
{
// End cell, start cell
+
+ TexOutput("</FONT></TD>");
// Start new row and cell, setting alignment for the first cell.
if (currentColumn < noColumns)
// Start new row and cell, setting alignment for the first cell.
if (currentColumn < noColumns)
else
sprintf(buf, "\n<TD ALIGN=LEFT>");
TexOutput(buf);
else
sprintf(buf, "\n<TD ALIGN=LEFT>");
TexOutput(buf);
}
else
TexOutput("&");
}
else
TexOutput("&");
else
sprintf(buf, "<TR>\n<TD ALIGN=LEFT>");
TexOutput(buf);
else
sprintf(buf, "<TR>\n<TD ALIGN=LEFT>");
TexOutput(buf);
}
else
{
// End cell and row
// Start new row and cell
}
else
{
// End cell and row
// Start new row and cell
- TexOutput("</TD>\n</TR>\n");
+ TexOutput("</FONT></TD>\n</TR>\n");
TexOutput(buf);
} else
TexOutput("\n<TR><TD VALIGN=TOP>\n");
TexOutput(buf);
} else
TexOutput("\n<TR><TD VALIGN=TOP>\n");
- TexOutput("\n</TD>\n");
+ TexOutput("\n</FONT></TD>\n");
TexOutput(buf);
} else
TexOutput("\n<TD VALIGN=TOP>\n");
TexOutput(buf);
} else
TexOutput("\n<TD VALIGN=TOP>\n");
- TexOutput("\n</TD></TR>\n");
+ TexOutput("\n</FONT></TD></TR>\n");
if (compatibilityMode)
{
TexOutput("<TR>\n<TD>");
if (compatibilityMode)
{
TexOutput("<TR>\n<TD>");
/*
for (int i = 0; i < noColumns; i++)
{
/*
for (int i = 0; i < noColumns; i++)
{
- fprintf(Chapters, "\n</BODY></HTML>\n");
+ fprintf(Chapters, "\n</FONT></BODY></HTML>\n");
fclose(Chapters);
Chapters = NULL;
}
if (Sections)
{
fclose(Chapters);
Chapters = NULL;
}
if (Sections)
{
- fprintf(Sections, "\n</BODY></HTML>\n");
+ fprintf(Sections, "\n</FONT></BODY></HTML>\n");
fclose(Sections);
Sections = NULL;
}
if (Subsections && !combineSubSections)
{
fclose(Sections);
Sections = NULL;
}
if (Subsections && !combineSubSections)
{
- fprintf(Subsections, "\n</BODY></HTML>\n");
+ fprintf(Subsections, "\n</FONT></BODY></HTML>\n");
fclose(Subsections);
Subsections = NULL;
}
if (Subsubsections && !combineSubSections)
{
fclose(Subsections);
Subsections = NULL;
}
if (Subsubsections && !combineSubSections)
{
- fprintf(Subsubsections, "\n</BODY></HTML>\n");
+ fprintf(Subsubsections, "\n</FONT></BODY></HTML>\n");
fclose(Subsubsections);
Subsubsections = NULL;
}
fclose(Subsubsections);
Subsubsections = NULL;
}
- fprintf(tmpTitle, "\n</BODY>\n");
+ fprintf(tmpTitle, "\n</FONT></BODY>\n");
bool combineSubSections = FALSE;
bool htmlWorkshopFiles = FALSE;
bool ignoreBadRefs = FALSE;
bool combineSubSections = FALSE;
bool htmlWorkshopFiles = FALSE;
bool ignoreBadRefs = FALSE;
+char *htmlFaceName = copystring("Times New Roman");
extern bool combineSubSections; // Stop splitting files below section
extern bool htmlWorkshopFiles; // generate HTML Help Workshop project files
extern bool ignoreBadRefs; // Don't insert (REF NOT FOUND)
extern bool combineSubSections; // Stop splitting files below section
extern bool htmlWorkshopFiles; // generate HTML Help Workshop project files
extern bool ignoreBadRefs; // Don't insert (REF NOT FOUND)
+extern char *htmlFaceName; // HTML face name
// Names to help with internationalisation
extern char *ContentsNameString;
// Names to help with internationalisation
extern char *ContentsNameString;
upperCaseNames = StringTobool(settingValue);
else if (StringMatch(settingName, "ignoreBadRefs", FALSE, TRUE))
ignoreBadRefs = StringTobool(settingValue);
upperCaseNames = StringTobool(settingValue);
else if (StringMatch(settingName, "ignoreBadRefs", FALSE, TRUE))
ignoreBadRefs = StringTobool(settingValue);
+ else if (StringMatch(settingName, "htmlFaceName", FALSE, TRUE))
+ {
+ delete[] htmlFaceName;
+ htmlFaceName = copystring(settingValue);
+ }
else if (StringMatch(settingName, "winHelpTitle", FALSE, TRUE))
{
if (winHelpTitle)
else if (StringMatch(settingName, "winHelpTitle", FALSE, TRUE))
{
if (winHelpTitle)