lyx_mirror/src/frontends/controllers/ControlToc.h
Lars Gullik Bjønnes 44cd0fc9a1 The std::string mammoth path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 15:43:21 +00:00

38 lines
763 B
C++

// -*- C++ -*-
/**
* \file ControlToc.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#ifndef CONTROLTOC_H
#define CONTROLTOC_H
#include "ControlCommand.h"
#include "toc.h"
#include <vector>
/** A controller for TOC dialogs.
*/
class ControlToc : public ControlCommand {
public:
///
ControlToc(Dialog &);
/// Goto this paragraph id
void goTo(lyx::toc::TocItem const &);
/// Return the list of types available
std::vector<std::string> const getTypes() const;
/// Given a type, returns the contents
lyx::toc::Toc const getContents(std::string const & type) const;
};
#endif // CONTROLTOC_H