mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 21:24:14 +00:00
eef71b8439
it's nice ... Herbert please look at the bugs I reported concerning when there is no cls etc. list please. For this and FormTexinfo git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4442 a592a061-630c-0410-9148-cb99ea01b6c8
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
// -*- 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
|
|
|
|
#include "ControlDialog_impl.h"
|
|
#include "LString.h"
|
|
|
|
/** A controller for Texinfo dialogs. */
|
|
|
|
class ControlTexinfo : public ControlDialogBI {
|
|
public:
|
|
/// the file extensions
|
|
enum texFileSuffix {cls, sty, bst};
|
|
///
|
|
ControlTexinfo(LyXView &, Dialogs &);
|
|
/// show contents af a file
|
|
void viewFile(string const filename) const;
|
|
/// show all classoptions
|
|
string const getClassOptions(string const & filename) const;
|
|
/// build new cls bst sty - lists
|
|
void rescanStyles() const;
|
|
/// build new bst sty cls lists
|
|
void runTexhash() const;
|
|
/// read filecontents
|
|
string const getContents(texFileSuffix type, bool withPath) const;
|
|
|
|
|
|
private:
|
|
///
|
|
virtual void apply() {}
|
|
};
|
|
|
|
#endif // CONTROLTEXINFO_H
|