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
|
#############################################################################
## Name: ext/richtext/XS/RichTextStyleCtrl.xsp
## Purpose: XS++ for Wx::RichText*Style* selection controls
## Author: Mattia Barbon
## Modified by:
## Created: 12/11/2006
## RCS-ID: $Id: RichTextStyleCtrl.xsp 2315 2008-01-18 21:47:17Z mbarbon $
## Copyright: (c) 2006-2008 Mattia Barbon
## Licence: This program is free software; you can redistribute it and/or
## modify it under the same terms as Perl itself
#############################################################################
#include <wx/checkbox.h>
#include <wx/richtext/richtextstyles.h>
%module{Wx};
%name{Wx::RichTextStyleListBox} class wxRichTextStyleListBox
{
#if WXPERL_W_VERSION_GE( 2, 7, 1 )
%name{newDefault} wxRichTextStyleListBox();
#endif
%name{newFull} wxRichTextStyleListBox
( wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0 );
%{
void
wxRichTextStyleListBox::new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newDefault )
MATCH_ANY_REDISP( newFull )
END_OVERLOAD( "Wx::RichTextStyleListBox::new" )
%}
bool Create( wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0 );
void SetStyleSheet( wxRichTextStyleSheet* styleSheet );
wxRichTextStyleSheetDisown* GetStyleSheet() const;
void SetRichTextCtrl( wxRichTextCtrl* ctrl );
wxRichTextCtrl* GetRichTextCtrl() const;
wxRichTextStyleDefinitionDisown* GetStyle( size_t i ) const;
#if WXPERL_W_VERSION_GE( 2, 7, 1 )
int GetIndexForStyle( const wxString& name ) const;
int SetStyleSelection( const wxString& name );
#endif
void UpdateStyles();
#if WXPERL_W_VERSION_GE( 2, 7, 1 )
void ApplyStyle( int i );
void SetApplyOnSelection( bool applyOnSel );
bool GetApplyOnSelection() const;
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 2 )
void SetStyleType( wxPliRichTextStyleType styleType );
wxPliRichTextStyleType GetStyleType() const;
#endif
int ConvertTenthsMMToPixels( wxDC& dc, int units ) const;
wxString CreateHTML( wxRichTextStyleDefinition* def ) const;
};
#if WXPERL_W_VERSION_GE( 2, 7, 2 )
%name{Wx::RichTextStyleListCtrl} class wxRichTextStyleListCtrl
{
%name{newDefault} wxRichTextStyleListCtrl();
%name{newFull} wxRichTextStyleListCtrl
( wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0 );
%{
void
wxRichTextStyleListCtrl::new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newDefault )
MATCH_ANY_REDISP( newFull )
END_OVERLOAD( "Wx::RichTextStyleListCtrl::new" )
%}
bool Create( wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0 );
void SetStyleSheet( wxRichTextStyleSheet* styleSheet );
wxRichTextStyleSheetDisown* GetStyleSheet() const;
void SetRichTextCtrl( wxRichTextCtrl* ctrl );
wxRichTextCtrl* GetRichTextCtrl() const;
void UpdateStyles();
void SetStyleType( wxPliRichTextStyleType styleType );
wxPliRichTextStyleType GetStyleType() const;
int StyleTypeToIndex( wxPliRichTextStyleType styleType );
wxPliRichTextStyleType StyleIndexToType( int i );
wxRichTextStyleListBox* GetStyleListBox() const;
wxChoice* GetStyleChoice() const;
};
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 1 )
%name{Wx::RichTextStyleComboCtrl} class wxRichTextStyleComboCtrl
{
%name{newDefault} wxRichTextStyleComboCtrl();
%name{newFull} wxRichTextStyleComboCtrl
( wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0 );
%{
void
wxRichTextStyleComboCtrl::new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newDefault )
MATCH_ANY_REDISP( newFull )
END_OVERLOAD( "Wx::RichTextStyleComboCtrl::new" )
%}
bool Create( wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0 );
void UpdateStyles();
void SetStyleSheet( wxRichTextStyleSheet* styleSheet );
wxRichTextStyleSheetDisown* GetStyleSheet() const;
void SetRichTextCtrl( wxRichTextCtrl* ctrl );
wxRichTextCtrl* GetRichTextCtrl() const;
};
#endif
|