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
|
|
|
*
|
2002-09-05 14:10:50 +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
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-07-21 15:51:07 +00:00
|
|
|
#include <vector>
|
2001-03-30 19:24:28 +00:00
|
|
|
#include "ControlCommand.h"
|
2002-07-21 15:51:07 +00:00
|
|
|
#include "toc.h"
|
2001-03-30 19:24:28 +00:00
|
|
|
|
|
|
|
/** A controller for TOC dialogs.
|
|
|
|
*/
|
|
|
|
class ControlToc : public ControlCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlToc(LyXView &, Dialogs &);
|
|
|
|
|
|
|
|
/// Goto this paragraph id
|
2002-07-21 15:51:07 +00:00
|
|
|
void goTo(toc::TocItem const &) 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
|
2002-07-21 15:51:07 +00:00
|
|
|
toc::Toc const getContents(string const & type) const;
|
2001-03-30 19:24:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLTOC_H
|