From d7d176241e313dc60b47cc967ddbc6018309d286 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 8 Jan 2002 14:15:57 +0000 Subject: [PATCH] Moved include for Windows compilation; minor doc tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/menu.tex | 2 +- docs/latex/wx/window.tex | 4 +++- samples/dialogs/dialogs.cpp | 5 +++-- src/generic/dirdlgg.cpp | 2 +- utils/tex2rtf/docs/tex2rtf.tex | 1 + utils/tex2rtf/src/htmlutil.cpp | 39 +++++++++++++++++++++++++--------- utils/tex2rtf/src/tex2any.cpp | 1 + utils/tex2rtf/src/tex2any.h | 1 + utils/tex2rtf/src/texutils.cpp | 5 +++++ 9 files changed, 45 insertions(+), 15 deletions(-) diff --git a/docs/latex/wx/menu.tex b/docs/latex/wx/menu.tex index 33946872fe..47c25c0dd6 100644 --- a/docs/latex/wx/menu.tex +++ b/docs/latex/wx/menu.tex @@ -777,7 +777,7 @@ Redraw the menu bar \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. diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index 106ff9e65d..1e27cc048b 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -1602,7 +1602,9 @@ Most, but not all, windows respond to this 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. \wxheading{Parameters} diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 712e9b35bb..a3dd84d625 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -42,9 +42,10 @@ #include #endif +#define wxUSE_DIRDLGG 1 + #if !defined(__WXMSW__) || defined(wxUSE_DIRDLGG) && wxUSE_DIRDLGG -// New wxGenericDirCtrl -#include "wx/dirctrl.h" +#include "wx/generic/dirdlgg.h" #endif #include "dialogs.h" diff --git a/src/generic/dirdlgg.cpp b/src/generic/dirdlgg.cpp index 0f62d9a1e2..c7a01c99c1 100644 --- a/src/generic/dirdlgg.cpp +++ b/src/generic/dirdlgg.cpp @@ -29,12 +29,12 @@ #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/statline.h" #include "wx/generic/dirctrlg.h" #include "wx/generic/dirdlgg.h" diff --git a/utils/tex2rtf/docs/tex2rtf.tex b/utils/tex2rtf/docs/tex2rtf.tex index 32c15059cd..f01f682d51 100644 --- a/utils/tex2rtf/docs/tex2rtf.tex +++ b/utils/tex2rtf/docs/tex2rtf.tex @@ -685,6 +685,7 @@ The default is white.} 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}% diff --git a/utils/tex2rtf/src/htmlutil.cpp b/utils/tex2rtf/src/htmlutil.cpp index b85e33f4a4..086a32b20d 100644 --- a/utils/tex2rtf/src/htmlutil.cpp +++ b/utils/tex2rtf/src/htmlutil.cpp @@ -181,7 +181,7 @@ void ReopenFile(FILE **fd, char **fileName) { if (*fd) { - fprintf(*fd, "\n\n"); + fprintf(*fd, "\n\n"); fclose(*fd); } fileId ++; @@ -583,6 +583,17 @@ char *ParseColourString(char *bkStr, bool *isPicture) else return NULL; } +void OutputFont(void) +{ + // Output + TexOutput("\n"); +} + // Output start of block void OutputBodyStart(void) { @@ -637,6 +648,8 @@ void OutputBodyStart(void) } } TexOutput(">\n"); + + OutputFont(); } // Called on start/end of macro examination @@ -1027,7 +1040,8 @@ void HTMLOnMacro(int macroId, int no_args, bool start) if (inTabular) { // End cell, start cell - TexOutput(""); + + TexOutput(""); // Start new row and cell, setting alignment for the first cell. if (currentColumn < noColumns) @@ -1051,6 +1065,7 @@ void HTMLOnMacro(int macroId, int no_args, bool start) else sprintf(buf, "\n"); TexOutput(buf); + OutputFont(); } else TexOutput("&"); @@ -1099,12 +1114,13 @@ void HTMLOnMacro(int macroId, int no_args, bool start) else sprintf(buf, "\n"); TexOutput(buf); + OutputFont(); } else { // End cell and row // Start new row and cell - TexOutput("\n\n"); + TexOutput("\n\n"); } break; } @@ -2114,8 +2130,9 @@ bool HTMLOnArgument(int macroId, int arg_no, bool start) TexOutput(buf); } else TexOutput("\n\n"); + OutputFont(); } else - TexOutput("\n\n"); + TexOutput("\n\n"); } if (arg_no == 2) { @@ -2127,8 +2144,9 @@ bool HTMLOnArgument(int macroId, int arg_no, bool start) TexOutput(buf); } else TexOutput("\n\n"); + OutputFont(); } else - TexOutput("\n\n"); + TexOutput("\n\n"); } return TRUE; break; @@ -2630,6 +2648,7 @@ bool HTMLOnArgument(int macroId, int arg_no, bool start) if (compatibilityMode) { TexOutput("\n"); + OutputFont(); /* for (int i = 0; i < noColumns; i++) { @@ -2909,25 +2928,25 @@ bool HTMLGo(void) if (Chapters) { - fprintf(Chapters, "\n\n"); + fprintf(Chapters, "\n\n"); fclose(Chapters); Chapters = NULL; } if (Sections) { - fprintf(Sections, "\n\n"); + fprintf(Sections, "\n\n"); fclose(Sections); Sections = NULL; } if (Subsections && !combineSubSections) { - fprintf(Subsections, "\n\n"); + fprintf(Subsections, "\n\n"); fclose(Subsections); Subsections = NULL; } if (Subsubsections && !combineSubSections) { - fprintf(Subsubsections, "\n\n"); + fprintf(Subsubsections, "\n\n"); fclose(Subsubsections); Subsubsections = NULL; } @@ -2995,7 +3014,7 @@ bool HTMLGo(void) fclose(fd); } - fprintf(tmpTitle, "\n\n"); + fprintf(tmpTitle, "\n\n"); if (htmlFrameContents) { diff --git a/utils/tex2rtf/src/tex2any.cpp b/utils/tex2rtf/src/tex2any.cpp index ed21d3e7f8..8109c52f12 100644 --- a/utils/tex2rtf/src/tex2any.cpp +++ b/utils/tex2rtf/src/tex2any.cpp @@ -145,6 +145,7 @@ char *followedLinkColourString = NULL; bool combineSubSections = FALSE; bool htmlWorkshopFiles = FALSE; bool ignoreBadRefs = FALSE; +char *htmlFaceName = copystring("Times New Roman"); extern int passNumber; diff --git a/utils/tex2rtf/src/tex2any.h b/utils/tex2rtf/src/tex2any.h index 5b2c6f4e55..2bf3672015 100644 --- a/utils/tex2rtf/src/tex2any.h +++ b/utils/tex2rtf/src/tex2any.h @@ -249,6 +249,7 @@ extern char *followedLinkColourString; // HTML followed link colour 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; diff --git a/utils/tex2rtf/src/texutils.cpp b/utils/tex2rtf/src/texutils.cpp index 15364a1670..42ed6ef86d 100644 --- a/utils/tex2rtf/src/texutils.cpp +++ b/utils/tex2rtf/src/texutils.cpp @@ -1185,6 +1185,11 @@ char *RegisterSetting(char *settingName, char *settingValue, bool interactive) 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) -- 2.45.2