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