2003-08-17 11:28:23 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlBranch.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming
|
|
|
|
* \author Martin Vermeer
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-08-17 11:28:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLBRANCH_H
|
|
|
|
#define CONTROLBRANCH_H
|
|
|
|
|
|
|
|
#include "Dialog.h"
|
2007-09-19 21:10:00 +00:00
|
|
|
#include "insets/InsetBranch.h"
|
2003-08-17 11:28:23 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2003-12-14 16:33:56 +00:00
|
|
|
class BranchList;
|
2003-08-17 11:28:23 +00:00
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace frontend {
|
2003-12-14 16:33:56 +00:00
|
|
|
|
2007-09-19 21:10:00 +00:00
|
|
|
class ControlBranch : public Controller
|
|
|
|
{
|
2003-08-17 11:28:23 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlBranch(Dialog &);
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const & data);
|
2003-08-17 11:28:23 +00:00
|
|
|
///
|
|
|
|
virtual void clearParams();
|
|
|
|
///
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
///
|
2007-09-19 21:10:00 +00:00
|
|
|
InsetBranchParams & params() { return params_; }
|
|
|
|
///
|
|
|
|
InsetBranchParams const & params() const { return params_; }
|
2003-08-17 11:28:23 +00:00
|
|
|
///
|
2003-12-14 16:33:56 +00:00
|
|
|
BranchList const & branchlist() const;
|
2003-08-17 11:28:23 +00:00
|
|
|
private:
|
|
|
|
///
|
2007-09-19 21:10:00 +00:00
|
|
|
InsetBranchParams params_;
|
2003-08-17 11:28:23 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-08-17 11:28:23 +00:00
|
|
|
#endif // CONTROLBRANCH_H
|