1
//--------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2007 Cecilio Salmeron
5
// This program is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation;
7
// either version 2 of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along with this
14
// program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
15
// Fifth Floor, Boston, MA 02110-1301, USA.
17
// For any comment, suggestion or feature request, please contact the manager of
18
// the project at cecilios@users.sourceforge.net
20
//-------------------------------------------------------------------------------------
22
#ifndef __SB_HTMLWINDOW_H__
23
#define __SB_HTMLWINDOW_H__
25
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
26
#pragma interface "HtmlWindow.h"
29
#include "wx/html/htmlwin.h"
31
class lmHtmlWindow : public wxHtmlWindow
34
lmHtmlWindow() : wxHtmlWindow() { m_rScale = 1.0; }
35
lmHtmlWindow(wxWindow *parent, wxWindowID id = wxID_ANY,
36
const wxPoint& pos = wxDefaultPosition,
37
const wxSize& size = wxDefaultSize,
38
long style = wxHW_DEFAULT_STYLE | wxSIMPLE_BORDER ,
39
const wxString& name = wxT("htmlWindow"))
40
: wxHtmlWindow(parent, id, pos, size, style, name) { m_rScale = 1.0; }
45
// Called when user clicked on hypertext link. The idea is to intercept and
46
// deal with user commands
47
void OnLinkClicked(const wxHtmlLinkInfo& link);
49
//In tabbed interface this method fails. I suppose it fails as it is not possible
50
// to set up the frame title. So I override it to save the title but not change
52
void OnSetTitle(const wxString& title)
54
m_OpenedPageTitle = title;
57
// to deal with scale for scores
58
void SetScale(double rScale) { m_rScale = rScale; }
59
double GetScale() { return m_rScale; }
68
#endif // __SB_HTMLWINDOW_H__