git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41163
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
what-not will still use the emulated toolbar because of platform
restrictions in how/where the toolbar can be used.
what-not will still use the emulated toolbar because of platform
restrictions in how/where the toolbar can be used.
+Added wx.Window.IsVisible.
+
+
+
+ wxHL_ALIGN_LEFT,
+ wxHL_ALIGN_RIGHT,
+ wxHL_ALIGN_CENTRE,
+ wxHL_DEFAULT_STYLE,
};
//---------------------------------------------------------------------------
%newgroup
};
//---------------------------------------------------------------------------
%newgroup
-MustHaveApp(wxHyperlinkCtrl);
+MustHaveApp(wxHyperlinkCtrl);
DocStr( wxHyperlinkCtrl,
"A static text control that emulates a hyperlink. The link is displayed
DocStr( wxHyperlinkCtrl,
"A static text control that emulates a hyperlink. The link is displayed
%pythonAppend wxHyperlinkCtrl "self._setOORInfo(self)"
%pythonAppend wxHyperlinkCtrl() ""
%pythonAppend wxHyperlinkCtrl "self._setOORInfo(self)"
%pythonAppend wxHyperlinkCtrl() ""
// Constructor.
wxHyperlinkCtrl(wxWindow *parent,
wxWindowID id,
// Constructor.
wxHyperlinkCtrl(wxWindow *parent,
wxWindowID id,
// Returns 'True' if it was successfully loaded
bool AddCatalog(const wxString& szDomain);
// Returns 'True' if it was successfully loaded
bool AddCatalog(const wxString& szDomain);
+ // check if the given locale is provided by OS and C run time
+ static bool IsAvailable(int lang);
+
// check if the given catalog is loaded
bool IsLoaded(const wxString& szDomain) const;
// check if the given catalog is loaded
bool IsLoaded(const wxString& szDomain) const;
bool , IsEnabled() const,
"Returns true if the window is enabled for input, false otherwise.", "");
bool , IsEnabled() const,
"Returns true if the window is enabled for input, false otherwise.", "");
+ DocDeclStr(
+ virtual bool , IsVisible() const,
+ "Returns ``True`` if the window is physically visible on the screen,
+i.e. it is shown and all its parents up to the toplevel window are
+shown as well.", "");
+
wxString GetName() const;
wxString GetContent() const;
wxString GetName() const;
wxString GetContent() const;
+ bool IsWhitespaceOnly() const;
+ int GetDepth(wxXmlNode *grandparent = NULL) const;
+
+ // Gets node content from wxXML_ENTITY_NODE
+ // The problem is, <tag>content<tag> is represented as
+ // wxXML_ENTITY_NODE name="tag", content=""
+ // |-- wxXML_TEXT_NODE or
+ // wxXML_CDATA_SECTION_NODE name="" content="content"
+ wxString GetNodeContent() const;
+
wxXmlNode *GetParent() const;
wxXmlNode *GetNext() const;
wxXmlNode *GetChildren() const;
wxXmlNode *GetParent() const;
wxXmlNode *GetNext() const;
wxXmlNode *GetChildren() const;
+// special indentation value for wxXmlDocument::Save
+enum {
+ wxXML_NO_INDENTATION
+};
+
+// flags for wxXmlDocument::Load
+enum wxXmlDocumentLoadFlag
+{
+ wxXMLDOC_NONE = 0,
+ wxXMLDOC_KEEP_WHITESPACE_NODES = 1
+};
+
+
+
// This class holds XML data/document as parsed by XML parser.
class wxXmlDocument : public wxObject
{
// This class holds XML data/document as parsed by XML parser.
class wxXmlDocument : public wxObject
{
// Parses .xml file and loads data. Returns True on success, False
// otherwise.
bool Load(const wxString& filename,
// Parses .xml file and loads data. Returns True on success, False
// otherwise.
bool Load(const wxString& filename,
- const wxString& encoding = wxPyUTF8String);
+ const wxString& encoding = wxPyUTF8String,
+ int flags = wxXMLDOC_NONE);
%Rename(LoadFromStream, bool, Load(wxInputStream& stream,
%Rename(LoadFromStream, bool, Load(wxInputStream& stream,
- const wxString& encoding = wxPyUTF8String));
+ const wxString& encoding = wxPyUTF8String,
+ int flags = wxXMLDOC_NONE));
// Saves document as .xml file.
// Saves document as .xml file.
- bool Save(const wxString& filename) const;
- %Rename(SaveToStream, bool, Save(wxOutputStream& stream) const);
+ bool Save(const wxString& filename, int indentstep=1) const;
+ %Rename(SaveToStream, bool, Save(wxOutputStream& stream, int indentstep=1) const);