#ifndef PHOTOPRINT_STATE_H #define PHOTOPRINT_STATE_H #include "layout.h" #include "support/configdb.h" #include "stpui_widgets/units.h" #include "printoutput.h" #include "print.h" #include "support/progress.h" #include "profilemanager/profilemanager.h" #include "support/searchpath.h" class PhotoPrint_State : public ConfigFile, public ConfigDB { public: PhotoPrint_State(bool batchmode=FALSE); ~PhotoPrint_State(); void SetFilename(const char *file); void SetDefaultFilename(); void ParseFile(); bool SaveFile(); bool NewLayout(Progress *p=NULL); void SetUnits(enum Units unit); enum Units GetUnits(); Layout *layout; char *filename; LayoutDB layoutdb; PrintOutput printoutput; GPrinter printer; ProfileManager profilemanager; SearchPath bordersearchpath; SearchPath backgroundsearchpath; bool batchmode; protected: static ConfigTemplate Template[]; }; #endif