From 8938133dbc4fbc5024a11a5ab64deba586faf779 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 2 Sep 2001 20:07:25 +0000 Subject: [PATCH] added wxHtmlCell::Get/SetId git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/html/htmlcell.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/wx/html/htmlcell.h b/include/wx/html/htmlcell.h index 55016f205d..8de135b8f2 100644 --- a/include/wx/html/htmlcell.h +++ b/include/wx/html/htmlcell.h @@ -51,6 +51,9 @@ public: int GetWidth() const {return m_Width;} int GetHeight() const {return m_Height;} int GetDescent() const {return m_Descent;} + + const wxString& GetId() const { return m_id; } + void SetId(const wxString& id) { m_id = id; } // returns the link associated with this cell. The position is position within // the cell so it varies from 0 to m_Width, from 0 to m_Height @@ -119,7 +122,7 @@ public: // Returns true for simple == terminal cells, i.e. not composite ones. // This if for internal usage only and may disappear in future versions! - virtual bool IsTerminalCell() const { return true; } + virtual bool IsTerminalCell() const { return TRUE; } // Find the terminal cell inside this cell at the given position (relative // to this cell) @@ -141,6 +144,8 @@ protected: // destination address if this fragment is hypertext link, NULL otherwise bool m_CanLiveOnPagebreak; // true if this cell can be placed on pagebreak, false otherwise + wxString m_id; + // unique identifier of the cell, generated from "id" property of tags }; -- 2.45.2