2001-05-04 10:36:36 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlToc.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-30 19:24:28 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Angus Leeming
|
2001-03-30 19:24:28 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-30 19:24:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLTOC_H
|
|
|
|
#define CONTROLTOC_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "ControlCommand.h"
|
2002-07-21 15:51:07 +00:00
|
|
|
#include "toc.h"
|
2003-02-25 14:51:38 +00:00
|
|
|
#include <vector>
|
2001-03-30 19:24:28 +00:00
|
|
|
|
|
|
|
/** A controller for TOC dialogs.
|
|
|
|
*/
|
2002-10-21 17:38:09 +00:00
|
|
|
class ControlToc : public ControlCommand {
|
2001-03-30 19:24:28 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-02-25 14:51:38 +00:00
|
|
|
ControlToc(Dialog &);
|
2001-03-30 19:24:28 +00:00
|
|
|
|
|
|
|
/// Goto this paragraph id
|
2003-07-27 13:18:55 +00:00
|
|
|
void goTo(lyx::toc::TocItem const &);
|
2001-03-30 19:24:28 +00:00
|
|
|
|
2002-07-21 15:51:07 +00:00
|
|
|
/// Return the list of types available
|
2001-03-30 19:24:28 +00:00
|
|
|
std::vector<string> const getTypes() const;
|
|
|
|
|
|
|
|
/// Given a type, returns the contents
|
2003-07-27 13:18:55 +00:00
|
|
|
lyx::toc::Toc const getContents(string const & type) const;
|
2001-03-30 19:24:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLTOC_H
|