Commit Graph

9836 Commits

Author SHA1 Message Date
Abdelrazak Younes
1004ba79f1 Port of Martin Vermeer's QNote work: fix of framed and shaded note.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14696 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 08:57:00 +00:00
Abdelrazak Younes
f475b7bde6 This commit transfers most of the LyXView use from BufferView to WorkArea, most notably:
LyXView::updateLayoutChoice();
LyXView::updateToolbars();
LyXView::getLyXFunc().processKeySym(key, state);
LyXView::dispatch(cmd);

* BufferView
  - workAreaKeyPress(): deleted

* BufferView::pimpl
  - gui(): deleted
  - workAreaKeyPress(): deleted
  - workAreaDispatch(): special FuncRequest transfered to WorkArea::dispatch()

* WorkArea
  - WorkArea(): now needs a LyXView
  - lyx_view: new member
  - scrollBufferView(): new method

* qt4/GuiWorkArea: adapted to above changes
* qt4/GuiImplementation: ditto
* qt3/GuiWorkArea: ditto
* qt3/QContentPane: ditto
* gtk/GuiWorkArea: ditto
* gtk/GWorkArea: ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14695 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 21:57:23 +00:00
Jean-Marc Lasgouttes
d147703f9b unused code I forgot
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14694 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 15:43:33 +00:00
Bo Peng
6be47509b8 Fix bug 2768 (inset comment eats space after it)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14692 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 15:12:26 +00:00
Edwin Leuven
e305fdea55 replace depreciated bitBlt() with calls to qpainter's drawPixmap()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14691 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 14:55:34 +00:00
Bo Peng
22a3512110 Scons: fix ICONV support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14690 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 14:23:57 +00:00
Jean-Marc Lasgouttes
b1a54e83eb remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14687 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 13:28:23 +00:00
Georg Baum
161db0a9ee * src/support/docstring.h: Add char_traits template functions for
gcc 3.3.x and older. They were first supplied with the libstdc++ of
	gcc 3.4.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14685 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 12:31:35 +00:00
Georg Baum
9245b426b3 Update file format for unicode
* src/buffer.C
	(LYX_FORMAT): update

	* src/bufferparams.h
	(inputenc): document

	* lib/lyx2lyx/LyX.py
	(format_relation): last format is now 249
	(get_encoding): return utf8 for formats > 248

	* lib/lyx2lyx/lyx_1_5.py
	(convert_utf8): don't change \inputencoding anymore
	(revert_utf8): new, revert encoding if possible

	* development/FORMAT: describe format 249


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14684 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 07:08:58 +00:00
José Matox
575ae4a8d7 Debris from earlier typo fix in file name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14683 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 21:54:42 +00:00
Abdelrazak Younes
c29afd391c generate_enconding_info.py renamed to generate_encoding_info.py
As a python advocate Jose you could do better ;-)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14682 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 21:19:03 +00:00
Jean-Marc Lasgouttes
6a84d8dc6a - avoid testing for fortran when setting up libtool
- test for iconv library



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14681 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 20:20:36 +00:00
Jean-Marc Lasgouttes
8d3ef3a4ca LYX_CHECK_ERRORS: exit with status 1 if there is an error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14680 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 20:14:41 +00:00
Georg Baum
9e5a37c7d0 * src/output_plaintext.C
(asciiParagraph): fix constant overflow


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14679 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 19:46:36 +00:00
Jean-Marc Lasgouttes
91ea3b5438 * text2.C (changeDepthAllowed): exit early when selection spans
several cells (bug 2630)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14678 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 19:14:44 +00:00
Bo Peng
486d32ba39 Scons: add ICONV_CONST to common/config.h, require library iconv
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14676 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 16:47:37 +00:00
Peter Kümmel
d308909bee check for ICONV_CONST
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14675 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 16:38:04 +00:00
Abdelrazak Younes
0ca50d9637 deleted "#include <boost/cstdint.hpp>" as it is already in unicode.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14674 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 16:30:47 +00:00
José Matox
a1564186de rename generate_enconding_info.py to generate_encoding_info.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14673 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 15:11:57 +00:00
Edwin Leuven
5d28253e20 * furter simplifications:
- simplify setting/unsetting of item
  - consolidate 2 methods that set bulletSelected
  - store character (int) instead of pointer to item

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14672 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 15:07:13 +00:00
Abdelrazak Younes
bd61a7a387 Windows compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14671 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 14:19:52 +00:00
Peter Kümmel
1fbbe9636e enable nls with option >all<, print instruction to enable nls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14670 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 11:46:57 +00:00
Peter Kümmel
1f3b82f3ba require iconv
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14669 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 11:18:51 +00:00
Peter Kümmel
4a14a050b4 use module to find support libraries, also search for win32libs( http://www.kdelibs.com/wiki/index.php/3rd-party_libraries_required_for_KDElibs_4 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14668 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 11:10:43 +00:00
Georg Baum
28ef49f2d9 * src/buffer.C
(Buffer::errorList): simplify

	* src/buffer.h
	emptyErrorList_ move to buffer.C and make it static const

	* src/lyx_main.C
	(LyX::exec2): Use for_each instead of for loop


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14667 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 09:33:49 +00:00
Peter Kümmel
63b5b965df unicode.C needs inconv.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14666 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 09:15:37 +00:00
Abdelrazak Younes
615ef2527a add docstring.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14665 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 09:00:53 +00:00
Peter Kümmel
ee07d30cbf search for alloca also in malloc.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14664 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 08:59:30 +00:00
Abdelrazak Younes
7f3df9dfcd add docstring.h
reorder alphabetically


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14663 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 07:34:43 +00:00
Bo Peng
5687075007 Scons: fix a uic bug, add unicode.hC
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14662 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 00:33:39 +00:00
Lars Gullik Bjønnes
c46b7d8955 Merge the unicode branch into trunk.
- src/support/unicode.[Ch]: new files with functions for converting
  to and fro ucs4, ucs2 and utf8.
- src/support/docstring.h: specialization of basic_string that
  holds a uint32_t internally.
- Several functions changed to use char_type instead of char or unsigned char.
- Qt3 and Qt4 sends ucs2 on to core
- Gtk sends ucs4 on to core
- Read and write utf-8 .lyx files.
- font_metrics and painter updated to handle ucs4 chars as input.
- Quite a bit of ugly compability code, conversion string->docstring, etc.
- Have fun...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 22:54:59 +00:00
Georg Baum
f0648e2320 Fix bug 2637
* src/graphics/GraphicsConverter.C
	(Converter::Impl::Impl): Don't call the default converter directly,
	but create a temporary script with build_script() as for the
	configured converters. This makes sure that the file name does not
	need to be passed on the command line anymore.
	(build_script): This cannot fail anymore, so change the return type
	to void
	(build_script): Use build_conversion_command also for the default
	converter. This has the advantage that the special code for moving
	${outfile}.0, ${outfile}.1 is actually used for ImageMagick's convert.
	(build_conversion_command): factored out from build_script


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14657 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 19:07:43 +00:00
Georg Baum
a392ba1c17 Fix bug 2723
* src/lyx_sty.C
	(lyxgreyedout_def): Use \textcolor instead of \color


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14654 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 17:36:49 +00:00
Bo Peng
b0442dfd66 Scons: minor INSTALL.scons fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14653 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 16:23:50 +00:00
Abdelrazak Younes
c5a4f61f33 This commit creates a error_lists map member inside the Buffer class.
I had no choice but to use string for the map key. This is
because the only information that could be passed to the controller is a
string.

With this new architecture, persistent error lists are now possible.

* Buffer
  - errorList_, addError(),  : deleted
  - std::map<std::string, ErrorList> errorLists_ : new member
  - errorList(std::string const & type): associated accessors

* buffer_funcs.C
  - bufferErrors(Buffer const & buf, TeXErrors const & terr): now needs a third errorList argument
  - bufferErrors(Buffer const & buf, ErrorList const & el): deleted.

* Converter
  - convert(): now needs an ErrorList argument instead of filling the Buffer errorList member directly.
  - runLaTeX(): ditto
  - scanLog(): ditto

* CutAndPaste.C
  - pasteParagraphList(): ditto
  - pasteSelection(): ditto

* lyxtext.h/text.C
  - readParagraph(): ditto
  - LyXText::read(): ditto

* importer:
  - Importer::Import(): ditto

* BufferView_pimpl.C
  - loadLyXFile(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly.

* exporter.C
  - Export(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly in lyxfunc.C

* ControlErrorList.C
  - initialiseParams(): translation operation transfered here from LyXView::showErrorList().

* LyXView.C
  - LoadLyXFile(): add a showErrorList("Parse") call.
  - showErrorList(): simplified due to code transferred to the ControlErrorList.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14652 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 16:16:43 +00:00
Peter Kümmel
f01c7f5983 GuiWorkArea: #undef QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14649 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:55:03 +00:00
Edwin Leuven
1a08a29b0f make bullet configuration functional in the document settings dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14647 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:44:05 +00:00
Georg Baum
f402dcb0bd * lib/doc/Extended.lyx: Remove the registered-sign from a heading,
since it can not be represented in the Czech sdoc_toc in latin2
	encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14646 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:43:27 +00:00
Jean-Marc Lasgouttes
904fde99e2 * dociterator.C (forwardPosNoDescend): when at the end of the
inset, leave it, like forwardPos does (bug 2510).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14645 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:29:59 +00:00
Bo Peng
c94fcdeeae Scons: fix a filelist bug (missing spell.C)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14643 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 14:30:40 +00:00
Georg Baum
53e52f2df1 * lib/doc/doc_toc.py: Add language info for Czech
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14642 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 13:57:32 +00:00
Michael Schmitt
69c839dccf * development/tools/mkdoclinks.sh:
* development/tools/makeLyXsigc.sh:
        * development/tools/scgen.pl: remove obsolete files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14637 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 10:21:06 +00:00
Georg Baum
425dfd3a24 Fix bug 2289
* src/tex2lyx/text.C
	(void parse_noweb): new, parse a noweb code chunck
	(void parse_text): handle noweb <<xxx>>= and [[xxx]] constructs

	* src/tex2lyx/tex2lyx.[Ch]: new global variable noweb_mode and
	command line option to set it

	* src/tex2lyx/preamble.C
	(parse_preamble): prepend "literate-" to the textclass name in
	noweb mode

	* lib/configure.py
	(checkConverterEntries): fix literate -> lyx converter
	(checkConverterEntries): fix typo in latex -> sxw converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14635 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 09:46:28 +00:00
Bo Peng
c8e38f5e05 Scons: stop globbing filenames, use explicit file list instead.
* INSTALL.scons: stop lyx1.4.x/qt2 support
	* development/scons/scons_manifest.py: list of all filenames
	* development/scons/SConstruct: use explicit file list
	* development/scons/scons_utils.py: remove globFiles


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14634 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 04:54:25 +00:00
Bo Peng
d7588feb8f Scons: check minor version number (>=0.96.92)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14633 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 01:51:05 +00:00
Michael Schmitt
6764fe0ee2 remove lyxsocket and all obsolete Win32-related files from ./development
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14632 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 20:58:11 +00:00
Michael Schmitt
783cb8f8bf * lib/chkconfig.ltx: fix comments ("LyXConfig.lyx.in" =>
LaTeXConfig.lyx.in")
        * lib/doc/LyXConfig.lyx.in: remove obsolete file
        * lib/doc/Makefile.am: remove LyXConfig.lyx.in from EXTRA_DIST


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14630 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 20:48:38 +00:00
Michael Schmitt
ee452c0f38 * src/tex2lyx/test.ltx:
* lib/layouts/revtex4.layout: refer to tex2lyx rather than
        reLyX in comments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14627 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 20:05:28 +00:00
Jean-Marc Lasgouttes
ed6fcf9529 * buffer.C (updateDocLang): update labels when changing language.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14625 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 16:38:51 +00:00
Abdelrazak Younes
58d136aa60 * GuiView:
- mainWidget(): deleted

* GuiImplementation.C: adapted to above change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14624 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 16:25:51 +00:00