2001-10-09 15:20:10 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file ControlTexinfo.h
|
|
|
|
* \author Herbert Voss <voss@perce.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLTEXINFO_H
|
|
|
|
#define CONTROLTEXINFO_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
2002-01-25 19:07:34 +00:00
|
|
|
#include "LString.h"
|
2001-10-09 15:20:10 +00:00
|
|
|
|
|
|
|
/** A controller for Texinfo dialogs. */
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
class ControlTexinfo : public ControlDialogBI {
|
2001-10-09 15:20:10 +00:00
|
|
|
public:
|
2001-10-10 16:45:05 +00:00
|
|
|
/// the file extensions
|
|
|
|
enum texFileSuffix {cls, sty, bst};
|
2001-10-09 15:20:10 +00:00
|
|
|
///
|
|
|
|
ControlTexinfo(LyXView &, Dialogs &);
|
|
|
|
///
|
2001-10-10 16:45:05 +00:00
|
|
|
void viewFile(string const filename) const;
|
2001-10-09 15:20:10 +00:00
|
|
|
///
|
2001-10-10 16:45:05 +00:00
|
|
|
void rescanStyles() const;
|
2001-10-09 15:20:10 +00:00
|
|
|
///
|
2001-10-10 16:45:05 +00:00
|
|
|
void runTexhash() const;
|
|
|
|
///
|
|
|
|
string const getContents(texFileSuffix type, bool withPath) const;
|
|
|
|
|
2001-10-09 15:20:10 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
virtual void apply() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLTEXINFO_H
|