1 #############################################################################
2 ## Name: ext/docview/XS/Document.xs
3 ## Purpose: XS for wxDocument (Document/View Framework)
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 #############################################################################
13 #include <wx/cmdproc.h>
15 MODULE=Wx PACKAGE=Wx::Document
20 RETVAL=new wxPliDocument( CLASS );
25 wxDocument::DeleteContents()
31 wxDocument::OnCloseDocument()
34 wxDocument::NotifyClosing()
37 wxDocument::GetViews()
39 AV* arrViews = wxPli_objlist_2_av( aTHX_ THIS->GetViews() );
40 RETVAL = newRV_noinc( (SV*)arrViews );
44 wxDocument::DeleteAllViews()
47 wxDocument::GetFirstView()
50 wxDocument::GetDocumentManager()
53 wxDocument::GetDocumentTemplate()
56 wxDocument::GetDocumentName()
59 wxDocument::OnNewDocument()
68 wxDocument::OnSaveDocument( file )
72 wxDocument::OnOpenDocument( file )
76 wxDocument::GetDocumentSaved()
79 wxDocument::SetDocumentSaved( saved )
85 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
88 wxDocument::GetUserReadableName()
93 wxDocument::GetPrintableName( buf )
99 wxDocument::GetDocumentWindow()
102 wxDocument::OnCreateCommandProcessor()
105 wxDocument::SetCommandProcessor( processor )
106 wxCommandProcessor* processor
108 wxPli_object_set_deleteable( aTHX_ ST(1), false );
109 THIS->SetCommandProcessor( processor );
112 wxDocument::OnSaveModified()
115 wxDocument::IsModified( )
118 wxDocument::Modify( modify )
122 wxDocument::AddView( view )
126 wxDocument::RemoveView( view )
130 wxDocument::OnCreate( path, flags )
135 wxDocument::OnChangedViewList()
138 wxDocument::UpdateAllViews(sender = NULL, hint = NULL)
143 wxDocument::SetFilename(filename, notifyViews = false)
148 wxDocument::GetFilename()
151 wxDocument::SetTitle( title )
155 wxDocument::GetTitle()
158 wxDocument::SetDocumentName( name )
162 wxDocument::SetDocumentTemplate( templ )