mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
ec8da0035d
Ok, Ok, I know this touches a lot of files, but the benefits are worth the huge re-compilation now. Trust me. Would I lie to you? Actually, this also fixes a bug in ControlInset, so you'd have had to recompile 31 files anyway. Happy now? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3391 a592a061-630c-0410-9148-cb99ea01b6c8
60 lines
988 B
C++
60 lines
988 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlThesaurus.h
|
|
* Copyright 2001 the LyX Team
|
|
* Read the file COPYING
|
|
*
|
|
* \author John Levon
|
|
*/
|
|
|
|
|
|
#ifndef CONTROLTHESAURUS_H
|
|
#define CONTROLTHESAURUS_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include <vector>
|
|
|
|
#include "LString.h"
|
|
#include "Thesaurus.h"
|
|
#include "ControlDialog_impl.h"
|
|
|
|
/** A controller for Thesaurus dialogs.
|
|
*/
|
|
class ControlThesaurus : public ControlDialogBD {
|
|
public:
|
|
///
|
|
ControlThesaurus(LyXView &, Dialogs &);
|
|
|
|
/// replace the particular string
|
|
void replace(string const & newstr);
|
|
|
|
/// show dialog
|
|
virtual void showEntry(string const & str);
|
|
|
|
/// get meanings
|
|
Thesaurus::Meanings const & getMeanings(string const & str);
|
|
|
|
/// the text
|
|
string const & text() {
|
|
return oldstr_;
|
|
}
|
|
|
|
private:
|
|
/// last string looked up
|
|
string laststr_;
|
|
|
|
/// entries for last string
|
|
Thesaurus::Meanings meanings_;
|
|
|
|
/// original string
|
|
string oldstr_;
|
|
|
|
/// not needed.
|
|
virtual void apply() {}
|
|
};
|
|
|
|
#endif // CONTROLTHESAURUS_H
|