• Main Page
  • Classes
  • Files
  • File List

grts/structs.app.h

00001 #ifndef __grts_structs_app_h__
00002 #define __grts_structs_app_h__
00003 
00004 #include <grtpp.h>
00005 
00006 #ifdef _WIN32
00007   #pragma warning(disable: 4355) // 'this' : used in base member initizalizer list
00008   #ifdef GRT_STRUCTS_APP_EXPORT
00009   #define GRT_STRUCTS_APP_PUBLIC __declspec(dllexport)
00010 #else
00011   #define GRT_STRUCTS_APP_PUBLIC __declspec(dllimport)
00012 #endif
00013 #else
00014   #define GRT_STRUCTS_APP_PUBLIC
00015 #endif
00016 
00017 #include <grts/structs.h>
00018 
00019 
00020 class app_PluginInputDefinition;
00021 typedef grt::Ref<app_PluginInputDefinition> app_PluginInputDefinitionRef;
00022 class app_PluginObjectInput;
00023 typedef grt::Ref<app_PluginObjectInput> app_PluginObjectInputRef;
00024 class app_PluginFileInput;
00025 typedef grt::Ref<app_PluginFileInput> app_PluginFileInputRef;
00026 class app_PluginSelectionInput;
00027 typedef grt::Ref<app_PluginSelectionInput> app_PluginSelectionInputRef;
00028 class app_Plugin;
00029 typedef grt::Ref<app_Plugin> app_PluginRef;
00030 class app_DocumentPlugin;
00031 typedef grt::Ref<app_DocumentPlugin> app_DocumentPluginRef;
00032 class app_PluginGroup;
00033 typedef grt::Ref<app_PluginGroup> app_PluginGroupRef;
00034 class app_Toolbar;
00035 typedef grt::Ref<app_Toolbar> app_ToolbarRef;
00036 class app_CommandItem;
00037 typedef grt::Ref<app_CommandItem> app_CommandItemRef;
00038 class app_ToolbarItem;
00039 typedef grt::Ref<app_ToolbarItem> app_ToolbarItemRef;
00040 class app_ShortcutItem;
00041 typedef grt::Ref<app_ShortcutItem> app_ShortcutItemRef;
00042 class app_MenuItem;
00043 typedef grt::Ref<app_MenuItem> app_MenuItemRef;
00044 class app_CustomDataField;
00045 typedef grt::Ref<app_CustomDataField> app_CustomDataFieldRef;
00046 class app_PageSettings;
00047 typedef grt::Ref<app_PageSettings> app_PageSettingsRef;
00048 class app_PaperType;
00049 typedef grt::Ref<app_PaperType> app_PaperTypeRef;
00050 class app_Registry;
00051 typedef grt::Ref<app_Registry> app_RegistryRef;
00052 class app_Starter;
00053 typedef grt::Ref<app_Starter> app_StarterRef;
00054 class app_Starters;
00055 typedef grt::Ref<app_Starters> app_StartersRef;
00056 class app_Options;
00057 typedef grt::Ref<app_Options> app_OptionsRef;
00058 class app_DocumentInfo;
00059 typedef grt::Ref<app_DocumentInfo> app_DocumentInfoRef;
00060 class app_Info;
00061 typedef grt::Ref<app_Info> app_InfoRef;
00062 class app_Document;
00063 typedef grt::Ref<app_Document> app_DocumentRef;
00064 class app_Application;
00065 typedef grt::Ref<app_Application> app_ApplicationRef;
00066 
00067 
00068 class  app_PluginInputDefinition : public GrtObject
00069 {
00070   typedef GrtObject super;
00071 public:
00072   app_PluginInputDefinition(grt::GRT *grt, grt::MetaClass *meta=0)
00073   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name()))
00074 
00075   {
00076   }
00077 
00078   static std::string static_class_name() { return "app.PluginInputDefinition"; }
00079 
00080 protected:
00081 
00082 private: // wrapper methods for use by grt
00083   static grt::ObjectRef create(grt::GRT *grt)
00084   {
00085     return grt::ObjectRef(new app_PluginInputDefinition(grt));
00086   }
00087 
00088 
00089 public:
00090   static void grt_register(grt::GRT *grt)
00091   {
00092     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00093     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00094     meta->bind_allocator(&app_PluginInputDefinition::create);
00095   }
00096 };
00097 
00098 
00099 class  app_PluginObjectInput : public app_PluginInputDefinition
00100 {
00101   typedef app_PluginInputDefinition super;
00102 public:
00103   app_PluginObjectInput(grt::GRT *grt, grt::MetaClass *meta=0)
00104   : app_PluginInputDefinition(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00105      _objectStructName("")
00106 
00107   {
00108   }
00109 
00110   static std::string static_class_name() { return "app.PluginObjectInput"; }
00111 
00118   grt::StringRef objectStructName() const { return _objectStructName; }
00125   virtual void objectStructName(const grt::StringRef &value)
00126   {
00127     grt::ValueRef ovalue(_objectStructName);
00128    _objectStructName= value;
00129     member_changed("objectStructName", ovalue, value);
00130   }
00131 
00132 protected:
00133 
00134   grt::StringRef _objectStructName;
00135 private: // wrapper methods for use by grt
00136   static grt::ObjectRef create(grt::GRT *grt)
00137   {
00138     return grt::ObjectRef(new app_PluginObjectInput(grt));
00139   }
00140 
00141 
00142 public:
00143   static void grt_register(grt::GRT *grt)
00144   {
00145     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00146     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00147     meta->bind_allocator(&app_PluginObjectInput::create);
00148     {
00149       void (app_PluginObjectInput::*setter)(const grt::StringRef &)= &app_PluginObjectInput::objectStructName;
00150       grt::StringRef (app_PluginObjectInput::*getter)() const= &app_PluginObjectInput::objectStructName;
00151       meta->bind_member("objectStructName", new grt::MetaClass::Property<app_PluginObjectInput,grt::StringRef >(getter,setter));
00152     }
00153   }
00154 };
00155 
00156 
00157 class  app_PluginFileInput : public app_PluginInputDefinition
00158 {
00159   typedef app_PluginInputDefinition super;
00160 public:
00161   app_PluginFileInput(grt::GRT *grt, grt::MetaClass *meta=0)
00162   : app_PluginInputDefinition(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00163      _dialogTitle(""),
00164      _dialogType(""),
00165      _fileExtensions("")
00166 
00167   {
00168   }
00169 
00170   static std::string static_class_name() { return "app.PluginFileInput"; }
00171 
00178   grt::StringRef dialogTitle() const { return _dialogTitle; }
00185   virtual void dialogTitle(const grt::StringRef &value)
00186   {
00187     grt::ValueRef ovalue(_dialogTitle);
00188    _dialogTitle= value;
00189     member_changed("dialogTitle", ovalue, value);
00190   }
00191 
00198   grt::StringRef dialogType() const { return _dialogType; }
00205   virtual void dialogType(const grt::StringRef &value)
00206   {
00207     grt::ValueRef ovalue(_dialogType);
00208    _dialogType= value;
00209     member_changed("dialogType", ovalue, value);
00210   }
00211 
00218   grt::StringRef fileExtensions() const { return _fileExtensions; }
00225   virtual void fileExtensions(const grt::StringRef &value)
00226   {
00227     grt::ValueRef ovalue(_fileExtensions);
00228    _fileExtensions= value;
00229     member_changed("fileExtensions", ovalue, value);
00230   }
00231 
00232 protected:
00233 
00234   grt::StringRef _dialogTitle;
00235   grt::StringRef _dialogType;
00236   grt::StringRef _fileExtensions;
00237 private: // wrapper methods for use by grt
00238   static grt::ObjectRef create(grt::GRT *grt)
00239   {
00240     return grt::ObjectRef(new app_PluginFileInput(grt));
00241   }
00242 
00243 
00244 public:
00245   static void grt_register(grt::GRT *grt)
00246   {
00247     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00248     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00249     meta->bind_allocator(&app_PluginFileInput::create);
00250     {
00251       void (app_PluginFileInput::*setter)(const grt::StringRef &)= &app_PluginFileInput::dialogTitle;
00252       grt::StringRef (app_PluginFileInput::*getter)() const= &app_PluginFileInput::dialogTitle;
00253       meta->bind_member("dialogTitle", new grt::MetaClass::Property<app_PluginFileInput,grt::StringRef >(getter,setter));
00254     }
00255     {
00256       void (app_PluginFileInput::*setter)(const grt::StringRef &)= &app_PluginFileInput::dialogType;
00257       grt::StringRef (app_PluginFileInput::*getter)() const= &app_PluginFileInput::dialogType;
00258       meta->bind_member("dialogType", new grt::MetaClass::Property<app_PluginFileInput,grt::StringRef >(getter,setter));
00259     }
00260     {
00261       void (app_PluginFileInput::*setter)(const grt::StringRef &)= &app_PluginFileInput::fileExtensions;
00262       grt::StringRef (app_PluginFileInput::*getter)() const= &app_PluginFileInput::fileExtensions;
00263       meta->bind_member("fileExtensions", new grt::MetaClass::Property<app_PluginFileInput,grt::StringRef >(getter,setter));
00264     }
00265   }
00266 };
00267 
00268 
00270 class  app_PluginSelectionInput : public app_PluginInputDefinition
00271 {
00272   typedef app_PluginInputDefinition super;
00273 public:
00274   app_PluginSelectionInput(grt::GRT *grt, grt::MetaClass *meta=0)
00275   : app_PluginInputDefinition(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00276      _argumentCardinality(""),
00277     _objectStructNames(grt, this, false)
00278 
00279   {
00280   }
00281 
00282   static std::string static_class_name() { return "app.PluginSelectionInput"; }
00283 
00290   grt::StringRef argumentCardinality() const { return _argumentCardinality; }
00297   virtual void argumentCardinality(const grt::StringRef &value)
00298   {
00299     grt::ValueRef ovalue(_argumentCardinality);
00300    _argumentCardinality= value;
00301     member_changed("argumentCardinality", ovalue, value);
00302   }
00303 
00310   grt::StringListRef objectStructNames() const { return _objectStructNames; }
00311 private: // the next attribute is read-only
00312   virtual void objectStructNames(const grt::StringListRef &value)
00313   {
00314     grt::ValueRef ovalue(_objectStructNames);
00315    _objectStructNames= value;
00316     member_changed("objectStructNames", ovalue, value);
00317   }
00318 public:
00319 
00320 protected:
00321 
00322   grt::StringRef _argumentCardinality;
00323   grt::StringListRef _objectStructNames;
00324 private: // wrapper methods for use by grt
00325   static grt::ObjectRef create(grt::GRT *grt)
00326   {
00327     return grt::ObjectRef(new app_PluginSelectionInput(grt));
00328   }
00329 
00330 
00331 public:
00332   static void grt_register(grt::GRT *grt)
00333   {
00334     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00335     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00336     meta->bind_allocator(&app_PluginSelectionInput::create);
00337     {
00338       void (app_PluginSelectionInput::*setter)(const grt::StringRef &)= &app_PluginSelectionInput::argumentCardinality;
00339       grt::StringRef (app_PluginSelectionInput::*getter)() const= &app_PluginSelectionInput::argumentCardinality;
00340       meta->bind_member("argumentCardinality", new grt::MetaClass::Property<app_PluginSelectionInput,grt::StringRef >(getter,setter));
00341     }
00342     {
00343       void (app_PluginSelectionInput::*setter)(const grt::StringListRef &)= &app_PluginSelectionInput::objectStructNames;
00344       grt::StringListRef (app_PluginSelectionInput::*getter)() const= &app_PluginSelectionInput::objectStructNames;
00345       meta->bind_member("objectStructNames", new grt::MetaClass::Property<app_PluginSelectionInput,grt::StringListRef >(getter,setter));
00346     }
00347   }
00348 };
00349 
00350 
00352 class  app_Plugin : public GrtObject
00353 {
00354   typedef GrtObject super;
00355 public:
00356   app_Plugin(grt::GRT *grt, grt::MetaClass *meta=0)
00357   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00358     _attributes(grt, this, false),
00359      _caption(""),
00360      _description(""),
00361     _documentStructNames(grt, this, false),
00362     _groups(grt, this, false),
00363     _inputValues(grt, this, false),
00364      _moduleFunctionName(""),
00365      _moduleName(""),
00366      _pluginType(""),
00367      _rating(0),
00368      _showProgress(0)
00369 
00370   {
00371   }
00372 
00373   static std::string static_class_name() { return "app.Plugin"; }
00374 
00381   grt::DictRef attributes() const { return _attributes; }
00382 private: // the next attribute is read-only
00383   virtual void attributes(const grt::DictRef &value)
00384   {
00385     grt::ValueRef ovalue(_attributes);
00386    _attributes= value;
00387     member_changed("attributes", ovalue, value);
00388   }
00389 public:
00390 
00397   grt::StringRef caption() const { return _caption; }
00404   virtual void caption(const grt::StringRef &value)
00405   {
00406     grt::ValueRef ovalue(_caption);
00407    _caption= value;
00408     member_changed("caption", ovalue, value);
00409   }
00410 
00417   grt::StringRef description() const { return _description; }
00424   virtual void description(const grt::StringRef &value)
00425   {
00426     grt::ValueRef ovalue(_description);
00427    _description= value;
00428     member_changed("description", ovalue, value);
00429   }
00430 
00437   grt::StringListRef documentStructNames() const { return _documentStructNames; }
00438 private: // the next attribute is read-only
00439   virtual void documentStructNames(const grt::StringListRef &value)
00440   {
00441     grt::ValueRef ovalue(_documentStructNames);
00442    _documentStructNames= value;
00443     member_changed("documentStructNames", ovalue, value);
00444   }
00445 public:
00446 
00453   grt::StringListRef groups() const { return _groups; }
00454 private: // the next attribute is read-only
00455   virtual void groups(const grt::StringListRef &value)
00456   {
00457     grt::ValueRef ovalue(_groups);
00458    _groups= value;
00459     member_changed("groups", ovalue, value);
00460   }
00461 public:
00462 
00463   // inputValues is owned by app_Plugin
00470   grt::ListRef<app_PluginInputDefinition> inputValues() const { return _inputValues; }
00471 private: // the next attribute is read-only
00472   virtual void inputValues(const grt::ListRef<app_PluginInputDefinition> &value)
00473   {
00474     grt::ValueRef ovalue(_inputValues);
00475 
00476     _inputValues= value;
00477     owned_member_changed("inputValues", ovalue, value);
00478   }
00479 public:
00480 
00487   grt::StringRef moduleFunctionName() const { return _moduleFunctionName; }
00494   virtual void moduleFunctionName(const grt::StringRef &value)
00495   {
00496     grt::ValueRef ovalue(_moduleFunctionName);
00497    _moduleFunctionName= value;
00498     member_changed("moduleFunctionName", ovalue, value);
00499   }
00500 
00507   grt::StringRef moduleName() const { return _moduleName; }
00514   virtual void moduleName(const grt::StringRef &value)
00515   {
00516     grt::ValueRef ovalue(_moduleName);
00517    _moduleName= value;
00518     member_changed("moduleName", ovalue, value);
00519   }
00520 
00527   grt::StringRef pluginType() const { return _pluginType; }
00534   virtual void pluginType(const grt::StringRef &value)
00535   {
00536     grt::ValueRef ovalue(_pluginType);
00537    _pluginType= value;
00538     member_changed("pluginType", ovalue, value);
00539   }
00540 
00547   grt::IntegerRef rating() const { return _rating; }
00554   virtual void rating(const grt::IntegerRef &value)
00555   {
00556     grt::ValueRef ovalue(_rating);
00557    _rating= value;
00558     member_changed("rating", ovalue, value);
00559   }
00560 
00567   grt::IntegerRef showProgress() const { return _showProgress; }
00574   virtual void showProgress(const grt::IntegerRef &value)
00575   {
00576     grt::ValueRef ovalue(_showProgress);
00577    _showProgress= value;
00578     member_changed("showProgress", ovalue, value);
00579   }
00580 
00581 protected:
00582 
00583   grt::DictRef _attributes;
00584   grt::StringRef _caption;
00585   grt::StringRef _description;
00586   grt::StringListRef _documentStructNames;
00587   grt::StringListRef _groups;
00588   grt::ListRef<app_PluginInputDefinition> _inputValues;// owned
00589   grt::StringRef _moduleFunctionName;
00590   grt::StringRef _moduleName;
00591   grt::StringRef _pluginType;
00592   grt::IntegerRef _rating;
00593   grt::IntegerRef _showProgress;
00594 private: // wrapper methods for use by grt
00595   static grt::ObjectRef create(grt::GRT *grt)
00596   {
00597     return grt::ObjectRef(new app_Plugin(grt));
00598   }
00599 
00600 
00601 public:
00602   static void grt_register(grt::GRT *grt)
00603   {
00604     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00605     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00606     meta->bind_allocator(&app_Plugin::create);
00607     {
00608       void (app_Plugin::*setter)(const grt::DictRef &)= &app_Plugin::attributes;
00609       grt::DictRef (app_Plugin::*getter)() const= &app_Plugin::attributes;
00610       meta->bind_member("attributes", new grt::MetaClass::Property<app_Plugin,grt::DictRef >(getter,setter));
00611     }
00612     {
00613       void (app_Plugin::*setter)(const grt::StringRef &)= &app_Plugin::caption;
00614       grt::StringRef (app_Plugin::*getter)() const= &app_Plugin::caption;
00615       meta->bind_member("caption", new grt::MetaClass::Property<app_Plugin,grt::StringRef >(getter,setter));
00616     }
00617     {
00618       void (app_Plugin::*setter)(const grt::StringRef &)= &app_Plugin::description;
00619       grt::StringRef (app_Plugin::*getter)() const= &app_Plugin::description;
00620       meta->bind_member("description", new grt::MetaClass::Property<app_Plugin,grt::StringRef >(getter,setter));
00621     }
00622     {
00623       void (app_Plugin::*setter)(const grt::StringListRef &)= &app_Plugin::documentStructNames;
00624       grt::StringListRef (app_Plugin::*getter)() const= &app_Plugin::documentStructNames;
00625       meta->bind_member("documentStructNames", new grt::MetaClass::Property<app_Plugin,grt::StringListRef >(getter,setter));
00626     }
00627     {
00628       void (app_Plugin::*setter)(const grt::StringListRef &)= &app_Plugin::groups;
00629       grt::StringListRef (app_Plugin::*getter)() const= &app_Plugin::groups;
00630       meta->bind_member("groups", new grt::MetaClass::Property<app_Plugin,grt::StringListRef >(getter,setter));
00631     }
00632     {
00633       void (app_Plugin::*setter)(const grt::ListRef<app_PluginInputDefinition> &)= &app_Plugin::inputValues;
00634       grt::ListRef<app_PluginInputDefinition> (app_Plugin::*getter)() const= &app_Plugin::inputValues;
00635       meta->bind_member("inputValues", new grt::MetaClass::Property<app_Plugin,grt::ListRef<app_PluginInputDefinition> >(getter,setter));
00636     }
00637     {
00638       void (app_Plugin::*setter)(const grt::StringRef &)= &app_Plugin::moduleFunctionName;
00639       grt::StringRef (app_Plugin::*getter)() const= &app_Plugin::moduleFunctionName;
00640       meta->bind_member("moduleFunctionName", new grt::MetaClass::Property<app_Plugin,grt::StringRef >(getter,setter));
00641     }
00642     {
00643       void (app_Plugin::*setter)(const grt::StringRef &)= &app_Plugin::moduleName;
00644       grt::StringRef (app_Plugin::*getter)() const= &app_Plugin::moduleName;
00645       meta->bind_member("moduleName", new grt::MetaClass::Property<app_Plugin,grt::StringRef >(getter,setter));
00646     }
00647     {
00648       void (app_Plugin::*setter)(const grt::StringRef &)= &app_Plugin::pluginType;
00649       grt::StringRef (app_Plugin::*getter)() const= &app_Plugin::pluginType;
00650       meta->bind_member("pluginType", new grt::MetaClass::Property<app_Plugin,grt::StringRef >(getter,setter));
00651     }
00652     {
00653       void (app_Plugin::*setter)(const grt::IntegerRef &)= &app_Plugin::rating;
00654       grt::IntegerRef (app_Plugin::*getter)() const= &app_Plugin::rating;
00655       meta->bind_member("rating", new grt::MetaClass::Property<app_Plugin,grt::IntegerRef >(getter,setter));
00656     }
00657     {
00658       void (app_Plugin::*setter)(const grt::IntegerRef &)= &app_Plugin::showProgress;
00659       grt::IntegerRef (app_Plugin::*getter)() const= &app_Plugin::showProgress;
00660       meta->bind_member("showProgress", new grt::MetaClass::Property<app_Plugin,grt::IntegerRef >(getter,setter));
00661     }
00662   }
00663 };
00664 
00665 
00666 class  app_DocumentPlugin : public app_Plugin
00667 {
00668   typedef app_Plugin super;
00669 public:
00670   app_DocumentPlugin(grt::GRT *grt, grt::MetaClass *meta=0)
00671   : app_Plugin(grt, meta ? meta : grt->get_metaclass(static_class_name()))
00672 
00673   {
00674     _documentStructNames.content().__retype(grt::ObjectType, "");
00675   }
00676 
00677   static std::string static_class_name() { return "app.DocumentPlugin"; }
00678 
00685 private: // the next attribute is read-only
00686 public:
00687 
00688 protected:
00689 
00690 private: // wrapper methods for use by grt
00691   static grt::ObjectRef create(grt::GRT *grt)
00692   {
00693     return grt::ObjectRef(new app_DocumentPlugin(grt));
00694   }
00695 
00696 
00697 public:
00698   static void grt_register(grt::GRT *grt)
00699   {
00700     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00701     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00702     meta->bind_allocator(&app_DocumentPlugin::create);
00703     {
00704       void (app_DocumentPlugin::*setter)(const grt::StringListRef &)= 0;
00705       grt::StringListRef (app_DocumentPlugin::*getter)() const= 0;
00706       meta->bind_member("documentStructNames", new grt::MetaClass::Property<app_DocumentPlugin,grt::StringListRef >(getter,setter));
00707     }
00708   }
00709 };
00710 
00711 
00713 class  app_PluginGroup : public GrtObject
00714 {
00715   typedef GrtObject super;
00716 public:
00717   app_PluginGroup(grt::GRT *grt, grt::MetaClass *meta=0)
00718   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00719      _category(""),
00720     _plugins(grt, this, false)
00721 
00722   {
00723   }
00724 
00725   static std::string static_class_name() { return "app.PluginGroup"; }
00726 
00733   grt::StringRef category() const { return _category; }
00740   virtual void category(const grt::StringRef &value)
00741   {
00742     grt::ValueRef ovalue(_category);
00743    _category= value;
00744     member_changed("category", ovalue, value);
00745   }
00746 
00747   // plugins is owned by app_PluginGroup
00754   grt::ListRef<app_Plugin> plugins() const { return _plugins; }
00755 private: // the next attribute is read-only
00756   virtual void plugins(const grt::ListRef<app_Plugin> &value)
00757   {
00758     grt::ValueRef ovalue(_plugins);
00759 
00760     _plugins= value;
00761     owned_member_changed("plugins", ovalue, value);
00762   }
00763 public:
00764 
00765 protected:
00766 
00767   grt::StringRef _category;
00768   grt::ListRef<app_Plugin> _plugins;// owned
00769 private: // wrapper methods for use by grt
00770   static grt::ObjectRef create(grt::GRT *grt)
00771   {
00772     return grt::ObjectRef(new app_PluginGroup(grt));
00773   }
00774 
00775 
00776 public:
00777   static void grt_register(grt::GRT *grt)
00778   {
00779     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00780     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00781     meta->bind_allocator(&app_PluginGroup::create);
00782     {
00783       void (app_PluginGroup::*setter)(const grt::StringRef &)= &app_PluginGroup::category;
00784       grt::StringRef (app_PluginGroup::*getter)() const= &app_PluginGroup::category;
00785       meta->bind_member("category", new grt::MetaClass::Property<app_PluginGroup,grt::StringRef >(getter,setter));
00786     }
00787     {
00788       void (app_PluginGroup::*setter)(const grt::ListRef<app_Plugin> &)= &app_PluginGroup::plugins;
00789       grt::ListRef<app_Plugin> (app_PluginGroup::*getter)() const= &app_PluginGroup::plugins;
00790       meta->bind_member("plugins", new grt::MetaClass::Property<app_PluginGroup,grt::ListRef<app_Plugin> >(getter,setter));
00791     }
00792   }
00793 };
00794 
00795 
00796 class  app_Toolbar : public GrtObject
00797 {
00798   typedef GrtObject super;
00799 public:
00800   app_Toolbar(grt::GRT *grt, grt::MetaClass *meta=0)
00801   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00802     _items(grt, this, false)
00803 
00804   {
00805   }
00806 
00807   static std::string static_class_name() { return "app.Toolbar"; }
00808 
00809   // items is owned by app_Toolbar
00816   grt::ListRef<app_ToolbarItem> items() const { return _items; }
00817 private: // the next attribute is read-only
00818   virtual void items(const grt::ListRef<app_ToolbarItem> &value)
00819   {
00820     grt::ValueRef ovalue(_items);
00821 
00822     _items= value;
00823     owned_member_changed("items", ovalue, value);
00824   }
00825 public:
00826 
00827 protected:
00828 
00829   grt::ListRef<app_ToolbarItem> _items;// owned
00830 private: // wrapper methods for use by grt
00831   static grt::ObjectRef create(grt::GRT *grt)
00832   {
00833     return grt::ObjectRef(new app_Toolbar(grt));
00834   }
00835 
00836 
00837 public:
00838   static void grt_register(grt::GRT *grt)
00839   {
00840     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00841     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00842     meta->bind_allocator(&app_Toolbar::create);
00843     {
00844       void (app_Toolbar::*setter)(const grt::ListRef<app_ToolbarItem> &)= &app_Toolbar::items;
00845       grt::ListRef<app_ToolbarItem> (app_Toolbar::*getter)() const= &app_Toolbar::items;
00846       meta->bind_member("items", new grt::MetaClass::Property<app_Toolbar,grt::ListRef<app_ToolbarItem> >(getter,setter));
00847     }
00848   }
00849 };
00850 
00851 
00852 class  app_CommandItem : public GrtObject
00853 {
00854   typedef GrtObject super;
00855 public:
00856   app_CommandItem(grt::GRT *grt, grt::MetaClass *meta=0)
00857   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00858      _command(""),
00859      _context(""),
00860      _platform("")
00861 
00862   {
00863   }
00864 
00865   static std::string static_class_name() { return "app.CommandItem"; }
00866 
00873   grt::StringRef command() const { return _command; }
00880   virtual void command(const grt::StringRef &value)
00881   {
00882     grt::ValueRef ovalue(_command);
00883    _command= value;
00884     member_changed("command", ovalue, value);
00885   }
00886 
00893   grt::StringRef context() const { return _context; }
00900   virtual void context(const grt::StringRef &value)
00901   {
00902     grt::ValueRef ovalue(_context);
00903    _context= value;
00904     member_changed("context", ovalue, value);
00905   }
00906 
00913   grt::StringRef platform() const { return _platform; }
00920   virtual void platform(const grt::StringRef &value)
00921   {
00922     grt::ValueRef ovalue(_platform);
00923    _platform= value;
00924     member_changed("platform", ovalue, value);
00925   }
00926 
00927 protected:
00928 
00929   grt::StringRef _command;
00930   grt::StringRef _context;
00931   grt::StringRef _platform;
00932 private: // wrapper methods for use by grt
00933   static grt::ObjectRef create(grt::GRT *grt)
00934   {
00935     return grt::ObjectRef(new app_CommandItem(grt));
00936   }
00937 
00938 
00939 public:
00940   static void grt_register(grt::GRT *grt)
00941   {
00942     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
00943     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
00944     meta->bind_allocator(&app_CommandItem::create);
00945     {
00946       void (app_CommandItem::*setter)(const grt::StringRef &)= &app_CommandItem::command;
00947       grt::StringRef (app_CommandItem::*getter)() const= &app_CommandItem::command;
00948       meta->bind_member("command", new grt::MetaClass::Property<app_CommandItem,grt::StringRef >(getter,setter));
00949     }
00950     {
00951       void (app_CommandItem::*setter)(const grt::StringRef &)= &app_CommandItem::context;
00952       grt::StringRef (app_CommandItem::*getter)() const= &app_CommandItem::context;
00953       meta->bind_member("context", new grt::MetaClass::Property<app_CommandItem,grt::StringRef >(getter,setter));
00954     }
00955     {
00956       void (app_CommandItem::*setter)(const grt::StringRef &)= &app_CommandItem::platform;
00957       grt::StringRef (app_CommandItem::*getter)() const= &app_CommandItem::platform;
00958       meta->bind_member("platform", new grt::MetaClass::Property<app_CommandItem,grt::StringRef >(getter,setter));
00959     }
00960   }
00961 };
00962 
00963 
00964 class  app_ToolbarItem : public app_CommandItem
00965 {
00966   typedef app_CommandItem super;
00967 public:
00968   app_ToolbarItem(grt::GRT *grt, grt::MetaClass *meta=0)
00969   : app_CommandItem(grt, meta ? meta : grt->get_metaclass(static_class_name())),
00970      _altIcon(""),
00971      _icon(""),
00972      _itemType(""),
00973      _tooltip("")
00974 
00975   {
00976   }
00977 
00978   static std::string static_class_name() { return "app.ToolbarItem"; }
00979 
00986   grt::StringRef altIcon() const { return _altIcon; }
00993   virtual void altIcon(const grt::StringRef &value)
00994   {
00995     grt::ValueRef ovalue(_altIcon);
00996    _altIcon= value;
00997     member_changed("altIcon", ovalue, value);
00998   }
00999 
01006   grt::StringRef icon() const { return _icon; }
01013   virtual void icon(const grt::StringRef &value)
01014   {
01015     grt::ValueRef ovalue(_icon);
01016    _icon= value;
01017     member_changed("icon", ovalue, value);
01018   }
01019 
01026   grt::StringRef itemType() const { return _itemType; }
01033   virtual void itemType(const grt::StringRef &value)
01034   {
01035     grt::ValueRef ovalue(_itemType);
01036    _itemType= value;
01037     member_changed("itemType", ovalue, value);
01038   }
01039 
01046   grt::StringRef tooltip() const { return _tooltip; }
01053   virtual void tooltip(const grt::StringRef &value)
01054   {
01055     grt::ValueRef ovalue(_tooltip);
01056    _tooltip= value;
01057     member_changed("tooltip", ovalue, value);
01058   }
01059 
01060 protected:
01061 
01062   grt::StringRef _altIcon;
01063   grt::StringRef _icon;
01064   grt::StringRef _itemType;
01065   grt::StringRef _tooltip;
01066 private: // wrapper methods for use by grt
01067   static grt::ObjectRef create(grt::GRT *grt)
01068   {
01069     return grt::ObjectRef(new app_ToolbarItem(grt));
01070   }
01071 
01072 
01073 public:
01074   static void grt_register(grt::GRT *grt)
01075   {
01076     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01077     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01078     meta->bind_allocator(&app_ToolbarItem::create);
01079     {
01080       void (app_ToolbarItem::*setter)(const grt::StringRef &)= &app_ToolbarItem::altIcon;
01081       grt::StringRef (app_ToolbarItem::*getter)() const= &app_ToolbarItem::altIcon;
01082       meta->bind_member("altIcon", new grt::MetaClass::Property<app_ToolbarItem,grt::StringRef >(getter,setter));
01083     }
01084     {
01085       void (app_ToolbarItem::*setter)(const grt::StringRef &)= &app_ToolbarItem::icon;
01086       grt::StringRef (app_ToolbarItem::*getter)() const= &app_ToolbarItem::icon;
01087       meta->bind_member("icon", new grt::MetaClass::Property<app_ToolbarItem,grt::StringRef >(getter,setter));
01088     }
01089     {
01090       void (app_ToolbarItem::*setter)(const grt::StringRef &)= &app_ToolbarItem::itemType;
01091       grt::StringRef (app_ToolbarItem::*getter)() const= &app_ToolbarItem::itemType;
01092       meta->bind_member("itemType", new grt::MetaClass::Property<app_ToolbarItem,grt::StringRef >(getter,setter));
01093     }
01094     {
01095       void (app_ToolbarItem::*setter)(const grt::StringRef &)= &app_ToolbarItem::tooltip;
01096       grt::StringRef (app_ToolbarItem::*getter)() const= &app_ToolbarItem::tooltip;
01097       meta->bind_member("tooltip", new grt::MetaClass::Property<app_ToolbarItem,grt::StringRef >(getter,setter));
01098     }
01099   }
01100 };
01101 
01102 
01103 class  app_ShortcutItem : public app_CommandItem
01104 {
01105   typedef app_CommandItem super;
01106 public:
01107   app_ShortcutItem(grt::GRT *grt, grt::MetaClass *meta=0)
01108   : app_CommandItem(grt, meta ? meta : grt->get_metaclass(static_class_name())),
01109      _shortcut("")
01110 
01111   {
01112   }
01113 
01114   static std::string static_class_name() { return "app.ShortcutItem"; }
01115 
01122   grt::StringRef shortcut() const { return _shortcut; }
01129   virtual void shortcut(const grt::StringRef &value)
01130   {
01131     grt::ValueRef ovalue(_shortcut);
01132    _shortcut= value;
01133     member_changed("shortcut", ovalue, value);
01134   }
01135 
01136 protected:
01137 
01138   grt::StringRef _shortcut;
01139 private: // wrapper methods for use by grt
01140   static grt::ObjectRef create(grt::GRT *grt)
01141   {
01142     return grt::ObjectRef(new app_ShortcutItem(grt));
01143   }
01144 
01145 
01146 public:
01147   static void grt_register(grt::GRT *grt)
01148   {
01149     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01150     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01151     meta->bind_allocator(&app_ShortcutItem::create);
01152     {
01153       void (app_ShortcutItem::*setter)(const grt::StringRef &)= &app_ShortcutItem::shortcut;
01154       grt::StringRef (app_ShortcutItem::*getter)() const= &app_ShortcutItem::shortcut;
01155       meta->bind_member("shortcut", new grt::MetaClass::Property<app_ShortcutItem,grt::StringRef >(getter,setter));
01156     }
01157   }
01158 };
01159 
01160 
01161 class  app_MenuItem : public app_CommandItem
01162 {
01163   typedef app_CommandItem super;
01164 public:
01165   app_MenuItem(grt::GRT *grt, grt::MetaClass *meta=0)
01166   : app_CommandItem(grt, meta ? meta : grt->get_metaclass(static_class_name())),
01167      _caption(""),
01168      _itemType(""),
01169      _shortcut(""),
01170     _subItems(grt, this, false)
01171 
01172   {
01173   }
01174 
01175   static std::string static_class_name() { return "app.MenuItem"; }
01176 
01183   grt::StringRef caption() const { return _caption; }
01190   virtual void caption(const grt::StringRef &value)
01191   {
01192     grt::ValueRef ovalue(_caption);
01193    _caption= value;
01194     member_changed("caption", ovalue, value);
01195   }
01196 
01203   grt::StringRef itemType() const { return _itemType; }
01210   virtual void itemType(const grt::StringRef &value)
01211   {
01212     grt::ValueRef ovalue(_itemType);
01213    _itemType= value;
01214     member_changed("itemType", ovalue, value);
01215   }
01216 
01223   grt::StringRef shortcut() const { return _shortcut; }
01230   virtual void shortcut(const grt::StringRef &value)
01231   {
01232     grt::ValueRef ovalue(_shortcut);
01233    _shortcut= value;
01234     member_changed("shortcut", ovalue, value);
01235   }
01236 
01237   // subItems is owned by app_MenuItem
01244   grt::ListRef<app_MenuItem> subItems() const { return _subItems; }
01245 private: // the next attribute is read-only
01246   virtual void subItems(const grt::ListRef<app_MenuItem> &value)
01247   {
01248     grt::ValueRef ovalue(_subItems);
01249 
01250     _subItems= value;
01251     owned_member_changed("subItems", ovalue, value);
01252   }
01253 public:
01254 
01255 protected:
01256 
01257   grt::StringRef _caption;
01258   grt::StringRef _itemType;
01259   grt::StringRef _shortcut;
01260   grt::ListRef<app_MenuItem> _subItems;// owned
01261 private: // wrapper methods for use by grt
01262   static grt::ObjectRef create(grt::GRT *grt)
01263   {
01264     return grt::ObjectRef(new app_MenuItem(grt));
01265   }
01266 
01267 
01268 public:
01269   static void grt_register(grt::GRT *grt)
01270   {
01271     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01272     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01273     meta->bind_allocator(&app_MenuItem::create);
01274     {
01275       void (app_MenuItem::*setter)(const grt::StringRef &)= &app_MenuItem::caption;
01276       grt::StringRef (app_MenuItem::*getter)() const= &app_MenuItem::caption;
01277       meta->bind_member("caption", new grt::MetaClass::Property<app_MenuItem,grt::StringRef >(getter,setter));
01278     }
01279     {
01280       void (app_MenuItem::*setter)(const grt::StringRef &)= &app_MenuItem::itemType;
01281       grt::StringRef (app_MenuItem::*getter)() const= &app_MenuItem::itemType;
01282       meta->bind_member("itemType", new grt::MetaClass::Property<app_MenuItem,grt::StringRef >(getter,setter));
01283     }
01284     {
01285       void (app_MenuItem::*setter)(const grt::StringRef &)= &app_MenuItem::shortcut;
01286       grt::StringRef (app_MenuItem::*getter)() const= &app_MenuItem::shortcut;
01287       meta->bind_member("shortcut", new grt::MetaClass::Property<app_MenuItem,grt::StringRef >(getter,setter));
01288     }
01289     {
01290       void (app_MenuItem::*setter)(const grt::ListRef<app_MenuItem> &)= &app_MenuItem::subItems;
01291       grt::ListRef<app_MenuItem> (app_MenuItem::*getter)() const= &app_MenuItem::subItems;
01292       meta->bind_member("subItems", new grt::MetaClass::Property<app_MenuItem,grt::ListRef<app_MenuItem> >(getter,setter));
01293     }
01294   }
01295 };
01296 
01297 
01298 class  app_CustomDataField : public GrtObject
01299 {
01300   typedef GrtObject super;
01301 public:
01302   app_CustomDataField(grt::GRT *grt, grt::MetaClass *meta=0)
01303   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
01304      _defaultValue(""),
01305      _description(""),
01306      _objectStruct(""),
01307      _type("")
01308 
01309   {
01310   }
01311 
01312   static std::string static_class_name() { return "app.CustomDataField"; }
01313 
01320   grt::StringRef defaultValue() const { return _defaultValue; }
01327   virtual void defaultValue(const grt::StringRef &value)
01328   {
01329     grt::ValueRef ovalue(_defaultValue);
01330    _defaultValue= value;
01331     member_changed("defaultValue", ovalue, value);
01332   }
01333 
01340   grt::StringRef description() const { return _description; }
01347   virtual void description(const grt::StringRef &value)
01348   {
01349     grt::ValueRef ovalue(_description);
01350    _description= value;
01351     member_changed("description", ovalue, value);
01352   }
01353 
01360   grt::StringRef objectStruct() const { return _objectStruct; }
01367   virtual void objectStruct(const grt::StringRef &value)
01368   {
01369     grt::ValueRef ovalue(_objectStruct);
01370    _objectStruct= value;
01371     member_changed("objectStruct", ovalue, value);
01372   }
01373 
01380   grt::StringRef type() const { return _type; }
01387   virtual void type(const grt::StringRef &value)
01388   {
01389     grt::ValueRef ovalue(_type);
01390    _type= value;
01391     member_changed("type", ovalue, value);
01392   }
01393 
01394 protected:
01395 
01396   grt::StringRef _defaultValue;
01397   grt::StringRef _description;
01398   grt::StringRef _objectStruct;
01399   grt::StringRef _type;
01400 private: // wrapper methods for use by grt
01401   static grt::ObjectRef create(grt::GRT *grt)
01402   {
01403     return grt::ObjectRef(new app_CustomDataField(grt));
01404   }
01405 
01406 
01407 public:
01408   static void grt_register(grt::GRT *grt)
01409   {
01410     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01411     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01412     meta->bind_allocator(&app_CustomDataField::create);
01413     {
01414       void (app_CustomDataField::*setter)(const grt::StringRef &)= &app_CustomDataField::defaultValue;
01415       grt::StringRef (app_CustomDataField::*getter)() const= &app_CustomDataField::defaultValue;
01416       meta->bind_member("defaultValue", new grt::MetaClass::Property<app_CustomDataField,grt::StringRef >(getter,setter));
01417     }
01418     {
01419       void (app_CustomDataField::*setter)(const grt::StringRef &)= &app_CustomDataField::description;
01420       grt::StringRef (app_CustomDataField::*getter)() const= &app_CustomDataField::description;
01421       meta->bind_member("description", new grt::MetaClass::Property<app_CustomDataField,grt::StringRef >(getter,setter));
01422     }
01423     {
01424       void (app_CustomDataField::*setter)(const grt::StringRef &)= &app_CustomDataField::objectStruct;
01425       grt::StringRef (app_CustomDataField::*getter)() const= &app_CustomDataField::objectStruct;
01426       meta->bind_member("objectStruct", new grt::MetaClass::Property<app_CustomDataField,grt::StringRef >(getter,setter));
01427     }
01428     {
01429       void (app_CustomDataField::*setter)(const grt::StringRef &)= &app_CustomDataField::type;
01430       grt::StringRef (app_CustomDataField::*getter)() const= &app_CustomDataField::type;
01431       meta->bind_member("type", new grt::MetaClass::Property<app_CustomDataField,grt::StringRef >(getter,setter));
01432     }
01433   }
01434 };
01435 
01436 
01437 class  app_PageSettings : public GrtObject
01438 {
01439   typedef GrtObject super;
01440 public:
01441   app_PageSettings(grt::GRT *grt, grt::MetaClass *meta=0)
01442   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
01443      _marginBottom(0.0),
01444      _marginLeft(0.0),
01445      _marginRight(0.0),
01446      _marginTop(0.0),
01447      _orientation(""),
01448      _scale(5)
01449 
01450   {
01451   }
01452 
01453   static std::string static_class_name() { return "app.PageSettings"; }
01454 
01461   grt::DoubleRef marginBottom() const { return _marginBottom; }
01468   virtual void marginBottom(const grt::DoubleRef &value)
01469   {
01470     grt::ValueRef ovalue(_marginBottom);
01471    _marginBottom= value;
01472     member_changed("marginBottom", ovalue, value);
01473   }
01474 
01481   grt::DoubleRef marginLeft() const { return _marginLeft; }
01488   virtual void marginLeft(const grt::DoubleRef &value)
01489   {
01490     grt::ValueRef ovalue(_marginLeft);
01491    _marginLeft= value;
01492     member_changed("marginLeft", ovalue, value);
01493   }
01494 
01501   grt::DoubleRef marginRight() const { return _marginRight; }
01508   virtual void marginRight(const grt::DoubleRef &value)
01509   {
01510     grt::ValueRef ovalue(_marginRight);
01511    _marginRight= value;
01512     member_changed("marginRight", ovalue, value);
01513   }
01514 
01521   grt::DoubleRef marginTop() const { return _marginTop; }
01528   virtual void marginTop(const grt::DoubleRef &value)
01529   {
01530     grt::ValueRef ovalue(_marginTop);
01531    _marginTop= value;
01532     member_changed("marginTop", ovalue, value);
01533   }
01534 
01541   grt::StringRef orientation() const { return _orientation; }
01548   virtual void orientation(const grt::StringRef &value)
01549   {
01550     grt::ValueRef ovalue(_orientation);
01551    _orientation= value;
01552     member_changed("orientation", ovalue, value);
01553   }
01554 
01561   app_PaperTypeRef paperType() const { return _paperType; }
01568   virtual void paperType(const app_PaperTypeRef &value)
01569   {
01570     grt::ValueRef ovalue(_paperType);
01571    _paperType= value;
01572     member_changed("paperType", ovalue, value);
01573   }
01574 
01581   grt::DoubleRef scale() const { return _scale; }
01588   virtual void scale(const grt::DoubleRef &value)
01589   {
01590     grt::ValueRef ovalue(_scale);
01591    _scale= value;
01592     member_changed("scale", ovalue, value);
01593   }
01594 
01595 protected:
01596 
01597   grt::DoubleRef _marginBottom;
01598   grt::DoubleRef _marginLeft;
01599   grt::DoubleRef _marginRight;
01600   grt::DoubleRef _marginTop;
01601   grt::StringRef _orientation;
01602   app_PaperTypeRef _paperType;
01603   grt::DoubleRef _scale;
01604 private: // wrapper methods for use by grt
01605   static grt::ObjectRef create(grt::GRT *grt)
01606   {
01607     return grt::ObjectRef(new app_PageSettings(grt));
01608   }
01609 
01610 
01611 public:
01612   static void grt_register(grt::GRT *grt)
01613   {
01614     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01615     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01616     meta->bind_allocator(&app_PageSettings::create);
01617     {
01618       void (app_PageSettings::*setter)(const grt::DoubleRef &)= &app_PageSettings::marginBottom;
01619       grt::DoubleRef (app_PageSettings::*getter)() const= &app_PageSettings::marginBottom;
01620       meta->bind_member("marginBottom", new grt::MetaClass::Property<app_PageSettings,grt::DoubleRef >(getter,setter));
01621     }
01622     {
01623       void (app_PageSettings::*setter)(const grt::DoubleRef &)= &app_PageSettings::marginLeft;
01624       grt::DoubleRef (app_PageSettings::*getter)() const= &app_PageSettings::marginLeft;
01625       meta->bind_member("marginLeft", new grt::MetaClass::Property<app_PageSettings,grt::DoubleRef >(getter,setter));
01626     }
01627     {
01628       void (app_PageSettings::*setter)(const grt::DoubleRef &)= &app_PageSettings::marginRight;
01629       grt::DoubleRef (app_PageSettings::*getter)() const= &app_PageSettings::marginRight;
01630       meta->bind_member("marginRight", new grt::MetaClass::Property<app_PageSettings,grt::DoubleRef >(getter,setter));
01631     }
01632     {
01633       void (app_PageSettings::*setter)(const grt::DoubleRef &)= &app_PageSettings::marginTop;
01634       grt::DoubleRef (app_PageSettings::*getter)() const= &app_PageSettings::marginTop;
01635       meta->bind_member("marginTop", new grt::MetaClass::Property<app_PageSettings,grt::DoubleRef >(getter,setter));
01636     }
01637     {
01638       void (app_PageSettings::*setter)(const grt::StringRef &)= &app_PageSettings::orientation;
01639       grt::StringRef (app_PageSettings::*getter)() const= &app_PageSettings::orientation;
01640       meta->bind_member("orientation", new grt::MetaClass::Property<app_PageSettings,grt::StringRef >(getter,setter));
01641     }
01642     {
01643       void (app_PageSettings::*setter)(const app_PaperTypeRef &)= &app_PageSettings::paperType;
01644       app_PaperTypeRef (app_PageSettings::*getter)() const= &app_PageSettings::paperType;
01645       meta->bind_member("paperType", new grt::MetaClass::Property<app_PageSettings,app_PaperTypeRef >(getter,setter));
01646     }
01647     {
01648       void (app_PageSettings::*setter)(const grt::DoubleRef &)= &app_PageSettings::scale;
01649       grt::DoubleRef (app_PageSettings::*getter)() const= &app_PageSettings::scale;
01650       meta->bind_member("scale", new grt::MetaClass::Property<app_PageSettings,grt::DoubleRef >(getter,setter));
01651     }
01652   }
01653 };
01654 
01655 
01656 class  app_PaperType : public GrtObject
01657 {
01658   typedef GrtObject super;
01659 public:
01660   app_PaperType(grt::GRT *grt, grt::MetaClass *meta=0)
01661   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
01662      _caption(""),
01663      _height(0.0),
01664      _marginBottom(0.0),
01665      _marginLeft(0.0),
01666      _marginRight(0.0),
01667      _marginTop(0.0),
01668      _marginsSet(0),
01669      _width(0.0)
01670 
01671   {
01672   }
01673 
01674   static std::string static_class_name() { return "app.PaperType"; }
01675 
01682   grt::StringRef caption() const { return _caption; }
01689   virtual void caption(const grt::StringRef &value)
01690   {
01691     grt::ValueRef ovalue(_caption);
01692    _caption= value;
01693     member_changed("caption", ovalue, value);
01694   }
01695 
01702   grt::DoubleRef height() const { return _height; }
01709   virtual void height(const grt::DoubleRef &value)
01710   {
01711     grt::ValueRef ovalue(_height);
01712    _height= value;
01713     member_changed("height", ovalue, value);
01714   }
01715 
01722   grt::DoubleRef marginBottom() const { return _marginBottom; }
01729   virtual void marginBottom(const grt::DoubleRef &value)
01730   {
01731     grt::ValueRef ovalue(_marginBottom);
01732    _marginBottom= value;
01733     member_changed("marginBottom", ovalue, value);
01734   }
01735 
01742   grt::DoubleRef marginLeft() const { return _marginLeft; }
01749   virtual void marginLeft(const grt::DoubleRef &value)
01750   {
01751     grt::ValueRef ovalue(_marginLeft);
01752    _marginLeft= value;
01753     member_changed("marginLeft", ovalue, value);
01754   }
01755 
01762   grt::DoubleRef marginRight() const { return _marginRight; }
01769   virtual void marginRight(const grt::DoubleRef &value)
01770   {
01771     grt::ValueRef ovalue(_marginRight);
01772    _marginRight= value;
01773     member_changed("marginRight", ovalue, value);
01774   }
01775 
01782   grt::DoubleRef marginTop() const { return _marginTop; }
01789   virtual void marginTop(const grt::DoubleRef &value)
01790   {
01791     grt::ValueRef ovalue(_marginTop);
01792    _marginTop= value;
01793     member_changed("marginTop", ovalue, value);
01794   }
01795 
01802   grt::IntegerRef marginsSet() const { return _marginsSet; }
01809   virtual void marginsSet(const grt::IntegerRef &value)
01810   {
01811     grt::ValueRef ovalue(_marginsSet);
01812    _marginsSet= value;
01813     member_changed("marginsSet", ovalue, value);
01814   }
01815 
01822   grt::DoubleRef width() const { return _width; }
01829   virtual void width(const grt::DoubleRef &value)
01830   {
01831     grt::ValueRef ovalue(_width);
01832    _width= value;
01833     member_changed("width", ovalue, value);
01834   }
01835 
01836 protected:
01837 
01838   grt::StringRef _caption;
01839   grt::DoubleRef _height;
01840   grt::DoubleRef _marginBottom;
01841   grt::DoubleRef _marginLeft;
01842   grt::DoubleRef _marginRight;
01843   grt::DoubleRef _marginTop;
01844   grt::IntegerRef _marginsSet;
01845   grt::DoubleRef _width;
01846 private: // wrapper methods for use by grt
01847   static grt::ObjectRef create(grt::GRT *grt)
01848   {
01849     return grt::ObjectRef(new app_PaperType(grt));
01850   }
01851 
01852 
01853 public:
01854   static void grt_register(grt::GRT *grt)
01855   {
01856     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01857     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01858     meta->bind_allocator(&app_PaperType::create);
01859     {
01860       void (app_PaperType::*setter)(const grt::StringRef &)= &app_PaperType::caption;
01861       grt::StringRef (app_PaperType::*getter)() const= &app_PaperType::caption;
01862       meta->bind_member("caption", new grt::MetaClass::Property<app_PaperType,grt::StringRef >(getter,setter));
01863     }
01864     {
01865       void (app_PaperType::*setter)(const grt::DoubleRef &)= &app_PaperType::height;
01866       grt::DoubleRef (app_PaperType::*getter)() const= &app_PaperType::height;
01867       meta->bind_member("height", new grt::MetaClass::Property<app_PaperType,grt::DoubleRef >(getter,setter));
01868     }
01869     {
01870       void (app_PaperType::*setter)(const grt::DoubleRef &)= &app_PaperType::marginBottom;
01871       grt::DoubleRef (app_PaperType::*getter)() const= &app_PaperType::marginBottom;
01872       meta->bind_member("marginBottom", new grt::MetaClass::Property<app_PaperType,grt::DoubleRef >(getter,setter));
01873     }
01874     {
01875       void (app_PaperType::*setter)(const grt::DoubleRef &)= &app_PaperType::marginLeft;
01876       grt::DoubleRef (app_PaperType::*getter)() const= &app_PaperType::marginLeft;
01877       meta->bind_member("marginLeft", new grt::MetaClass::Property<app_PaperType,grt::DoubleRef >(getter,setter));
01878     }
01879     {
01880       void (app_PaperType::*setter)(const grt::DoubleRef &)= &app_PaperType::marginRight;
01881       grt::DoubleRef (app_PaperType::*getter)() const= &app_PaperType::marginRight;
01882       meta->bind_member("marginRight", new grt::MetaClass::Property<app_PaperType,grt::DoubleRef >(getter,setter));
01883     }
01884     {
01885       void (app_PaperType::*setter)(const grt::DoubleRef &)= &app_PaperType::marginTop;
01886       grt::DoubleRef (app_PaperType::*getter)() const= &app_PaperType::marginTop;
01887       meta->bind_member("marginTop", new grt::MetaClass::Property<app_PaperType,grt::DoubleRef >(getter,setter));
01888     }
01889     {
01890       void (app_PaperType::*setter)(const grt::IntegerRef &)= &app_PaperType::marginsSet;
01891       grt::IntegerRef (app_PaperType::*getter)() const= &app_PaperType::marginsSet;
01892       meta->bind_member("marginsSet", new grt::MetaClass::Property<app_PaperType,grt::IntegerRef >(getter,setter));
01893     }
01894     {
01895       void (app_PaperType::*setter)(const grt::DoubleRef &)= &app_PaperType::width;
01896       grt::DoubleRef (app_PaperType::*getter)() const= &app_PaperType::width;
01897       meta->bind_member("width", new grt::MetaClass::Property<app_PaperType,grt::DoubleRef >(getter,setter));
01898     }
01899   }
01900 };
01901 
01902 
01904 class  app_Registry : public GrtObject
01905 {
01906   typedef GrtObject super;
01907 public:
01908   app_Registry(grt::GRT *grt, grt::MetaClass *meta=0)
01909   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
01910     _customDataFields(grt, this, false),
01911     _pluginGroups(grt, this, false),
01912     _plugins(grt, this, false)
01913 
01914   {
01915   }
01916 
01917   static std::string static_class_name() { return "app.Registry"; }
01918 
01919   // customDataFields is owned by app_Registry
01926   grt::ListRef<app_CustomDataField> customDataFields() const { return _customDataFields; }
01927 private: // the next attribute is read-only
01928   virtual void customDataFields(const grt::ListRef<app_CustomDataField> &value)
01929   {
01930     grt::ValueRef ovalue(_customDataFields);
01931 
01932     _customDataFields= value;
01933     owned_member_changed("customDataFields", ovalue, value);
01934   }
01935 public:
01936 
01937   // pluginGroups is owned by app_Registry
01944   grt::ListRef<app_PluginGroup> pluginGroups() const { return _pluginGroups; }
01945 private: // the next attribute is read-only
01946   virtual void pluginGroups(const grt::ListRef<app_PluginGroup> &value)
01947   {
01948     grt::ValueRef ovalue(_pluginGroups);
01949 
01950     _pluginGroups= value;
01951     owned_member_changed("pluginGroups", ovalue, value);
01952   }
01953 public:
01954 
01955   // plugins is owned by app_Registry
01962   grt::ListRef<app_Plugin> plugins() const { return _plugins; }
01963 private: // the next attribute is read-only
01964   virtual void plugins(const grt::ListRef<app_Plugin> &value)
01965   {
01966     grt::ValueRef ovalue(_plugins);
01967 
01968     _plugins= value;
01969     owned_member_changed("plugins", ovalue, value);
01970   }
01971 public:
01972 
01973 protected:
01974 
01975   grt::ListRef<app_CustomDataField> _customDataFields;// owned
01976   grt::ListRef<app_PluginGroup> _pluginGroups;// owned
01977   grt::ListRef<app_Plugin> _plugins;// owned
01978 private: // wrapper methods for use by grt
01979   static grt::ObjectRef create(grt::GRT *grt)
01980   {
01981     return grt::ObjectRef(new app_Registry(grt));
01982   }
01983 
01984 
01985 public:
01986   static void grt_register(grt::GRT *grt)
01987   {
01988     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
01989     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
01990     meta->bind_allocator(&app_Registry::create);
01991     {
01992       void (app_Registry::*setter)(const grt::ListRef<app_CustomDataField> &)= &app_Registry::customDataFields;
01993       grt::ListRef<app_CustomDataField> (app_Registry::*getter)() const= &app_Registry::customDataFields;
01994       meta->bind_member("customDataFields", new grt::MetaClass::Property<app_Registry,grt::ListRef<app_CustomDataField> >(getter,setter));
01995     }
01996     {
01997       void (app_Registry::*setter)(const grt::ListRef<app_PluginGroup> &)= &app_Registry::pluginGroups;
01998       grt::ListRef<app_PluginGroup> (app_Registry::*getter)() const= &app_Registry::pluginGroups;
01999       meta->bind_member("pluginGroups", new grt::MetaClass::Property<app_Registry,grt::ListRef<app_PluginGroup> >(getter,setter));
02000     }
02001     {
02002       void (app_Registry::*setter)(const grt::ListRef<app_Plugin> &)= &app_Registry::plugins;
02003       grt::ListRef<app_Plugin> (app_Registry::*getter)() const= &app_Registry::plugins;
02004       meta->bind_member("plugins", new grt::MetaClass::Property<app_Registry,grt::ListRef<app_Plugin> >(getter,setter));
02005     }
02006   }
02007 };
02008 
02009 
02010 class  app_Starter : public GrtObject
02011 {
02012   typedef GrtObject super;
02013 public:
02014   app_Starter(grt::GRT *grt, grt::MetaClass *meta=0)
02015   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02016      _authorHome(""),
02017      _command(""),
02018      _description(""),
02019      _largeIcon(""),
02020      _publisher(""),
02021      _smallIcon("0"),
02022      _title(""),
02023      _type("")
02024 
02025   {
02026   }
02027 
02028   static std::string static_class_name() { return "app.Starter"; }
02029 
02036   grt::StringRef authorHome() const { return _authorHome; }
02043   virtual void authorHome(const grt::StringRef &value)
02044   {
02045     grt::ValueRef ovalue(_authorHome);
02046    _authorHome= value;
02047     member_changed("authorHome", ovalue, value);
02048   }
02049 
02056   grt::StringRef command() const { return _command; }
02063   virtual void command(const grt::StringRef &value)
02064   {
02065     grt::ValueRef ovalue(_command);
02066    _command= value;
02067     member_changed("command", ovalue, value);
02068   }
02069 
02076   grt::StringRef description() const { return _description; }
02083   virtual void description(const grt::StringRef &value)
02084   {
02085     grt::ValueRef ovalue(_description);
02086    _description= value;
02087     member_changed("description", ovalue, value);
02088   }
02089 
02096   grt::StringRef largeIcon() const { return _largeIcon; }
02103   virtual void largeIcon(const grt::StringRef &value)
02104   {
02105     grt::ValueRef ovalue(_largeIcon);
02106    _largeIcon= value;
02107     member_changed("largeIcon", ovalue, value);
02108   }
02109 
02116   grt::StringRef publisher() const { return _publisher; }
02123   virtual void publisher(const grt::StringRef &value)
02124   {
02125     grt::ValueRef ovalue(_publisher);
02126    _publisher= value;
02127     member_changed("publisher", ovalue, value);
02128   }
02129 
02136   grt::StringRef smallIcon() const { return _smallIcon; }
02143   virtual void smallIcon(const grt::StringRef &value)
02144   {
02145     grt::ValueRef ovalue(_smallIcon);
02146    _smallIcon= value;
02147     member_changed("smallIcon", ovalue, value);
02148   }
02149 
02156   grt::StringRef title() const { return _title; }
02163   virtual void title(const grt::StringRef &value)
02164   {
02165     grt::ValueRef ovalue(_title);
02166    _title= value;
02167     member_changed("title", ovalue, value);
02168   }
02169 
02176   grt::StringRef type() const { return _type; }
02183   virtual void type(const grt::StringRef &value)
02184   {
02185     grt::ValueRef ovalue(_type);
02186    _type= value;
02187     member_changed("type", ovalue, value);
02188   }
02189 
02190 protected:
02191 
02192   grt::StringRef _authorHome;
02193   grt::StringRef _command;
02194   grt::StringRef _description;
02195   grt::StringRef _largeIcon;
02196   grt::StringRef _publisher;
02197   grt::StringRef _smallIcon;
02198   grt::StringRef _title;
02199   grt::StringRef _type;
02200 private: // wrapper methods for use by grt
02201   static grt::ObjectRef create(grt::GRT *grt)
02202   {
02203     return grt::ObjectRef(new app_Starter(grt));
02204   }
02205 
02206 
02207 public:
02208   static void grt_register(grt::GRT *grt)
02209   {
02210     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
02211     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
02212     meta->bind_allocator(&app_Starter::create);
02213     {
02214       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::authorHome;
02215       grt::StringRef (app_Starter::*getter)() const= &app_Starter::authorHome;
02216       meta->bind_member("authorHome", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02217     }
02218     {
02219       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::command;
02220       grt::StringRef (app_Starter::*getter)() const= &app_Starter::command;
02221       meta->bind_member("command", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02222     }
02223     {
02224       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::description;
02225       grt::StringRef (app_Starter::*getter)() const= &app_Starter::description;
02226       meta->bind_member("description", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02227     }
02228     {
02229       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::largeIcon;
02230       grt::StringRef (app_Starter::*getter)() const= &app_Starter::largeIcon;
02231       meta->bind_member("largeIcon", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02232     }
02233     {
02234       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::publisher;
02235       grt::StringRef (app_Starter::*getter)() const= &app_Starter::publisher;
02236       meta->bind_member("publisher", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02237     }
02238     {
02239       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::smallIcon;
02240       grt::StringRef (app_Starter::*getter)() const= &app_Starter::smallIcon;
02241       meta->bind_member("smallIcon", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02242     }
02243     {
02244       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::title;
02245       grt::StringRef (app_Starter::*getter)() const= &app_Starter::title;
02246       meta->bind_member("title", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02247     }
02248     {
02249       void (app_Starter::*setter)(const grt::StringRef &)= &app_Starter::type;
02250       grt::StringRef (app_Starter::*getter)() const= &app_Starter::type;
02251       meta->bind_member("type", new grt::MetaClass::Property<app_Starter,grt::StringRef >(getter,setter));
02252     }
02253   }
02254 };
02255 
02256 
02258 class  app_Starters : public GrtObject
02259 {
02260   typedef GrtObject super;
02261 public:
02262   app_Starters(grt::GRT *grt, grt::MetaClass *meta=0)
02263   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02264     _custom(grt, this, false),
02265     _displayList(grt, this, false),
02266     _predefined(grt, this, false)
02267 
02268   {
02269   }
02270 
02271   static std::string static_class_name() { return "app.Starters"; }
02272 
02273   // custom is owned by app_Starters
02280   grt::ListRef<app_Starter> custom() const { return _custom; }
02281 private: // the next attribute is read-only
02282   virtual void custom(const grt::ListRef<app_Starter> &value)
02283   {
02284     grt::ValueRef ovalue(_custom);
02285 
02286     _custom= value;
02287     owned_member_changed("custom", ovalue, value);
02288   }
02289 public:
02290 
02297   grt::ListRef<app_Starter> displayList() const { return _displayList; }
02298 private: // the next attribute is read-only
02299   virtual void displayList(const grt::ListRef<app_Starter> &value)
02300   {
02301     grt::ValueRef ovalue(_displayList);
02302    _displayList= value;
02303     member_changed("displayList", ovalue, value);
02304   }
02305 public:
02306 
02307   // predefined is owned by app_Starters
02314   grt::ListRef<app_Starter> predefined() const { return _predefined; }
02315 private: // the next attribute is read-only
02316   virtual void predefined(const grt::ListRef<app_Starter> &value)
02317   {
02318     grt::ValueRef ovalue(_predefined);
02319 
02320     _predefined= value;
02321     owned_member_changed("predefined", ovalue, value);
02322   }
02323 public:
02324 
02325 protected:
02326 
02327   grt::ListRef<app_Starter> _custom;// owned
02328   grt::ListRef<app_Starter> _displayList;
02329   grt::ListRef<app_Starter> _predefined;// owned
02330 private: // wrapper methods for use by grt
02331   static grt::ObjectRef create(grt::GRT *grt)
02332   {
02333     return grt::ObjectRef(new app_Starters(grt));
02334   }
02335 
02336 
02337 public:
02338   static void grt_register(grt::GRT *grt)
02339   {
02340     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
02341     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
02342     meta->bind_allocator(&app_Starters::create);
02343     {
02344       void (app_Starters::*setter)(const grt::ListRef<app_Starter> &)= &app_Starters::custom;
02345       grt::ListRef<app_Starter> (app_Starters::*getter)() const= &app_Starters::custom;
02346       meta->bind_member("custom", new grt::MetaClass::Property<app_Starters,grt::ListRef<app_Starter> >(getter,setter));
02347     }
02348     {
02349       void (app_Starters::*setter)(const grt::ListRef<app_Starter> &)= &app_Starters::displayList;
02350       grt::ListRef<app_Starter> (app_Starters::*getter)() const= &app_Starters::displayList;
02351       meta->bind_member("displayList", new grt::MetaClass::Property<app_Starters,grt::ListRef<app_Starter> >(getter,setter));
02352     }
02353     {
02354       void (app_Starters::*setter)(const grt::ListRef<app_Starter> &)= &app_Starters::predefined;
02355       grt::ListRef<app_Starter> (app_Starters::*getter)() const= &app_Starters::predefined;
02356       meta->bind_member("predefined", new grt::MetaClass::Property<app_Starters,grt::ListRef<app_Starter> >(getter,setter));
02357     }
02358   }
02359 };
02360 
02361 
02363 class  app_Options : public GrtObject
02364 {
02365   typedef GrtObject super;
02366 public:
02367   app_Options(grt::GRT *grt, grt::MetaClass *meta=0)
02368   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02369     _commonOptions(grt, this, false),
02370     _options(grt, this, false),
02371     _paperTypes(grt, this, false),
02372     _recentFiles(grt, this, false)
02373 
02374   {
02375   }
02376 
02377   static std::string static_class_name() { return "app.Options"; }
02378 
02385   grt::DictRef commonOptions() const { return _commonOptions; }
02386 private: // the next attribute is read-only
02387   virtual void commonOptions(const grt::DictRef &value)
02388   {
02389     grt::ValueRef ovalue(_commonOptions);
02390    _commonOptions= value;
02391     member_changed("commonOptions", ovalue, value);
02392   }
02393 public:
02394 
02401   grt::DictRef options() const { return _options; }
02402 private: // the next attribute is read-only
02403   virtual void options(const grt::DictRef &value)
02404   {
02405     grt::ValueRef ovalue(_options);
02406    _options= value;
02407     member_changed("options", ovalue, value);
02408   }
02409 public:
02410 
02411   // paperTypes is owned by app_Options
02418   grt::ListRef<app_PaperType> paperTypes() const { return _paperTypes; }
02419 private: // the next attribute is read-only
02420   virtual void paperTypes(const grt::ListRef<app_PaperType> &value)
02421   {
02422     grt::ValueRef ovalue(_paperTypes);
02423 
02424     _paperTypes= value;
02425     owned_member_changed("paperTypes", ovalue, value);
02426   }
02427 public:
02428 
02435   grt::StringListRef recentFiles() const { return _recentFiles; }
02436 private: // the next attribute is read-only
02437   virtual void recentFiles(const grt::StringListRef &value)
02438   {
02439     grt::ValueRef ovalue(_recentFiles);
02440    _recentFiles= value;
02441     member_changed("recentFiles", ovalue, value);
02442   }
02443 public:
02444 
02445 protected:
02446 
02447   grt::DictRef _commonOptions;
02448   grt::DictRef _options;
02449   grt::ListRef<app_PaperType> _paperTypes;// owned
02450   grt::StringListRef _recentFiles;
02451 private: // wrapper methods for use by grt
02452   static grt::ObjectRef create(grt::GRT *grt)
02453   {
02454     return grt::ObjectRef(new app_Options(grt));
02455   }
02456 
02457 
02458 public:
02459   static void grt_register(grt::GRT *grt)
02460   {
02461     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
02462     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
02463     meta->bind_allocator(&app_Options::create);
02464     {
02465       void (app_Options::*setter)(const grt::DictRef &)= &app_Options::commonOptions;
02466       grt::DictRef (app_Options::*getter)() const= &app_Options::commonOptions;
02467       meta->bind_member("commonOptions", new grt::MetaClass::Property<app_Options,grt::DictRef >(getter,setter));
02468     }
02469     {
02470       void (app_Options::*setter)(const grt::DictRef &)= &app_Options::options;
02471       grt::DictRef (app_Options::*getter)() const= &app_Options::options;
02472       meta->bind_member("options", new grt::MetaClass::Property<app_Options,grt::DictRef >(getter,setter));
02473     }
02474     {
02475       void (app_Options::*setter)(const grt::ListRef<app_PaperType> &)= &app_Options::paperTypes;
02476       grt::ListRef<app_PaperType> (app_Options::*getter)() const= &app_Options::paperTypes;
02477       meta->bind_member("paperTypes", new grt::MetaClass::Property<app_Options,grt::ListRef<app_PaperType> >(getter,setter));
02478     }
02479     {
02480       void (app_Options::*setter)(const grt::StringListRef &)= &app_Options::recentFiles;
02481       grt::StringListRef (app_Options::*getter)() const= &app_Options::recentFiles;
02482       meta->bind_member("recentFiles", new grt::MetaClass::Property<app_Options,grt::StringListRef >(getter,setter));
02483     }
02484   }
02485 };
02486 
02487 
02489 class  app_DocumentInfo : public GrtObject
02490 {
02491   typedef GrtObject super;
02492 public:
02493   app_DocumentInfo(grt::GRT *grt, grt::MetaClass *meta=0)
02494   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02495      _author(""),
02496      _caption(""),
02497      _dateChanged(""),
02498      _dateCreated(""),
02499      _description(""),
02500      _project(""),
02501      _version("")
02502 
02503   {
02504   }
02505 
02506   static std::string static_class_name() { return "app.DocumentInfo"; }
02507 
02514   grt::StringRef author() const { return _author; }
02521   virtual void author(const grt::StringRef &value)
02522   {
02523     grt::ValueRef ovalue(_author);
02524    _author= value;
02525     member_changed("author", ovalue, value);
02526   }
02527 
02534   grt::StringRef caption() const { return _caption; }
02541   virtual void caption(const grt::StringRef &value)
02542   {
02543     grt::ValueRef ovalue(_caption);
02544    _caption= value;
02545     member_changed("caption", ovalue, value);
02546   }
02547 
02554   grt::StringRef dateChanged() const { return _dateChanged; }
02561   virtual void dateChanged(const grt::StringRef &value)
02562   {
02563     grt::ValueRef ovalue(_dateChanged);
02564    _dateChanged= value;
02565     member_changed("dateChanged", ovalue, value);
02566   }
02567 
02574   grt::StringRef dateCreated() const { return _dateCreated; }
02581   virtual void dateCreated(const grt::StringRef &value)
02582   {
02583     grt::ValueRef ovalue(_dateCreated);
02584    _dateCreated= value;
02585     member_changed("dateCreated", ovalue, value);
02586   }
02587 
02594   grt::StringRef description() const { return _description; }
02601   virtual void description(const grt::StringRef &value)
02602   {
02603     grt::ValueRef ovalue(_description);
02604    _description= value;
02605     member_changed("description", ovalue, value);
02606   }
02607 
02614   grt::StringRef project() const { return _project; }
02621   virtual void project(const grt::StringRef &value)
02622   {
02623     grt::ValueRef ovalue(_project);
02624    _project= value;
02625     member_changed("project", ovalue, value);
02626   }
02627 
02634   grt::StringRef version() const { return _version; }
02641   virtual void version(const grt::StringRef &value)
02642   {
02643     grt::ValueRef ovalue(_version);
02644    _version= value;
02645     member_changed("version", ovalue, value);
02646   }
02647 
02648 protected:
02649 
02650   grt::StringRef _author;
02651   grt::StringRef _caption;
02652   grt::StringRef _dateChanged;
02653   grt::StringRef _dateCreated;
02654   grt::StringRef _description;
02655   grt::StringRef _project;
02656   grt::StringRef _version;
02657 private: // wrapper methods for use by grt
02658   static grt::ObjectRef create(grt::GRT *grt)
02659   {
02660     return grt::ObjectRef(new app_DocumentInfo(grt));
02661   }
02662 
02663 
02664 public:
02665   static void grt_register(grt::GRT *grt)
02666   {
02667     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
02668     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
02669     meta->bind_allocator(&app_DocumentInfo::create);
02670     {
02671       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::author;
02672       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::author;
02673       meta->bind_member("author", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02674     }
02675     {
02676       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::caption;
02677       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::caption;
02678       meta->bind_member("caption", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02679     }
02680     {
02681       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::dateChanged;
02682       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::dateChanged;
02683       meta->bind_member("dateChanged", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02684     }
02685     {
02686       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::dateCreated;
02687       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::dateCreated;
02688       meta->bind_member("dateCreated", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02689     }
02690     {
02691       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::description;
02692       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::description;
02693       meta->bind_member("description", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02694     }
02695     {
02696       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::project;
02697       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::project;
02698       meta->bind_member("project", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02699     }
02700     {
02701       void (app_DocumentInfo::*setter)(const grt::StringRef &)= &app_DocumentInfo::version;
02702       grt::StringRef (app_DocumentInfo::*getter)() const= &app_DocumentInfo::version;
02703       meta->bind_member("version", new grt::MetaClass::Property<app_DocumentInfo,grt::StringRef >(getter,setter));
02704     }
02705   }
02706 };
02707 
02708 
02710 class  app_Info : public GrtObject
02711 {
02712   typedef GrtObject super;
02713 public:
02714   app_Info(grt::GRT *grt, grt::MetaClass *meta=0)
02715   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02716      _caption(""),
02717      _copyright(""),
02718      _description(""),
02719      _license("")
02720 
02721   {
02722   }
02723 
02724   static std::string static_class_name() { return "app.Info"; }
02725 
02732   grt::StringRef caption() const { return _caption; }
02739   virtual void caption(const grt::StringRef &value)
02740   {
02741     grt::ValueRef ovalue(_caption);
02742    _caption= value;
02743     member_changed("caption", ovalue, value);
02744   }
02745 
02752   grt::StringRef copyright() const { return _copyright; }
02759   virtual void copyright(const grt::StringRef &value)
02760   {
02761     grt::ValueRef ovalue(_copyright);
02762    _copyright= value;
02763     member_changed("copyright", ovalue, value);
02764   }
02765 
02772   grt::StringRef description() const { return _description; }
02779   virtual void description(const grt::StringRef &value)
02780   {
02781     grt::ValueRef ovalue(_description);
02782    _description= value;
02783     member_changed("description", ovalue, value);
02784   }
02785 
02792   grt::StringRef license() const { return _license; }
02799   virtual void license(const grt::StringRef &value)
02800   {
02801     grt::ValueRef ovalue(_license);
02802    _license= value;
02803     member_changed("license", ovalue, value);
02804   }
02805 
02806   // version is owned by app_Info
02813   GrtVersionRef version() const { return _version; }
02820   virtual void version(const GrtVersionRef &value)
02821   {
02822     grt::ValueRef ovalue(_version);
02823 
02824     _version= value;
02825     owned_member_changed("version", ovalue, value);
02826   }
02827 
02828 protected:
02829 
02830   grt::StringRef _caption;
02831   grt::StringRef _copyright;
02832   grt::StringRef _description;
02833   grt::StringRef _license;
02834   GrtVersionRef _version;// owned
02835 private: // wrapper methods for use by grt
02836   static grt::ObjectRef create(grt::GRT *grt)
02837   {
02838     return grt::ObjectRef(new app_Info(grt));
02839   }
02840 
02841 
02842 public:
02843   static void grt_register(grt::GRT *grt)
02844   {
02845     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
02846     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
02847     meta->bind_allocator(&app_Info::create);
02848     {
02849       void (app_Info::*setter)(const grt::StringRef &)= &app_Info::caption;
02850       grt::StringRef (app_Info::*getter)() const= &app_Info::caption;
02851       meta->bind_member("caption", new grt::MetaClass::Property<app_Info,grt::StringRef >(getter,setter));
02852     }
02853     {
02854       void (app_Info::*setter)(const grt::StringRef &)= &app_Info::copyright;
02855       grt::StringRef (app_Info::*getter)() const= &app_Info::copyright;
02856       meta->bind_member("copyright", new grt::MetaClass::Property<app_Info,grt::StringRef >(getter,setter));
02857     }
02858     {
02859       void (app_Info::*setter)(const grt::StringRef &)= &app_Info::description;
02860       grt::StringRef (app_Info::*getter)() const= &app_Info::description;
02861       meta->bind_member("description", new grt::MetaClass::Property<app_Info,grt::StringRef >(getter,setter));
02862     }
02863     {
02864       void (app_Info::*setter)(const grt::StringRef &)= &app_Info::license;
02865       grt::StringRef (app_Info::*getter)() const= &app_Info::license;
02866       meta->bind_member("license", new grt::MetaClass::Property<app_Info,grt::StringRef >(getter,setter));
02867     }
02868     {
02869       void (app_Info::*setter)(const GrtVersionRef &)= &app_Info::version;
02870       GrtVersionRef (app_Info::*getter)() const= &app_Info::version;
02871       meta->bind_member("version", new grt::MetaClass::Property<app_Info,GrtVersionRef >(getter,setter));
02872     }
02873   }
02874 };
02875 
02876 
02878 class  app_Document : public GrtObject
02879 {
02880   typedef GrtObject super;
02881 public:
02882   app_Document(grt::GRT *grt, grt::MetaClass *meta=0)
02883   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02884     _customData(grt, this, false)
02885 
02886   {
02887   }
02888 
02889   static std::string static_class_name() { return "app.Document"; }
02890 
02897   grt::DictRef customData() const { return _customData; }
02898 private: // the next attribute is read-only
02899   virtual void customData(const grt::DictRef &value)
02900   {
02901     grt::ValueRef ovalue(_customData);
02902    _customData= value;
02903     member_changed("customData", ovalue, value);
02904   }
02905 public:
02906 
02907   // info is owned by app_Document
02914   app_DocumentInfoRef info() const { return _info; }
02921   virtual void info(const app_DocumentInfoRef &value)
02922   {
02923     grt::ValueRef ovalue(_info);
02924 
02925     _info= value;
02926     owned_member_changed("info", ovalue, value);
02927   }
02928 
02929   // pageSettings is owned by app_Document
02936   app_PageSettingsRef pageSettings() const { return _pageSettings; }
02943   virtual void pageSettings(const app_PageSettingsRef &value)
02944   {
02945     grt::ValueRef ovalue(_pageSettings);
02946 
02947     _pageSettings= value;
02948     owned_member_changed("pageSettings", ovalue, value);
02949   }
02950 
02951 protected:
02952 
02953   grt::DictRef _customData;
02954   app_DocumentInfoRef _info;// owned
02955   app_PageSettingsRef _pageSettings;// owned
02956 private: // wrapper methods for use by grt
02957   static grt::ObjectRef create(grt::GRT *grt)
02958   {
02959     return grt::ObjectRef(new app_Document(grt));
02960   }
02961 
02962 
02963 public:
02964   static void grt_register(grt::GRT *grt)
02965   {
02966     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
02967     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
02968     meta->bind_allocator(&app_Document::create);
02969     {
02970       void (app_Document::*setter)(const grt::DictRef &)= &app_Document::customData;
02971       grt::DictRef (app_Document::*getter)() const= &app_Document::customData;
02972       meta->bind_member("customData", new grt::MetaClass::Property<app_Document,grt::DictRef >(getter,setter));
02973     }
02974     {
02975       void (app_Document::*setter)(const app_DocumentInfoRef &)= &app_Document::info;
02976       app_DocumentInfoRef (app_Document::*getter)() const= &app_Document::info;
02977       meta->bind_member("info", new grt::MetaClass::Property<app_Document,app_DocumentInfoRef >(getter,setter));
02978     }
02979     {
02980       void (app_Document::*setter)(const app_PageSettingsRef &)= &app_Document::pageSettings;
02981       app_PageSettingsRef (app_Document::*getter)() const= &app_Document::pageSettings;
02982       meta->bind_member("pageSettings", new grt::MetaClass::Property<app_Document,app_PageSettingsRef >(getter,setter));
02983     }
02984   }
02985 };
02986 
02987 
02989 class  app_Application : public GrtObject
02990 {
02991   typedef GrtObject super;
02992 public:
02993   app_Application(grt::GRT *grt, grt::MetaClass *meta=0)
02994   : GrtObject(grt, meta ? meta : grt->get_metaclass(static_class_name())),
02995     _customData(grt, this, false),
02996     _state(grt, this, false)
02997 
02998   {
02999   }
03000 
03001   static std::string static_class_name() { return "app.Application"; }
03002 
03009   grt::DictRef customData() const { return _customData; }
03010 private: // the next attribute is read-only
03011   virtual void customData(const grt::DictRef &value)
03012   {
03013     grt::ValueRef ovalue(_customData);
03014    _customData= value;
03015     member_changed("customData", ovalue, value);
03016   }
03017 public:
03018 
03019   // doc is owned by app_Application
03026   app_DocumentRef doc() const { return _doc; }
03033   virtual void doc(const app_DocumentRef &value)
03034   {
03035     grt::ValueRef ovalue(_doc);
03036 
03037     _doc= value;
03038     owned_member_changed("doc", ovalue, value);
03039   }
03040 
03047   app_InfoRef info() const { return _info; }
03054   virtual void info(const app_InfoRef &value)
03055   {
03056     grt::ValueRef ovalue(_info);
03057    _info= value;
03058     member_changed("info", ovalue, value);
03059   }
03060 
03067   app_OptionsRef options() const { return _options; }
03074   virtual void options(const app_OptionsRef &value)
03075   {
03076     grt::ValueRef ovalue(_options);
03077    _options= value;
03078     member_changed("options", ovalue, value);
03079   }
03080 
03087   app_RegistryRef registry() const { return _registry; }
03094   virtual void registry(const app_RegistryRef &value)
03095   {
03096     grt::ValueRef ovalue(_registry);
03097    _registry= value;
03098     member_changed("registry", ovalue, value);
03099   }
03100 
03107   app_StartersRef starters() const { return _starters; }
03114   virtual void starters(const app_StartersRef &value)
03115   {
03116     grt::ValueRef ovalue(_starters);
03117    _starters= value;
03118     member_changed("starters", ovalue, value);
03119   }
03120 
03127   grt::DictRef state() const { return _state; }
03128 private: // the next attribute is read-only
03129   virtual void state(const grt::DictRef &value)
03130   {
03131     grt::ValueRef ovalue(_state);
03132    _state= value;
03133     member_changed("state", ovalue, value);
03134   }
03135 public:
03136 
03137 protected:
03138 
03139   grt::DictRef _customData;
03140   app_DocumentRef _doc;// owned
03141   app_InfoRef _info;
03142   app_OptionsRef _options;
03143   app_RegistryRef _registry;
03144   app_StartersRef _starters;
03145   grt::DictRef _state;
03146 private: // wrapper methods for use by grt
03147   static grt::ObjectRef create(grt::GRT *grt)
03148   {
03149     return grt::ObjectRef(new app_Application(grt));
03150   }
03151 
03152 
03153 public:
03154   static void grt_register(grt::GRT *grt)
03155   {
03156     grt::MetaClass *meta= grt->get_metaclass(static_class_name());
03157     if (!meta) throw std::runtime_error("error initializing grt object class, metaclass not found");
03158     meta->bind_allocator(&app_Application::create);
03159     {
03160       void (app_Application::*setter)(const grt::DictRef &)= &app_Application::customData;
03161       grt::DictRef (app_Application::*getter)() const= &app_Application::customData;
03162       meta->bind_member("customData", new grt::MetaClass::Property<app_Application,grt::DictRef >(getter,setter));
03163     }
03164     {
03165       void (app_Application::*setter)(const app_DocumentRef &)= &app_Application::doc;
03166       app_DocumentRef (app_Application::*getter)() const= &app_Application::doc;
03167       meta->bind_member("doc", new grt::MetaClass::Property<app_Application,app_DocumentRef >(getter,setter));
03168     }
03169     {
03170       void (app_Application::*setter)(const app_InfoRef &)= &app_Application::info;
03171       app_InfoRef (app_Application::*getter)() const= &app_Application::info;
03172       meta->bind_member("info", new grt::MetaClass::Property<app_Application,app_InfoRef >(getter,setter));
03173     }
03174     {
03175       void (app_Application::*setter)(const app_OptionsRef &)= &app_Application::options;
03176       app_OptionsRef (app_Application::*getter)() const= &app_Application::options;
03177       meta->bind_member("options", new grt::MetaClass::Property<app_Application,app_OptionsRef >(getter,setter));
03178     }
03179     {
03180       void (app_Application::*setter)(const app_RegistryRef &)= &app_Application::registry;
03181       app_RegistryRef (app_Application::*getter)() const= &app_Application::registry;
03182       meta->bind_member("registry", new grt::MetaClass::Property<app_Application,app_RegistryRef >(getter,setter));
03183     }
03184     {
03185       void (app_Application::*setter)(const app_StartersRef &)= &app_Application::starters;
03186       app_StartersRef (app_Application::*getter)() const= &app_Application::starters;
03187       meta->bind_member("starters", new grt::MetaClass::Property<app_Application,app_StartersRef >(getter,setter));
03188     }
03189     {
03190       void (app_Application::*setter)(const grt::DictRef &)= &app_Application::state;
03191       grt::DictRef (app_Application::*getter)() const= &app_Application::state;
03192       meta->bind_member("state", new grt::MetaClass::Property<app_Application,grt::DictRef >(getter,setter));
03193     }
03194   }
03195 };
03196 
03197 
03198 
03199 
03200 inline void register_structs_app_xml()
03201 {
03202   grt::internal::ClassRegistry::register_class<app_PluginInputDefinition>();
03203   grt::internal::ClassRegistry::register_class<app_PluginObjectInput>();
03204   grt::internal::ClassRegistry::register_class<app_PluginFileInput>();
03205   grt::internal::ClassRegistry::register_class<app_PluginSelectionInput>();
03206   grt::internal::ClassRegistry::register_class<app_Plugin>();
03207   grt::internal::ClassRegistry::register_class<app_DocumentPlugin>();
03208   grt::internal::ClassRegistry::register_class<app_PluginGroup>();
03209   grt::internal::ClassRegistry::register_class<app_Toolbar>();
03210   grt::internal::ClassRegistry::register_class<app_CommandItem>();
03211   grt::internal::ClassRegistry::register_class<app_ToolbarItem>();
03212   grt::internal::ClassRegistry::register_class<app_ShortcutItem>();
03213   grt::internal::ClassRegistry::register_class<app_MenuItem>();
03214   grt::internal::ClassRegistry::register_class<app_CustomDataField>();
03215   grt::internal::ClassRegistry::register_class<app_PageSettings>();
03216   grt::internal::ClassRegistry::register_class<app_PaperType>();
03217   grt::internal::ClassRegistry::register_class<app_Registry>();
03218   grt::internal::ClassRegistry::register_class<app_Starter>();
03219   grt::internal::ClassRegistry::register_class<app_Starters>();
03220   grt::internal::ClassRegistry::register_class<app_Options>();
03221   grt::internal::ClassRegistry::register_class<app_DocumentInfo>();
03222   grt::internal::ClassRegistry::register_class<app_Info>();
03223   grt::internal::ClassRegistry::register_class<app_Document>();
03224   grt::internal::ClassRegistry::register_class<app_Application>();
03225 }
03226 
03227 #ifdef AUTO_REGISTER_GRT_CLASSES
03228 static struct _autoreg__structs_app_xml { _autoreg__structs_app_xml() { register_structs_app_xml(); } } __autoreg__structs_app_xml;
03229 #endif
03230 
03231 #endif

Generated on Thu Aug 5 2010 16:42:52 for MySQL Workbench GRT Classes by  doxygen 1.7.1