add const qualifiers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-03-09 16:24:26 +00:00
parent 1fee6e2577
commit 328f5751e8
193 changed files with 2525 additions and 2513 deletions

View File

@@ -52,7 +52,7 @@ public:
/**
Returns the help controller associated with the dialog.
*/
wxHtmlHelpController* GetController();
wxHtmlHelpController* GetController() const;
/**
Reads the user's settings for this dialog see

View File

@@ -52,7 +52,7 @@ public:
/**
Returns the help controller associated with the frame.
*/
wxHtmlHelpController* GetController();
wxHtmlHelpController* GetController() const;
/**
Reads the user's settings for this frame see

View File

@@ -178,7 +178,7 @@ public:
Returns descent value of the cell (m_Descent member).
See explanation:
*/
int GetDescent();
int GetDescent() const;
/**
Returns pointer to the first cell in the list.
@@ -193,12 +193,12 @@ public:
/**
Returns height of the cell (m_Height member).
*/
int GetHeight();
int GetHeight() const;
/**
Returns unique cell identifier if there is any, empty string otherwise.
*/
virtual wxString GetId();
virtual wxString GetId() const;
/**
Returns hypertext link if associated with this cell or @NULL otherwise.
@@ -210,7 +210,7 @@ public:
These coordinates are used e.g. by COLORMAP. Values are relative to the
upper left corner of THIS cell (i.e. from 0 to m_Width or m_Height)
*/
virtual wxHtmlLinkInfo* GetLink(int x = 0, int y = 0);
virtual wxHtmlLinkInfo* GetLink(int x = 0, int y = 0) const;
/**
Returns cursor to show when mouse pointer is over the cell.
@@ -224,31 +224,31 @@ public:
Returns pointer to the next cell in list (see htmlcell.h if you're
interested in details).
*/
wxHtmlCell* GetNext();
wxHtmlCell* GetNext() const;
/**
Returns pointer to parent container.
*/
wxHtmlContainerCell* GetParent();
wxHtmlContainerCell* GetParent() const;
/**
Returns X position within parent (the value is relative to parent's
upper left corner). The returned value is meaningful only if
parent's Layout() was called before!
*/
int GetPosX();
int GetPosX() const;
/**
Returns Y position within parent (the value is relative to parent's
upper left corner). The returned value is meaningful only if
parent's Layout() was called before!
*/
int GetPosY();
int GetPosY() const;
/**
Returns width of the cell (m_Width member).
*/
int GetWidth();
int GetWidth() const;
/**
This method performs two actions:
@@ -336,12 +336,12 @@ public:
/**
Returns container's horizontal alignment.
*/
int GetAlignHor();
int GetAlignHor() const;
/**
Returns container's vertical alignment.
*/
int GetAlignVer();
int GetAlignVer() const;
/**
Returns the background colour of the container or @c wxNullColour if no
@@ -357,13 +357,13 @@ public:
value.
It is NOT always in pixels!
*/
int GetIndent(int ind);
int GetIndent(int ind) const;
/**
Returns the units of indentation for @a ind where @a ind is one
of the @b wxHTML_INDENT_* constants.
*/
int GetIndentUnits(int ind);
int GetIndentUnits(int ind) const;
/**
Inserts new cell into the container.

View File

@@ -150,7 +150,7 @@ public:
reference to it is parent parser it can easily request the file by
calling
*/
wxFileSystem* GetFS();
wxFileSystem* GetFS() const;
/**
Returns product of parsing. Returned value is result of parsing

View File

@@ -33,35 +33,35 @@ public:
Example : tag contains @c FONT SIZE=+2 COLOR="#000000". Call to
tag.GetAllParams() would return @c SIZE=+2 COLOR="#000000".
*/
const wxString GetAllParams();
const wxString GetAllParams() const;
/**
Returns beginning position of the text @e between this tag and paired
ending tag.
See explanation (returned position is marked with '|'):
*/
int GetBeginPos();
int GetBeginPos() const;
/**
Returns ending position of the text @e between this tag and paired
ending tag.
See explanation (returned position is marked with '|'):
*/
int GetEndPos1();
int GetEndPos1() const;
/**
Returns ending position 2 of the text @e between this tag and paired
ending tag.
See explanation (returned position is marked with '|'):
*/
int GetEndPos2();
int GetEndPos2() const;
/**
Returns tag's name. The name is always in uppercase and it doesn't contain
'' or '/' characters. (So the name of @c FONT SIZE=+2 tag is "FONT"
and name of @c /table is "TABLE")
*/
wxString GetName();
wxString GetName() const;
/**
Returns the value of the parameter. You should check whether the
@@ -72,7 +72,7 @@ public:
@param with_quotes
@true if you want to get quotes as well. See example.
*/
wxString GetParam(const wxString& par, bool with_quotes = false);
wxString GetParam(const wxString& par, bool with_quotes = false) const;
/**
Interprets tag parameter @a par as colour specification and saves its value
@@ -80,7 +80,7 @@ public:
Returns @true on success and @false if @a par is not colour specification or
if the tag has no such parameter.
*/
bool GetParamAsColour(const wxString& par, wxColour* clr);
bool GetParamAsColour(const wxString& par, wxColour* clr) const;
/**
Interprets tag parameter @a par as an integer and saves its value
@@ -88,7 +88,7 @@ public:
Returns @true on success and @false if @a par is not an integer or
if the tag has no such parameter.
*/
bool GetParamAsInt(const wxString& par, int* value);
bool GetParamAsInt(const wxString& par, int* value) const;
/**
Returns @true if this tag is paired with ending tag, @false otherwise.
@@ -98,7 +98,7 @@ public:
doesn't have ending tag while the second P has. The third P tag (which
is ending itself) of course doesn't have ending tag.
*/
bool HasEnding();
bool HasEnding() const;
/**
Returns @true if the tag has a parameter of the given name.
@@ -108,7 +108,7 @@ public:
@param par
the parameter you're looking for.
*/
bool HasParam(const wxString& par);
bool HasParam(const wxString& par) const;
/**
This method scans the given parameter. Usage is exactly the same as sscanf's
@@ -125,5 +125,5 @@ public:
pointer to a variable to store the value in
*/
wxString ScanParam(const wxString& par, const wxChar* format,
void* value);
void* value) const;
};

View File

@@ -82,7 +82,7 @@ public:
See also: @ref overview_cells "Cells Overview",
@ref overview_printing
*/
wxHtmlContainerCell* GetInternalRepresentation();
wxHtmlContainerCell* GetInternalRepresentation() const;
/**
Returns anchor within currently opened page
@@ -108,7 +108,7 @@ public:
/**
Returns the related frame.
*/
wxFrame* GetRelatedFrame();
wxFrame* GetRelatedFrame() const;
/**
Moves back to the previous page. (each page displayed using
@@ -416,7 +416,7 @@ public:
Returns the wxHtmlLinkInfo which contains info about the cell clicked and the
hyperlink it contains.
*/
const wxHtmlLinkInfo GetLinkInfo();
const wxHtmlLinkInfo GetLinkInfo() const;
};
@@ -442,19 +442,19 @@ public:
/**
Returns the wxHtmlCellEvent associated with the event.
*/
wxHtmlCell* GetCell();
wxHtmlCell* GetCell() const;
/**
Returns @true if @ref setlinkclicked() SetLinkClicked(@true) has previously
been called;
@false otherwise.
*/
bool GetLinkClicked();
bool GetLinkClicked() const;
/**
Returns the wxPoint associated with the event.
*/
wxPoint GetPoint();
wxPoint GetPoint() const;
/**
Call this function with @c linkclicked set to @true if the cell which has

View File

@@ -128,7 +128,7 @@ public:
/**
Gets the parent window for dialogs.
*/
wxWindow* GetParentWindow();
wxWindow* GetParentWindow() const;
/**
Returns pointer to wxPrintData instance used by this class. You can

View File

@@ -115,12 +115,12 @@ public:
/**
Returns actual text colour.
*/
const wxColour GetActualColor();
const wxColour GetActualColor() const;
/**
Returns default horizontal alignment.
*/
int GetAlign();
int GetAlign() const;
/**
Returns (average) char height in standard font. It is used as DC-independent
@@ -128,7 +128,7 @@ public:
@b Note: This function doesn't return the @e actual height. If you want to
know the height of the current font, call @c GetDC - GetCharHeight().
*/
int GetCharHeight();
int GetCharHeight() const;
/**
Returns average char width in standard font. It is used as DC-independent
@@ -136,13 +136,13 @@ public:
@b Note: This function doesn't return the @e actual width. If you want to
know the height of the current font, call @c GetDC - GetCharWidth()
*/
int GetCharWidth();
int GetCharWidth() const;
/**
Returns pointer to the currently opened container (see Overview).
Common use:
*/
wxHtmlContainerCell* GetContainer();
wxHtmlContainerCell* GetContainer() const;
/**
Returns pointer to the DC used during parsing.
@@ -154,42 +154,42 @@ public:
to do conversion between @ref getinputencoding() "input encoding"
and @ref getoutputencoding() "output encoding".
*/
wxEncodingConverter* GetEncodingConverter();
wxEncodingConverter* GetEncodingConverter() const;
/**
Returns @true if actual font is bold, @false otherwise.
*/
int GetFontBold();
int GetFontBold() const;
/**
Returns actual font face name.
*/
wxString GetFontFace();
wxString GetFontFace() const;
/**
Returns @true if actual font is fixed face, @false otherwise.
*/
int GetFontFixed();
int GetFontFixed() const;
/**
Returns @true if actual font is italic, @false otherwise.
*/
int GetFontItalic();
int GetFontItalic() const;
/**
Returns actual font size (HTML size varies from -2 to +4)
*/
int GetFontSize();
int GetFontSize() const;
/**
Returns @true if actual font is underlined, @false otherwise.
*/
int GetFontUnderlined();
int GetFontUnderlined() const;
/**
Returns input encoding.
*/
wxFontEncoding GetInputEncoding();
wxFontEncoding GetInputEncoding() const;
/**
Returns actual hypertext link. (This value has a non-empty
@@ -197,18 +197,18 @@ public:
if the parser is between @c A and @c /A tags,
wxEmptyString otherwise.)
*/
const wxHtmlLinkInfo GetLink();
const wxHtmlLinkInfo GetLink() const;
/**
Returns the colour of hypertext link text.
*/
const wxColour GetLinkColor();
const wxColour GetLinkColor() const;
/**
Returns output encoding, i.e. closest match to document's input encoding
that is supported by operating system.
*/
wxFontEncoding GetOutputEncoding();
wxFontEncoding GetOutputEncoding() const;
/**
Returns associated window (wxHtmlWindow). This may be @NULL! (You should always