]> git.lyx.org Git - lyx.git/commit
Add support for listings package. Two listings command \lstinline, \lstinputlisting...
authorBo Peng <bpeng@lyx.org>
Wed, 9 May 2007 19:11:42 +0000 (19:11 +0000)
committerBo Peng <bpeng@lyx.org>
Wed, 9 May 2007 19:11:42 +0000 (19:11 +0000)
commit4ce743a0a77d85d5e1722a3f2854ce163e40b353
tree535576877a97204f2d4707e2705acc8cadcf587c
parent1bb709af80ddfcadd4ac5a71527715e59dcc2ecd
Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog.
* src/LyXAction.cpp: listing-insert action
* src/insets/Inset.h,cpp: LISTINGS_CODE
* src/insets/InsetInclude.cpp: handle \lstinputlisting
* src/insets/InsetListings.h,cpp: new listings inset
* src/insets/InsetListingsParams.h,cpp: parameters from listings package
* src/insets/InsetCommandParams.h,cpp: handle lstinputlisting option
* src/Bidi.cpp: handle LISTINGS_CODE
* src/frontends/qt4/ui/TextLayoutUi.ui: update UI
* src/frontends/qt4/ui/ListingsUi.ui: new dialog
* src/frontends/qt4/ui/IncludeUi.ui: update UI
* src/frontends/qt4/QInclude.h,cpp: add lstinputlisting
* src/frontends/qt4/QDocument.h,cpp: add textedit for preamble listings_params
* src/frontends/qt4/QListings.h,cpp: new listings inset
* src/frontends/qt4/Dialogs.cpp: new listings dialog
* src/frontends/controllers/ControlInclude.h,cpp: add lstinputlisting
* src/frontends/controllers/ControlListings.h,cpp: new listings inset
* src/LyXFunc.cpp: handle LISTING_CODE
* src/Paragraph.cpp: handle LISTING_CODE
* src/factory.cpp: new listings inset
* src/CutAndPaste.cpp: handle LISTINGS_CODE
* src/LaTeXFeatures.cpp: require listings
* src/Text3.cpp: Handle LISTINGS_CODE
* src/lfuns.h: add LFUN_LISTING_INSERT
* src/Buffer.cpp: change lyx file format to 269
* src/BufferParams.h,cpp: add listings_params to preamble
* lib/lyx2lyx/LyX.py: lyx2lyx
* lib/lyx2lyx/lyx_1_5.py: lyx2lyx
* lib/ui/stdmenus.inc: new menu item (no shortcut!)
* src/insets/Makefile.am: update autotools
* src/frontends/controllers/Makefile.am
* src/frontends/qt4/Makefile.dialogs
* src/frontends/qt4/Makefile.am
* po/POTFILES.in: a few more translatable files.
* development/scons/scons_manifest.py: scons build system
* development/FORMAT: document format changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18243 a592a061-630c-0410-9148-cb99ea01b6c8
45 files changed:
development/FORMAT
development/scons/scons_manifest.py
lib/lyx2lyx/LyX.py
lib/lyx2lyx/lyx_1_5.py
lib/ui/stdmenus.inc
po/POTFILES.in
src/Bidi.cpp
src/Buffer.cpp
src/BufferParams.cpp
src/BufferParams.h
src/CutAndPaste.cpp
src/LaTeXFeatures.cpp
src/LyXAction.cpp
src/LyXFunc.cpp
src/Paragraph.cpp
src/Text3.cpp
src/factory.cpp
src/frontends/controllers/ControlInclude.cpp
src/frontends/controllers/ControlInclude.h
src/frontends/controllers/ControlListings.cpp [new file with mode: 0644]
src/frontends/controllers/ControlListings.h [new file with mode: 0644]
src/frontends/controllers/Makefile.am
src/frontends/qt4/Dialogs.cpp
src/frontends/qt4/Makefile.am
src/frontends/qt4/Makefile.dialogs
src/frontends/qt4/QDocument.cpp
src/frontends/qt4/QDocument.h
src/frontends/qt4/QInclude.cpp
src/frontends/qt4/QInclude.h
src/frontends/qt4/QListings.cpp [new file with mode: 0644]
src/frontends/qt4/QListings.h [new file with mode: 0644]
src/frontends/qt4/ui/IncludeUi.ui
src/frontends/qt4/ui/ListingsUi.ui [new file with mode: 0644]
src/frontends/qt4/ui/TextLayoutUi.ui
src/insets/Inset.cpp
src/insets/Inset.h
src/insets/InsetCommandParams.cpp
src/insets/InsetCommandParams.h
src/insets/InsetInclude.cpp
src/insets/InsetListings.cpp [new file with mode: 0644]
src/insets/InsetListings.h [new file with mode: 0644]
src/insets/InsetListingsParams.cpp [new file with mode: 0644]
src/insets/InsetListingsParams.h [new file with mode: 0644]
src/insets/Makefile.am
src/lfuns.h