]> git.lyx.org Git - features.git/commit
First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com)
authorBo Peng <bpeng@lyx.org>
Sun, 9 Apr 2006 04:35:24 +0000 (04:35 +0000)
committerBo Peng <bpeng@lyx.org>
Sun, 9 Apr 2006 04:35:24 +0000 (04:35 +0000)
commit2b82051a8191e7095631801dd18cc0178bfad756
tree7ffe971dd75d6877e9463913c2c2eab37dfeb9bc
parenteb485caa9653a20dc87649ebe17ed7b877cdf651
First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com)
layout file in the same directory as .lyx file will be used. .cls can also
be in this directory.
* src/buffer.C, bufferparams.C: move filepath to bufferparams so this
info will be available in getToken()
* src/lyxtextclasslist.h, .C: add addTextClass() that read a .layout file
from filepath.
* src/lyxtextclass.h, .C: pass filepath to LyXTextClass::load(). .layout
file in filepath will be loaded before system ones.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13611 a592a061-630c-0410-9148-cb99ea01b6c8
src/buffer.C
src/bufferparams.C
src/bufferparams.h
src/lyxtextclass.C
src/lyxtextclass.h
src/lyxtextclasslist.C
src/lyxtextclasslist.h