OSDN Git Service

Handling key and mouse events in listctrl is improved
[molby/Molby.git] / wxSources / MyDocManager.h
1 /*
2  *  MyDocManager.h
3  *  Molby
4  *
5  *  Created by Toshi Nagata on 09/11/21.
6  *  Copyright 2009 Toshi Nagata. All rights reserved.
7  *
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation version 2 of the License.
11  
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  GNU General Public License for more details.
16  */
17
18 #ifndef __MyDocManager_h__
19 #define __MyDocManager_h__
20
21 #include "wx/docview.h"
22
23 class MyDocManager: public wxDocManager {
24 public:
25 //      wxDocument* CreateDocument(const wxString& path, long flags);
26 //      void OnFileOpen(wxCommandEvent& event);
27         void OnFileSave(wxCommandEvent& event);
28         void OnFileSaveAs(wxCommandEvent& event);
29         void SetDocumentTypesEnabled(const char **extensions, bool flag);
30         bool GetDocumentDescriptionAtIndex(int idx, wxString *outDescription, wxString *outFilter, wxString *outExtension);
31 private:
32         DECLARE_EVENT_TABLE()
33 };
34
35 #endif  /* __MyDocManager_h__ */