From 6aa358aebb951956f0e0ab645788e00a4b904886 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Thu, 24 May 2001 16:03:25 +0000 Subject: [PATCH] Fixed more '_' issues Fixed all places that \begin{verbatim} and \end{verbatim} were not on lines by themselves (which tex2rtf cannot handle). Changed all \verb$....$ occurrances to \tt{....} git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/calctrl.tex | 12 +++++++----- docs/latex/wx/classes.tex | 2 +- docs/latex/wx/config.tex | 18 +++++++++++++----- docs/latex/wx/doctempl.tex | 4 ++-- docs/latex/wx/function.tex | 4 ++-- docs/latex/wx/htmlhlpf.tex | 4 ++-- docs/latex/wx/locale.tex | 4 ++-- docs/latex/wx/mdi.tex | 2 +- docs/latex/wx/porting.tex | 9 ++++++--- docs/latex/wx/print.tex | 2 +- docs/latex/wx/tdb.tex | 14 +++++++------- 11 files changed, 44 insertions(+), 31 deletions(-) diff --git a/docs/latex/wx/calctrl.tex b/docs/latex/wx/calctrl.tex index 1c223d58b1..1b3f01f6af 100644 --- a/docs/latex/wx/calctrl.tex +++ b/docs/latex/wx/calctrl.tex @@ -85,14 +85,16 @@ Note that changing the selected date will result in either of The following are the possible return values for \helpref{HitTest}{wxcalendarctrlhittest} method: +{\small \begin{verbatim} enum wxCalendarHitTestResult -\{ +{ wxCAL_HITTEST_NOWHERE, // outside of anything wxCAL_HITTEST_HEADER, // on the header (weekdays) wxCAL_HITTEST_DAY // on a day in the calendar -\}; +} \end{verbatim} +} \wxheading{See also} @@ -296,9 +298,9 @@ Here are the possible kinds of borders which may be used to decorate a date: \begin{verbatim} enum wxCalendarDateBorder { - wxCAL\_BORDER\_NONE, // no border (default) - wxCAL\_BORDER\_SQUARE, // a rectangular border - wxCAL\_BORDER\_ROUND // a round border + wxCAL_BORDER_NONE, // no border (default) + wxCAL_BORDER_SQUARE, // a rectangular border + wxCAL_BORDER_ROUND // a round border } \end{verbatim} diff --git a/docs/latex/wx/classes.tex b/docs/latex/wx/classes.tex index 611c89f6b2..91790f8f64 100644 --- a/docs/latex/wx/classes.tex +++ b/docs/latex/wx/classes.tex @@ -171,7 +171,7 @@ \input mbcnvut8.tex \input mdi.tex \input memorydc.tex -\input fs_mem.tex +\input fs\_mem.tex \input strmmem.tex \input menu.tex \input menuitem.tex diff --git a/docs/latex/wx/config.tex b/docs/latex/wx/config.tex index 18d836c78e..d1fb2ddf83 100644 --- a/docs/latex/wx/config.tex +++ b/docs/latex/wx/config.tex @@ -257,7 +257,7 @@ Currently, only two types of data are supported: string and long (but it might change in the near future). To work with other types: for {\it int} or {\it bool} you can work with function taking/returning {\it long} and just use the casts. Better yet, just use {\it long} for all variables which you're going to -save in the config file: chances are that \verb$sizeof(bool) == sizeof(int) == sizeof(long)$ anyhow on your system. For {\it float}, {\it double} and, in +save in the config file: chances are that \tt{sizeof(bool) == sizeof(int) == sizeof(long)} anyhow on your system. For {\it float}, {\it double} and, in general, any other type you'd have to translate them to/from string representation and use string functions. @@ -309,8 +309,8 @@ config file: UserData = %windir%\\data.dat \end{verbatim} -the call to \verb$config->Read("UserData")$ will return something like -\verb$"/home/zeitlin/data"$ if you're lucky enough to run a Linux system ;-) +the call to \tt{config->Read("UserData")} will return something like +\tt{"/home/zeitlin/data"} if you're lucky enough to run a Linux system ;-) Although this feature is very useful, it may be annoying if you read a value which containts '\$' or '\%' symbols (\% is used for environment variables @@ -593,12 +593,20 @@ if the key is not found. NB: writing -{\small \begin{verbatim} conf->Read("key", 0); \end{verbatim} } +{\small +\begin{verbatim} + conf->Read("key", 0); +\end{verbatim} +} won't work because the call is ambiguous: compiler can not choose between two {\it Read} functions. Instead, write: -{\small \begin{verbatim} conf->Read("key", 0l); \end{verbatim} } +{\small +\begin{verbatim} + conf->Read("key", 0l); +\end{verbatim} +} \constfunc{bool}{Read}{\param{const wxString\& }{ key}, \param{double*}{ d}} diff --git a/docs/latex/wx/doctempl.tex b/docs/latex/wx/doctempl.tex index 10f310f63d..a7287f5f26 100644 --- a/docs/latex/wx/doctempl.tex +++ b/docs/latex/wx/doctempl.tex @@ -57,7 +57,7 @@ A pointer to the document manager for which this template was created. \member{wxString}{m\_fileFilter} -The file filter (such as \verb$*.txt$) to be used in file selector dialogs. +The file filter (such as \tt{*.txt}) to be used in file selector dialogs. \membersection{wxDocTemplate::m\_flags} @@ -92,7 +92,7 @@ a wxDocManager instance, and before doing any document or view operations. {\it descr} is a short description of what the template is for. This string will be displayed in the file filter list of Windows file selectors. -{\it filter} is an appropriate file filter such as \verb$*.txt$. +{\it filter} is an appropriate file filter such as \tt{*.txt}. {\it dir} is the default directory to use for file selectors. diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 952dcc160c..d23f7160f2 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -2482,7 +2482,7 @@ loading from resource data. \func{bool}{wxResourceAddIdentifier}{\param{const wxString\& }{name}, \param{int }{value}} Used for associating a name with an integer identifier (equivalent to dynamically\rtfsp -\verb$#$defining a name to an integer). Unlikely to be used by an application except +\tt{#}defining a name to an integer). Unlikely to be used by an application except perhaps for implementing resource functionality for interpreted languages. \membersection{::wxResourceClear} @@ -2648,7 +2648,7 @@ load an entire {\tt .wxr file} into a string. \func{bool}{wxResourceRegisterBitmapData}{\param{const wxString\& }{name}, \param{char** }{xpm\_data}} -Makes \verb$#$included XBM or XPM bitmap data known to the wxWindows resource system. +Makes \tt{#}included XBM or XPM bitmap data known to the wxWindows resource system. This is required if other resources will use the bitmap data, since otherwise there is no connection between names used in resources, and the global bitmap data. diff --git a/docs/latex/wx/htmlhlpf.tex b/docs/latex/wx/htmlhlpf.tex index dbc30ba75a..d4fbfbdb46 100644 --- a/docs/latex/wx/htmlhlpf.tex +++ b/docs/latex/wx/htmlhlpf.tex @@ -39,7 +39,7 @@ with some error. See also \wxheading{Contents file (.hhc)} Contents file has HTML syntax and it can be parsed by regular HTML parser. It contains exactly one list -(\verb$$ statement): +(\tt{} statement): \begin{verbatim}