Commit Graph

1566 Commits

Author SHA1 Message Date
Georg Baum
fa1856440c Restore inputenc support
* src/encoding.h
	(encoding_table): remove, this is no longer needed with unicode
	(iconvName_): new member: name of the encoding in iconv syntax

	* src/exporter.C
	(Exporter::Export): Use return value of Buffer::makeLaTeXFile

	* src/buffer.[Ch]
	(Buffer::makeLaTeXFile): return whether the file has been created
	successfully

	* src/buffer.C
	(Buffer::makeLaTeXFile): Use a docstream that converts to the correct
	encoding
	Display an error dialog is something went wrong

	* src/bufferparams.C
	(BufferParams::writeLaTeX): Undo the utf8 inputenc hack

	* src/frontends/qt4/QDocumentDialog.C: Add some FIXMEs

	* src/support/unicode.[Ch]
	(eightbit_to_ucs4): New conversion function
	(ucs4_to_eightbit): New conversion function

	* src/support/docstream.[Ch]
	(utf8_codecvt_facet_exception): Move to header and rename to
	iconv_codecvt_facet_exception
	(odocfstream): Take the encoding as argument

	* src/support/docstream.C
	(utf8_codecvt_facet): Generalize to other encodings than utf8 and
	rename to iconv_codecvt_facet

	* src/encoding.C: Remove obsolete tables

	* src/output_latex.C
	(TeXOnePar): Convert the paragraph to different encoding if needed

	* lib/encodings: Remove obsolete tables


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15564 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-26 15:01:45 +00:00
Georg Baum
35847cdad8 Make the code a bit more python-like
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15563 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-26 14:43:58 +00:00
Jean-Marc Lasgouttes
f113c9b63d add Ran Rutenberg as new contributor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15560 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-26 14:28:44 +00:00
Jean-Marc Lasgouttes
708abe8d95 update Hebrew translation of Intro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15559 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-26 13:47:16 +00:00
Georg Baum
06139fb170 Port InsetCommandParams::scanCommand to lyx2lyx.
Now we can parse all commands that could be parsed in the old
InsetCommandParams


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15551 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-25 20:08:44 +00:00
Georg Baum
7dba7817ce missing bits of the new galician translation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15550 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-25 19:03:36 +00:00
Michael Schmitt
06e52e5e31 * ui/stdmenus.ui: move "New Window" and "Close Window" to the bottom of the menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15540 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-24 20:57:29 +00:00
Jean-Marc Lasgouttes
1a54d2826b small update to contributors
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15533 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-24 14:12:27 +00:00
Jean-Marc Lasgouttes
6222e8558a new Galician docs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15525 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-24 08:10:34 +00:00
Abdelrazak Younes
f4857dab04 new LFUN_WINDOW_CLOSE
* LyXFunc:
  - dispatch(): transfer assertion on lyx_view_ to each LFUN on a case by case basis.
  - dispatch(): new LFUN_WINDOW_CLOSE
  - getStatus(): special treatment for LFUN_LYX_QUIT

* LyX:
  - views_, addLyXView(): deleted
  - quit(): call saveGeometry() on each LyXView before exiting.

* GuiApplication:
  - is now a QObject.
  - quitLyX(): new Qt slot for lastWindowClosed signal.

* Gui.h:
  - destroyView(), destroyWorkArea(): deleted
  - viewIds(): new method

* GuiImplementation:
  - implement above changes.
  - GuiImplementation is now a QObject
  - cleanupViews(): new private slot.
  - buildViewIds(): new helper method
  - views_ and work_areas_ are now maps of raw pointers instead of schared_ptr.

* LyXView
  - now stores its id.
  - dispatch(): special treatment for LFUN_WINDOW_CLOSE.
  - workAreaIds(): new method.
  - close(): new pure virtual method.
  - saveGeometry(): new pure virtual method.

* GuiView:
  - implements above changes.
  - GuiView(): set WA_DeleteOnClose and Qt::WA_QuitOnClose to let Qt manage the destruction on close().
  - closeEvent(): session stuff transfered to saveGeometry()

* WorkArea
  - now store its id.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15514 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-23 16:29:24 +00:00
Georg Baum
d56de86b6a Fix stupid backslash quoting error that resukted in wrong conversion of
command inset parameters containing a ".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15483 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-22 16:51:44 +00:00
Michael Schmitt
eabb9a5996 * CREDITS: Let the world know that I worked on change tracking :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15481 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-22 16:12:49 +00:00
André Pönitz
21e8d10d97 convert symbols file to UTF8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15471 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-22 11:48:21 +00:00
Abdelrazak Younes
4d3fbc113f My six month cleanup crusade is now paying off: LyX has now multiple windows support!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15438 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 09:45:11 +00:00
Lars Gullik Bjønnes
8ee23bd35a Stuff!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15420 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-20 21:42:29 +00:00
Michael Schmitt
0d1c89fe64 change tracking:
ui/stdtoolbars.ui: revert removal of "insert-note" in "Extra" toolbar


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15407 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-20 13:32:27 +00:00
Michael Schmitt
e422b75ace change tracking:
* lib/ui/default.ui:
        * lib/ui/stdtoolbars.ui: add review toolbar;
        move "Insert note" from "Extra" to "Review" toolbar


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15400 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-20 12:26:27 +00:00
Georg Baum
47e8cccbe1 small readability fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15369 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-19 07:53:03 +00:00
Georg Baum
9285259c56 fix indentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15361 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-18 09:44:08 +00:00
Georg Baum
b02242bfaf Rework InsetCommandParams interface and file storage
* src/insets/insetcommandparams.[Ch]:
	(operator[]): New, access a parameter
	(clear): New, clear all parameters
	(info_): New, stire info about this command
	(cmdname): Rename to name_
	(contents, options, sec_options): Replace with params_. Parameters
	are now stored as docstring.
	(findInfo): New factor for command info for all commands
	(read, write): Use new syntax
	(parameter set and get methods): reimplemenmt for new parameter storage

	* src/insets/insetcommand.h
	(getParam): New, get a parameter
	(setParam): New, set a parameter
	(parameter set and get methods): Adjust to InsetCommandParams changes

	* src/insets/insetbibitem.[Ch]
	(write): Remove, not needed anymore
	(directWrite): ditto

	* src/insets/insetbibitem.C
	(InsetBibitem::read): Use InsetCommand::read

	* src/insets/insetref.C
	(InsetRef::latex): Use new InsetCommandParams interface

	* src/mathed/InsetMathHull.C
	(InsetMathHull::doDispatch): ditto

	* src/text3.C
	(LyXText::dispatch): ditto

	* src/factory.C
	(createInset): Create InsetCommandParams with command name
	(readInset): ditto
	(readInset): Remove error message for bibitem, since bibitem is
	now a normal command inset

	* src/buffer.C: Bump file format number

	* src/frontends/controllers/ControlCommand.[Ch]
	(ControlCommand): take an additional command name parameter

	* src/text.C
	(readParToken): Remove code for \bibitem

	* lib/lyx2lyx/LyX.py: Bump latest file format number

	* lib/lyx2lyx/lyx_1_5.py
	(convert_bibitem, convert_commandparams): new, convert to new format
	(revert_commandparams): new, convert to old format

	* development/FORMAT: document new format

	* many other files: Adjust to the changes above


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15357 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-17 21:07:16 +00:00
Jürgen Spitzmüller
c0a61f6c18 * lib/lyx2lyx/lyx_1_5.py: correct indendation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15349 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-16 11:41:57 +00:00
Jürgen Spitzmüller
77e145a406 Remember the char style label state and make it globally switchable.
* src/buffer: 
	file format incrementation to 251
* src/insets/insetcharstyle.[Ch]:
	- make show_label a param and save its state
	- let all-insets-toggle togle the label in charstyles
* development/FORMAT: 
	document file format change
* lib/lyx2lyx/LyX.py:
	add new file format
* lib/lyx2lyx/lyx_1_5.py:
	remove char style label param on reversion to 250.
	

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15345 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-16 07:06:41 +00:00
Michael Schmitt
13b48b7172 * lib/bind/aqua.bind:
* lib/ui/classic.ui:
	* lib/ui/stdmenus.ui: remove tooltips-toggle


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15328 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-14 12:36:19 +00:00
Martin Vermeer
6c77c9ae41 New layout for International Society for Photogrammetry and Remote Sensing
journals

        * lib/layouts/isprs.layout: the layout
        * lib/doc/LaTeXConfig.lyx.in: the documentation



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15319 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-13 04:59:00 +00:00
Enrico Forestieri
6f62c98e31 Small fix for the last version bump
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15318 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-12 23:28:20 +00:00
Martin Vermeer
21316375fe Support for optional arguments for environments. No material format change.
* src/buffer.C
	(BufferList bufferlist;): bump version

	* src/output_latex.C
	TexEnvironment: add optarg for environments

	* lib/lyx2lyx/lyx_1_5.py: add converters

	* development/FORMAT: document



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15315 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-12 20:21:14 +00:00
Georg Baum
7f93cfe8e9 Fix bug 2901: Add menu entry for numbered formulas
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15307 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-12 14:49:19 +00:00
Michael Schmitt
4160f069a7 * src/LyXAction.C:
* src/BufferView.C:
	* src/lfuns.h: introduce LFUN_CHANGE_NEXT

	* src/text3.C: activate LFUN_ACCEPT/REJECT_CHANGE only in CT mode

	* src/rowpainter.C: reduce change bar width
	* src/rowpainter.h: enlarge change bar margin

	* lib/ui/stdmenus.ui: add "Next Change" in "Navigate" menu


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15249 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-04 21:43:40 +00:00
Michael Schmitt
c1bea68c0f * src/text3.C: disable MATH_INSERT in text mode
* lib/ui/stdmenus.ui: move math text styles from
        menu "insert" to menu "edit"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15246 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-04 19:29:15 +00:00
Georg Baum
90867eff0d Add lilypond external inset
* src/graphics/GraphicsConverter.C
	(build_script): Change the current directory to the directory of
	the output file

	* src/converter.C
	(Converters::convert): Add comment

	* lib/external_templates: Add lilypond template

	* lib/configure.py
	(checkFormatEntries): Add lilypond format
	(checkConverterEntries): Add lilypond converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15245 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-04 19:01:00 +00:00
Georg Baum
368f6a53a8 Support lgathered and rgathered math environments
* src/mathed/InsetMathSplit.C
	(InsetMathSplit::validate): Only require amsmath for AMS stuff

	* src/mathed/MathFactory.C
	(createInsetMath): create InsetMathSplit if the latexkey is "split"

	* src/mathed/MathParser.C
	(Parser::parse1): remove "gathered" and "aligned", since these are
	now handled via lib/symbols
	(Parser::parse1): create InsetMathSplit if the latexkey is "split"

	* lib/symbols: Add aligned, gathered, lgathered and rgathered


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15224 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-03 19:45:43 +00:00
Georg Baum
2c72e0ecaa Fix bug 2868
* src/insets/insetgraphics.C
	(findTargetFormat): return pdf for vector graphics

	* src/format.h
	(Flags): new enum describing format flags
	(flags_): new member variable for format flags
	(vectorFormat): new, tell whether a format can contain vector graphics

	* src/format.C: adjust to flags changes

	* src/frontends/qt[34]/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new vector flag
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt3/ui/QPrefFileformatsModule.ui
	* src/frontends/qt4/ui/QPrefFileformatsUi.ui
	(vectorCB): new checkbox for vector flag

	* src/lyxrc.C
	(LyXRC::read): read vector flag
	(LyXRC::write): write vector flag

	* lib/doc/Customization.lyx: document format flags

	* lib/configure.py
	(checkFormatEntries): Add vector flag to some formats


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15205 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-03 08:34:59 +00:00
Jean-Marc Lasgouttes
2e9ab2c009 add Marius Ionescu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15167 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 13:54:43 +00:00
Georg Baum
b098503faf Add latex2rtf converter
* lib/configure.py
	(checkFormatEntries): Add rtf format
	(checkConverterEntries): Add latex2rtf converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15165 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 13:50:20 +00:00
Georg Baum
5e5f96fb72 Document inset-dissolve without format change (taken from 1.4 branch)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15141 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-25 15:06:04 +00:00
Georg Baum
5e2c1d12ae revert broken changeset 15036
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15140 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-25 14:55:44 +00:00
Georg Baum
0b6edc6972 add hu_Tutorial
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15128 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 18:34:05 +00:00
Georg Baum
83b18f414e Fix bug 2845
* lib/configure.py
	(checkFormatEntries): Add wmf format
	(checkConverterEntries): Add wmf -> eps converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15118 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 11:37:22 +00:00
Lars Gullik Bjønnes
dfd9c61b31 propdel svn:executable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15056 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-19 07:09:36 +00:00
Jean-Marc Lasgouttes
d6fb2e14a1 new Hungarian translation of the Tuturial
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15040 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-18 12:18:47 +00:00
Jürgen Spitzmüller
6b1c429bf4 * lib/doc/UserGuide.lyx:
* lib/doc/Tutorial.lyx:
* lib/doc/de_UderGuide.lyx:
* lib/doc/de_Tutorial.lyx:
	document inset-dissolve.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15036 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-18 09:11:48 +00:00
Georg Baum
69c447720a Add phantom icons from Uwe and me (last part of bug 1473)
* src/frontends/controllers/ControlMath.C
	(latex_misc): Add phnatom, vphantom and hphantom

	* lib/images/math/hphantom.xpm: new
	* lib/images/math/phantom.xpm: new
	* lib/images/math/vphantom.xpm: new

	* lib/Makefile.am: add new files
	* development/scons/scons_manifest.py: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15009 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 10:58:58 +00:00
Michael Schmitt
ea52fa17a6 add missing menu short-cuts for capitalize/uppercase/lowercase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14987 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 16:13:41 +00:00
Michael Schmitt
efac21f442 move character styles from "insert" to "edit";
move word-capitalize/upcase/locase to "Text Styles" submenu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14986 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 15:33:26 +00:00
Michael Schmitt
529be89f2a activate table/math toolbar in table/math mode
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14947 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 06:52:55 +00:00
Georg Baum
7061e8cd54 Fix bug 2660
* lib/doc/de_UserGuide.lyx: fix image paths


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14930 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 12:47:13 +00:00
Georg Baum
3f0fc88ced Fix bug 2698 (new images from Uwe Stöhr)
* src/frontends/controllers/ControlMath.C
	(latex_misc): Add intop and ointop

	* lib/images/math/intop.xpm: New
	* lib/images/math/ointop.xpm: Ditto

	* lib/images/math/int.xpm: Add box to make the difference to intop clear
	* lib/images/math/oint.xpm: ditto

	* lib/Makefile.am: add new files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14924 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 09:51:50 +00:00
Michael Schmitt
c06ab970c5 add/fix menu prefix for submenus;
remove "Document/Read-Only" entry

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14913 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-06 11:33:06 +00:00
Michael Schmitt
b5218e1fe8 add some missing LFUNs to the menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14862 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-01 16:39:35 +00:00
Michael Schmitt
21b1aac809 add some missing LFUNs to the menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14853 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-30 19:06:12 +00:00