Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / docview / XS / Document.xs
1 #############################################################################
2 ## Name:        ext/docview/XS/Document.xs
3 ## Purpose:     XS for wxDocument (Document/View Framework)
4 ## Author:      Simon Flack
5 ## Modified by:
6 ## Created:     11/09/2002
7 ## RCS-ID:      $Id: Document.xs 2188 2007-08-20 19:21:29Z mbarbon $
8 ## Copyright:   (c) 2001, 2004, 2007 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 #include <wx/cmdproc.h>
14
15 MODULE=Wx PACKAGE=Wx::Document
16
17 wxDocument*
18 wxDocument::new()
19   CODE:
20     RETVAL=new wxPliDocument( CLASS );
21   OUTPUT:
22     RETVAL
23
24 bool
25 wxDocument::DeleteContents()
26
27 bool
28 wxDocument::Close()
29
30 bool
31 wxDocument::OnCloseDocument()
32
33 void
34 wxDocument::NotifyClosing()
35
36 SV*
37 wxDocument::GetViews()
38   CODE:
39     AV* arrViews = wxPli_objlist_2_av( aTHX_ THIS->GetViews() );
40     RETVAL = newRV_noinc( (SV*)arrViews  );
41   OUTPUT: RETVAL
42
43 bool
44 wxDocument::DeleteAllViews()
45
46 wxView*
47 wxDocument::GetFirstView()
48
49 wxDocManager*
50 wxDocument::GetDocumentManager()
51
52 wxDocTemplate*
53 wxDocument::GetDocumentTemplate()
54
55 wxString
56 wxDocument::GetDocumentName()
57
58 bool
59 wxDocument::OnNewDocument()
60
61 bool
62 wxDocument::Save()
63
64 bool
65 wxDocument::SaveAs()
66
67 bool
68 wxDocument::OnSaveDocument( file )
69         wxString file
70
71 bool
72 wxDocument::OnOpenDocument( file )
73         wxString file
74
75 bool
76 wxDocument::GetDocumentSaved()
77
78 void
79 wxDocument::SetDocumentSaved( saved )
80     bool saved
81
82 bool
83 wxDocument::Revert()
84
85 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
86
87 wxString
88 wxDocument::GetUserReadableName()
89
90 #else
91
92 bool
93 wxDocument::GetPrintableName( buf )
94         wxString buf
95
96 #endif
97
98 wxWindow*
99 wxDocument::GetDocumentWindow()
100
101 wxCommandProcessor*
102 wxDocument::OnCreateCommandProcessor()
103
104 void
105 wxDocument::SetCommandProcessor( processor )
106     wxCommandProcessor* processor
107   CODE:
108     wxPli_object_set_deleteable( aTHX_ ST(1), false );
109     THIS->SetCommandProcessor( processor );
110
111 bool
112 wxDocument::OnSaveModified()
113
114 bool
115 wxDocument::IsModified( )
116
117 void
118 wxDocument::Modify( modify )
119         bool modify
120
121 bool
122 wxDocument::AddView( view )
123         wxView* view
124
125 bool
126 wxDocument::RemoveView( view )
127         wxView* view
128
129 bool
130 wxDocument::OnCreate( path, flags )
131         wxString path
132         long flags
133
134 void
135 wxDocument::OnChangedViewList()
136
137 void
138 wxDocument::UpdateAllViews(sender = NULL, hint = NULL)
139         wxView* sender
140         wxObject* hint
141
142 void
143 wxDocument::SetFilename(filename, notifyViews = false)
144         wxString filename
145         bool notifyViews
146
147 wxString
148 wxDocument::GetFilename()
149
150 void
151 wxDocument::SetTitle( title )
152     wxString title
153
154 wxString
155 wxDocument::GetTitle()
156
157 void
158 wxDocument::SetDocumentName( name )
159     wxString name
160
161 void
162 wxDocument::SetDocumentTemplate( templ )
163     wxDocTemplate* templ