more updates
[synfig.git] / synfig-core / trunk / src / synfig / layer_mime.h
1 /* === S I N F G =========================================================== */
2 /*!     \file layer_mime.h
3 **      \brief Template Header
4 **
5 **      $Id: layer_mime.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SINFG_LAYER_MIME_H
25 #define __SINFG_LAYER_MIME_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "layer.h"
30 #include "string.h"
31 #include <map>
32
33 /* === M A C R O S ========================================================= */
34
35 /* === T Y P E D E F S ===================================================== */
36
37 /* === C L A S S E S & S T R U C T S ======================================= */
38
39 namespace sinfg {
40
41 /*!     \class Layer_Mime
42 **      The mime layer is a layer that is used when an unknown
43 **      layer type is requested. This allows people without
44 **      all of the correct layers installed to still work with
45 **      that composition.
46 */
47 class Layer_Mime : public Layer
48 {
49         std::map<String,ValueBase> param_list;
50         String name;
51 public:
52         Layer_Mime(String name);
53
54         virtual String get_version()const;
55
56         virtual bool set_version(const String &ver);
57
58         virtual bool set_param(const String &param, const ValueBase &value);
59
60         virtual ValueBase get_param(const String &param)const;
61
62         virtual Color get_color(Context context, const Point &pos)const;
63         virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
64
65         virtual Vocab get_param_vocab()const;
66         virtual String get_local_name()const;
67
68 };
69
70 }; // END of namespace sinfg
71
72 /* === E N D =============================================================== */
73
74 #endif