9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj#ifndef __INK_MAIN_CMD_LINE_ACTIONS_H__
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj#define __INK_MAIN_CMD_LINE_ACTIONS_H__
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj/** \file
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj * Small actions that can be queued at the command line
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj */
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj/*
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj * Authors:
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj * Ted Gould <ted@gould.cx>
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj *
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj * Copyright (C) 2007 Authors
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj *
07264046a9384ba11ac4191f6b1f74c10b085142Krzysztof Kosiński * Released under GNU GPL v2+, read the file 'COPYING' for more information
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj */
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtjnamespace Inkscape {
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
27e8a544f1ad1e2044b3e993fe7236e16ac099c7Eric Grevesonclass ActionContext;
27e8a544f1ad1e2044b3e993fe7236e16ac099c7Eric Greveson
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtjclass CmdLineAction {
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj bool _isVerb;
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White char * _arg;
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj static std::list <CmdLineAction *> _list;
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtjpublic:
11f343b8117dbf56931f537820c2749a8232fec2Liam P. White CmdLineAction (bool isVerb, char const * arg);
62d835b4bbb0f1f046e30d9b67f8e9517cc6175cjohanengelen virtual ~CmdLineAction ();
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
27e8a544f1ad1e2044b3e993fe7236e16ac099c7Eric Greveson void doIt (ActionContext const & context);
27e8a544f1ad1e2044b3e993fe7236e16ac099c7Eric Greveson /** Return true if any actions were performed */
27e8a544f1ad1e2044b3e993fe7236e16ac099c7Eric Greveson static bool doList (ActionContext const & context);
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj static bool idle (void);
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj};
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj} // Inkscape
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj#endif /* __INK_MAIN_CMD_LINE_ACTIONS_H__ */
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj/*
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj Local Variables:
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj mode:c++
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj c-file-style:"stroustrup"
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj indent-tabs-mode:nil
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj fill-column:99
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj End:
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj*/
9912b702d1f761cbcb527644c2c637e6a84466e8gouldtj// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :