lyx_mirror/src/frontends/controllers/ControlToc.h
Jean-Marc Lasgouttes 1c52d8f898 toc support reorganization; changes to xform_helpers; aspect ratio patch from herbert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4732 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-21 15:51:07 +00:00

45 lines
880 B
C++

// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2001 The LyX Team.
*
* ======================================================
*
* \file ControlToc.h
* \author Angus Leeming <a.leeming@ic.ac.uk>
*/
#ifndef CONTROLTOC_H
#define CONTROLTOC_H
#ifdef __GNUG__
#pragma interface
#endif
#include <vector>
#include "ControlCommand.h"
#include "toc.h"
/** A controller for TOC dialogs.
*/
class ControlToc : public ControlCommand
{
public:
///
ControlToc(LyXView &, Dialogs &);
/// Goto this paragraph id
void goTo(toc::TocItem const &) const;
/// Return the list of types available
std::vector<string> const getTypes() const;
/// Given a type, returns the contents
toc::Toc const getContents(string const & type) const;
};
#endif // CONTROLTOC_H