]> git.lyx.org Git - features.git/commit
Make it possible to uses non-ascii labelstring, endlabelstring and
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 11 Nov 2006 12:00:34 +0000 (12:00 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 11 Nov 2006 12:00:34 +0000 (12:00 +0000)
commit7e7d28a0cad1f383e814b9384024e3049fa47c1c
tree83ceeab83bfe28169fc380727bd6d9497cd06945
parent1354f4b6d645e27b9d1b9247aeb143c606080d8e
Make it possible to uses non-ascii labelstring, endlabelstring and
labelstring_appendix in layout files

* src/text2.C
(LyXText::setLayout): Translate labelwidthstring for paragraph
(LyXText::getStringToIndex): labelwidthstring is now a docstring

* src/buffer.[Ch]
(Buffer::translateLabel): New method for translating a label if it
is not already translated by the user in the layout file

* src/lyxtext.h
(setParagraph): labelwidthstring is now a docstring

* src/support/lstrings.[Ch]
(bool isAscii): New utility function: Determine whether a docstring
contains only pure ascii

* src/text3.C
(LyXText::dispatch): setParagraph() now takes a docstring

* src/lyxlayout.C
(LyXLayout::read): Don't use from_ascii when reading labelstring_,
endlabelstring_ and labelstring_appendix_

* src/buffer_funcs.C
(setLabel): labelwidthstring is now a docstring
(setLabel): Use Buffer::translateLabel instead of Buffer::B_ to
translate labels
(expandLabel): ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15855 a592a061-630c-0410-9148-cb99ea01b6c8
src/buffer.C
src/buffer.h
src/buffer_funcs.C
src/lyxlayout.C
src/lyxtext.h
src/support/lstrings.C
src/support/lstrings.h
src/text2.C
src/text3.C