Fix for special characters in Doxygen comments.

Escape "-" characters in the beginning of the paragraph as they are not
handled properly by Doxygen otherwise.

Escape the space after "i.e." to prevent the brief doc string from being
terminated by it.

Escape "--" which is translated to a dash by Doxygen otherwise.

Closes #15228.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-05-31 23:20:53 +00:00
parent a2d65663a0
commit 3746766367
4 changed files with 16 additions and 16 deletions

View File

@@ -100,30 +100,30 @@
/** /**
wxChar is defined to be wxChar is defined to be
- @c char when <tt>wxUSE_UNICODE==0</tt> \- @c char when <tt>wxUSE_UNICODE==0</tt>
- @c wchar_t when <tt>wxUSE_UNICODE==1</tt> (the default). \- @c wchar_t when <tt>wxUSE_UNICODE==1</tt> (the default).
*/ */
typedef wxUSE_UNICODE_dependent wxChar; typedef wxUSE_UNICODE_dependent wxChar;
/** /**
wxSChar is defined to be wxSChar is defined to be
- <tt>signed char</tt> when <tt>wxUSE_UNICODE==0</tt> \- <tt>signed char</tt> when <tt>wxUSE_UNICODE==0</tt>
- @c wchar_t when <tt>wxUSE_UNICODE==1</tt> (the default). \- @c wchar_t when <tt>wxUSE_UNICODE==1</tt> (the default).
*/ */
typedef wxUSE_UNICODE_dependent wxSChar; typedef wxUSE_UNICODE_dependent wxSChar;
/** /**
wxUChar is defined to be wxUChar is defined to be
- <tt>unsigned char</tt> when <tt>wxUSE_UNICODE==0</tt> \- <tt>unsigned char</tt> when <tt>wxUSE_UNICODE==0</tt>
- @c wchar_t when <tt>wxUSE_UNICODE==1</tt> (the default). \- @c wchar_t when <tt>wxUSE_UNICODE==1</tt> (the default).
*/ */
typedef wxUSE_UNICODE_dependent wxUChar; typedef wxUSE_UNICODE_dependent wxUChar;
/** /**
wxStringCharType is defined to be: wxStringCharType is defined to be:
- @c char when <tt>wxUSE_UNICODE==0</tt> \- @c char when <tt>wxUSE_UNICODE==0</tt>
- @c char when <tt>wxUSE_UNICODE_WCHAR==0</tt> and <tt>wxUSE_UNICODE==1</tt> \- @c char when <tt>wxUSE_UNICODE_WCHAR==0</tt> and <tt>wxUSE_UNICODE==1</tt>
- @c wchar_t when <tt>wxUSE_UNICODE_WCHAR==1</tt> and <tt>wxUSE_UNICODE==1</tt> \- @c wchar_t when <tt>wxUSE_UNICODE_WCHAR==1</tt> and <tt>wxUSE_UNICODE==1</tt>
The @c wxUSE_UNICODE_WCHAR symbol is defined to @c 1 when building on The @c wxUSE_UNICODE_WCHAR symbol is defined to @c 1 when building on
Windows while it's defined to @c 0 when building on Unix, Linux or OS X. Windows while it's defined to @c 0 when building on Unix, Linux or OS X.

View File

@@ -226,7 +226,7 @@ struct wxCmdLineEntryDesc
First global option is the support for long (also known as GNU-style) First global option is the support for long (also known as GNU-style)
options. The long options are the ones which start with two dashes and look options. The long options are the ones which start with two dashes and look
like "--verbose", i.e. they generally are complete words and not some like "\--verbose", i.e. they generally are complete words and not some
abbreviations of them. As long options are used by more and more abbreviations of them. As long options are used by more and more
applications, they are enabled by default, but may be disabled with applications, they are enabled by default, but may be disabled with
DisableLongOptions(). DisableLongOptions().
@@ -496,7 +496,7 @@ public:
size_t GetParamCount() const; size_t GetParamCount() const;
/** /**
Parse the command line, return 0 if ok, -1 if @c "-h" or @c "--help" Parse the command line, return 0 if ok, -1 if @c "-h" or @c "\--help"
option was encountered and the help message was given or a positive option was encountered and the help message was given or a positive
value if a syntax error occurred. value if a syntax error occurred.

View File

@@ -2110,7 +2110,7 @@ public:
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart); virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart);
/** /**
Returns the best size, i.e. the ideal starting size for this object irrespective Returns the best size, i.e.\ the ideal starting size for this object irrespective
of available space. For a short text string, it will be the size that exactly encloses of available space. For a short text string, it will be the size that exactly encloses
the text. For a longer string, it might use the parent width for example. the text. For a longer string, it might use the parent width for example.
*/ */
@@ -2208,7 +2208,7 @@ public:
virtual wxString GetPropertiesMenuLabel() const { return wxEmptyString; } virtual wxString GetPropertiesMenuLabel() const { return wxEmptyString; }
/** /**
Returns @true if objects of this class can accept the focus, i.e. a call to SetFocusObject Returns @true if objects of this class can accept the focus, i.e.\ a call to SetFocusObject
is possible. For example, containers supporting text, such as a text box object, can accept the focus, is possible. For example, containers supporting text, such as a text box object, can accept the focus,
but a table can't (set the focus to individual cells instead). but a table can't (set the focus to individual cells instead).
*/ */
@@ -2503,7 +2503,7 @@ public:
wxString GetName() const { return m_properties.GetPropertyString(wxT("name")); } wxString GetName() const { return m_properties.GetPropertyString(wxT("name")); }
/** /**
Returns @true if this object is top-level, i.e. contains its own paragraphs, such as a text box. Returns @true if this object is top-level, i.e.\ contains its own paragraphs, such as a text box.
*/ */
virtual bool IsTopLevel() const { return false; } virtual bool IsTopLevel() const { return false; }
@@ -3578,7 +3578,7 @@ public:
virtual bool UpdateField(wxRichTextBuffer* buffer, wxRichTextField* obj) { return false; } virtual bool UpdateField(wxRichTextBuffer* buffer, wxRichTextField* obj) { return false; }
/** /**
Returns @true if this object is top-level, i.e. contains its own paragraphs, such as a text box. Returns @true if this object is top-level, i.e.\ contains its own paragraphs, such as a text box.
*/ */
virtual bool IsTopLevel(wxRichTextField* obj) const { return true; } virtual bool IsTopLevel(wxRichTextField* obj) const { return true; }

View File

@@ -1890,7 +1890,7 @@ public:
virtual void PaintBackground(wxDC& dc); virtual void PaintBackground(wxDC& dc);
/** /**
Other user defined painting after everything else (i.e. all text) is painted. Other user defined painting after everything else (i.e.\ all text) is painted.
@since 2.9.1 @since 2.9.1
*/ */