const fixes and alway generate/run latex on view/update

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@787 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-06-01 00:01:17 +00:00
parent 88957e028d
commit 532141facf
6 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,13 @@
2000-06-01 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/lyx_cb.C (MakeLaTeXOutput): we run MakeLaTeXOutput regard
less of dvi dirty or not.
* src/trans_mgr.[Ch] (insert): change first parameter to string
const &.
* src/chset.[Ch] (encodeString): add const to first parameter
2000-05-31 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/support/lyxstring.C (begin): fix a "shared" string bug. use

View File

@ -62,7 +62,7 @@ bool CharacterSet::loadFile(string const & fname)
}
pair<bool, int> CharacterSet::encodeString(string & str) const
pair<bool, int> CharacterSet::encodeString(string & const str) const
{
lyxerr[Debug::KBMAP] << "Checking if we know [" << str << "]" << endl;
bool ret = false;

View File

@ -19,7 +19,7 @@ public:
///
string const & getName() const;
///
std::pair<bool, int> encodeString(string &) const;
std::pair<bool, int> encodeString(string const &) const;
private:
///
string name_;

View File

@ -409,10 +409,10 @@ int MakeLaTeXOutput(Buffer * buffer)
if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)) {
path = buffer->tmppath;
}
if (!buffer->isDviClean()) {
//if (!buffer->isDviClean()) {
Path p(path);
ret = MenuRunLaTeX(buffer);
}
//}
return ret;
}

View File

@ -300,7 +300,7 @@ void TransManager::insertVerbatim(string const & str, LyXText * text)
}
void TransManager::insert(string str, LyXText * text)
void TransManager::insert(string const & str, LyXText * text)
{
// Go through the character encoding only if the current
// encoding (chset_->name()) matches the current font_norm

View File

@ -147,7 +147,7 @@ private:
///
CharacterSet chset_;
///
void insert(string, LyXText *);
void insert(string const &, LyXText *);
///
void insertVerbatim(string const &, LyXText *);
public: