~ubuntu-branches/ubuntu/trusty/libwx-perl/trusty

« back to all changes in this revision

Viewing changes to ext/html/XS/HtmlWindow.xs

  • Committer: Bazaar Package Importer
  • Author(s): Roberto C. Sanchez
  • Date: 2011-01-18 17:17:01 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110118171701-z5rfg143qndfrau2
Tags: 1:0.98-1
* New upstream release
  - add epoch, to compensate for upstream going from 0.9702 -> 0.98
* Standards-Version: 3.9.1 (no changes required)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#############################################################################
2
 
## Name:        ext/html/XS/HtmlWindow.xs
3
 
## Purpose:     XS for Wx::HtmlWindow
4
 
## Author:      Mattia Barbon
5
 
## Modified by:
6
 
## Created:     17/03/2001
7
 
## RCS-ID:      $Id: HtmlWindow.xs 2057 2007-06-18 23:03:00Z mbarbon $
8
 
## Copyright:   (c) 2001-2006 Mattia Barbon
9
 
## Licence:     This program is free software; you can redistribute it and/or
10
 
##              modify it under the same terms as Perl itself
11
 
#############################################################################
12
 
 
13
 
%module{Wx};
14
 
 
15
 
%typemap{wxMouseEvent&}{reference};
16
 
 
17
 
%{
18
 
#include <wx/html/htmlwin.h>
19
 
#include <wx/frame.h>
20
 
#include "cpp/htmlwindow.h"
21
 
%}
22
 
 
23
 
#if WXPERL_W_VERSION_GE( 2, 7, 2 )
24
 
 
25
 
%name{Wx::HtmlCellEvent} class wxHtmlCellEvent
26
 
{
27
 
    wxHtmlCell* GetCell() const;
28
 
    wxPoint GetPoint() const;
29
 
    wxMouseEvent& GetMouseEvent() const;
30
 
 
31
 
    void SetLinkClicked( bool linkclicked );
32
 
    bool GetLinkClicked() const;
33
 
};
34
 
 
35
 
%name{Wx::HtmlLinkEvent} class wxHtmlLinkEvent
36
 
{
37
 
    const wxHtmlLinkInfo& GetLinkInfo() const;
38
 
};
39
 
 
40
 
#endif
41
 
 
42
 
%{
43
 
 
44
 
MODULE=Wx PACKAGE=Wx::HtmlLinkInfo
45
 
 
46
 
wxMouseEvent*
47
 
wxHtmlLinkInfo::GetEvent()
48
 
  CODE:
49
 
    RETVAL = (wxMouseEvent*) THIS->GetEvent();
50
 
  OUTPUT:
51
 
    RETVAL
52
 
 
53
 
wxHtmlCell*
54
 
wxHtmlLinkInfo::GetHtmlCell()
55
 
  CODE:
56
 
    RETVAL = (wxHtmlCell*) THIS->GetHtmlCell();
57
 
  OUTPUT:
58
 
    RETVAL
59
 
 
60
 
wxString
61
 
wxHtmlLinkInfo::GetHref()
62
 
 
63
 
wxString
64
 
wxHtmlLinkInfo::GetTarget()
65
 
 
66
 
MODULE=Wx PACKAGE=Wx::HtmlWindow
67
 
 
68
 
wxHtmlWindow*
69
 
wxHtmlWindow::new( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxHW_SCROLLBAR_AUTO, name = wxT("htmlWindow") )
70
 
    wxWindow* parent
71
 
    wxWindowID id
72
 
    wxPoint pos
73
 
    wxSize size
74
 
    long style
75
 
    wxString name
76
 
  CODE:
77
 
    RETVAL = new wxPliHtmlWindow( CLASS, parent, id, pos, size, style, name );
78
 
  OUTPUT:
79
 
    RETVAL
80
 
 
81
 
bool
82
 
wxHtmlWindow::AppendToPage( source )
83
 
    wxString source
84
 
 
85
 
wxString
86
 
wxHtmlWindow::GetOpenedAnchor()
87
 
 
88
 
wxString
89
 
wxHtmlWindow::GetOpenedPage()
90
 
 
91
 
wxString
92
 
wxHtmlWindow::GetOpenedPageTitle()
93
 
 
94
 
wxHtmlWinParser*
95
 
wxHtmlWindow::GetParser()
96
 
 
97
 
wxFrame*
98
 
wxHtmlWindow::GetRelatedFrame()
99
 
 
100
 
bool
101
 
wxHtmlWindow::HistoryBack()
102
 
 
103
 
bool
104
 
wxHtmlWindow::HistoryCanForward()
105
 
 
106
 
bool
107
 
wxHtmlWindow::HistoryCanBack()
108
 
 
109
 
void
110
 
wxHtmlWindow::HistoryClear()
111
 
 
112
 
bool
113
 
wxHtmlWindow::HistoryForward()
114
 
 
115
 
bool
116
 
wxHtmlWindow::LoadFile( filename  )
117
 
    wxString filename
118
 
 
119
 
bool
120
 
wxHtmlWindow::LoadPage( location )
121
 
    wxString location
122
 
 
123
 
void
124
 
wxHtmlWindow::OnLinkClicked( info )
125
 
    wxHtmlLinkInfo* info
126
 
  CODE:
127
 
    THIS->wxHtmlWindow::OnLinkClicked( *info );
128
 
 
129
 
void
130
 
wxHtmlWindow::OnSetTitle( title )
131
 
    wxString title
132
 
  CODE:
133
 
    THIS->wxHtmlWindow::OnSetTitle( title );
134
 
 
135
 
void
136
 
wxHtmlWindow::ReadCustomization( cfg, path = wxEmptyString )
137
 
    wxConfigBase* cfg
138
 
    wxString path
139
 
 
140
 
void
141
 
wxHtmlWindow::SetBorders( b )
142
 
    int b
143
 
 
144
 
void
145
 
wxHtmlWindow::SetFonts( normal_face, fixed_face, sizes )
146
 
    wxString normal_face
147
 
    wxString fixed_face
148
 
    SV* sizes
149
 
  PREINIT:
150
 
    int* array;
151
 
    int n = wxPli_av_2_intarray( aTHX_ sizes, &array );
152
 
  CODE:
153
 
    if( n != 7 )
154
 
    {
155
 
       delete[] array;
156
 
       croak( "Specified %d sizes, 7 wanted", n );
157
 
    }
158
 
    THIS->SetFonts( normal_face, fixed_face, array );
159
 
    delete[] array;
160
 
 
161
 
bool
162
 
wxHtmlWindow::SetPage( source )
163
 
    wxString source
164
 
 
165
 
void
166
 
wxHtmlWindow::SetRelatedFrame( frame, format )
167
 
    wxFrame* frame
168
 
    wxString format
169
 
 
170
 
void
171
 
wxHtmlWindow::SetRelatedStatusBar( bar )
172
 
    int bar
173
 
 
174
 
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
175
 
 
176
 
void
177
 
wxHtmlWindow::SelectWord( pos )
178
 
    wxPoint pos
179
 
 
180
 
void
181
 
wxHtmlWindow::SelectLine( pos )
182
 
    wxPoint pos
183
 
 
184
 
void
185
 
wxHtmlWindow::SelectAll()
186
 
 
187
 
wxString
188
 
wxHtmlWindow::SelectionToText()
189
 
 
190
 
wxString
191
 
wxHtmlWindow::ToText()
192
 
 
193
 
#endif
194
 
 
195
 
void
196
 
wxHtmlWindow::WriteCustomization( cfg, path = wxEmptyString )
197
 
    wxConfigBase* cfg
198
 
    wxString path
199
 
 
200
 
%}