OSDN Git Service

A couple of bugfix in the Document. The version number is set to 1.0b1.
[molby/Molby.git] / wxSources / MyClipboardData.h
1 /*
2  *  MyClipboardData.h
3  *  Molby
4  *
5  *  Created by Toshi Nagata on 08/11/26.
6  *  Copyright 2008 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 __MyClipboardData_h__
19 #define __MyClipboardData_h__
20
21 #include "wx/dataobj.h"
22
23 class MyClipboardData: public wxDataObjectSimple {
24 public:
25         char *buffer;
26         int length;
27         
28         MyClipboardData(const char *type);
29         virtual ~MyClipboardData();
30
31         virtual size_t GetDataSize() const;
32         virtual bool GetDataHere(void *buf) const;
33         virtual bool SetData(size_t len, const void *buf);
34 };
35
36 #endif /* __MyClipboardData_h__ */