]> git.lyx.org Git - features.git/commit
Partial fix to bug 2355.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 Mar 2006 11:57:19 +0000 (11:57 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 Mar 2006 11:57:19 +0000 (11:57 +0000)
commita9b0afd3b556f621f78647bb27961eaf4fe694ce
tree360d8fec4650a6500e47ad43b1d52a07525b6ccb
parent9d6cad3fe60696d795280a886623fdc9a89f9de6
Partial fix to bug 2355.

* src/bufferparams.C
(bool BufferParams::writeLaTeX):
(void BufferParams::useClassDefaults): only take action when there is
a ToC structure

* src/frontends/qt2/QDocument.C
(void QDocument::apply):
(void QDocument::update_contents): only take action when there is
        a ToC structure

* src/frontends/xforms/FormDocument.C
(bool FormDocument::language_apply):
(bool FormDocument::options_apply):
(void FormDocument::options_update): only take action when there is
        a ToC structure; disable
(void FormDocument::UpdateClassParams): disable the secnumdepth and
tocdepth widgets when there is no ToC structure

* src/frontends/xforms/FormDocument.h
(options_apply): do not return a bool (was not used)

* src/lyxtextclass.C
(hasTocLevels): new method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13471 a592a061-630c-0410-9148-cb99ea01b6c8
src/bufferparams.C
src/frontends/qt2/QDocument.C
src/frontends/xforms/FormDocument.C
src/frontends/xforms/FormDocument.h
src/lyxtextclass.C
src/lyxtextclass.h