#include "lv0.h" //#include "lv2300a.h" #include #include #include #include #include #include #include #include #include class TStampe_planning_mask : public TAutomask { private: public: virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly); TStampe_planning_mask (const char* name) : TAutomask(name) {} }; bool TStampe_planning_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) { return true; } class TStampe_planning_app : public TSkeleton_application { TStampe_planning_mask* _msk; protected: virtual bool create(); virtual bool destroy(); public: bool transfer(); virtual void main_loop(); }; bool TStampe_planning_app::create() { _msk = new TStampe_planning_mask("lv2300a"); return TSkeleton_application::create(); } bool TStampe_planning_app::destroy() { delete _msk; return TApplication::destroy(); } void TStampe_planning_app::main_loop() { TStampe_planning_app app; while (_msk->run() != K_QUIT) { TReport_book book; TReport rep; TFilename report_name("lv2300a"); report_name.ext("rep"); book.add(rep); if (book.pages() > 0) { book.print_or_preview(); } } } int lv2300(int argc, char* argv[]) { TStampe_planning_app app; app.run(argc, argv, "Stampe Planning"); return 0; }