2
* This file is part of wxSmith plugin for Code::Blocks Studio
3
* Copyright (C) 2006-2007 Bartlomiej Swiecki
5
* wxSmith is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3 of the License, or
8
* (at your option) any later version.
10
* wxSmith is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with wxSmith. If not, see <http://www.gnu.org/licenses/>.
19
* $Id: wxsmithmime.h 8251 2012-08-28 02:31:00Z ollydbg $
20
* $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-16.xx/src/plugins/contrib/wxSmith/wxsmithmime.h $
28
/** \brief Helper plugin dealing with mime types */
29
class wxSmithMime : public cbMimePlugin
36
/** \brief Returning true if can handle this file
38
* This function will handle two file types:
39
* - WXS files (will be opened only when project file is also opened)
40
* - XRC files (when there's project associated opened, it will open
41
* it's editor, when there's no such project, XRC will
42
* be edited externally)
44
virtual bool CanHandleFile(const wxString& filename) const;
46
/** \brief Opening file
48
* If this is wxs file and it's project is opened, proper editor will be
49
* opened / selected for xrc files, new editor without project will be used
51
virtual int OpenFile(const wxString& filename);
53
/** \brief We do not handle everything */
54
virtual bool HandlesEverything() const { return false; }