]>
git.lyx.org Git - features.git/log
Abdelrazak Younes [Sat, 18 Nov 2006 17:47:12 +0000 (17:47 +0000)]
* lyx_main.[Ch]
- merge exec() and priv_exec()
- LyX constructor is now public.
- there is no global singleton_ object anymore, only a pointer.
- IconvProcessor(): new utf8 to ucs4 convertor.
* main.C: instantiate a LyX object and exec() it. No more use of static methods.
* docstring.C: use utf8ToUcs4() instead of a static variable.
* unicode.h: declare extern utf8ToUcs4().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15967
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 18 Nov 2006 16:19:18 +0000 (16:19 +0000)]
Bug fixes from Ugras Baran:
when iconpalette detached from the math dialog, the iconpalette widget
width may become too large to fit to the screen.
when detached resized to a too small size, icons overlap.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15966
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 18 Nov 2006 12:49:47 +0000 (12:49 +0000)]
Split FileName into FileName and DocFileName. FileName will be used for all
file names, and DocFileName contains the special extensions for documents,
included figures etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15965
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 18 Nov 2006 11:38:11 +0000 (11:38 +0000)]
add bug from Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15964
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Sat, 18 Nov 2006 03:04:42 +0000 (03:04 +0000)]
Scons: adopt Georg's solution for tex2lyx/gettext
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15963
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Fri, 17 Nov 2006 20:43:49 +0000 (20:43 +0000)]
Avoid processing empty lines when reading the symbols file
* src/mathed/MathFactory.C
(initSymbols): skip a line when it is empty or a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15961
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 17 Nov 2006 19:52:45 +0000 (19:52 +0000)]
Document pasteParagraphList as hinted by Jean-Marc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15960
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Fri, 17 Nov 2006 19:27:42 +0000 (19:27 +0000)]
Add locale facet in order to input numbers from wide streams on systems
where sizeof(wchar_t) == 2
* src/support/docstring.C:
- New class ascii_num_get_facet for inputting numbers from idocstreams.
- Add the ascii_num_get_facet facet to the locale initializer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15959
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 17 Nov 2006 17:42:52 +0000 (17:42 +0000)]
Optimize drawing.
* BufferView:
- update(): returns a pair of bools in order to inform for singlePar cases.
- workAreaDispatch(): ditto and simplify the logic by using cursor update flags.
* text.C
- breakParagraph(): change the cursor update flag as needed.
- insertChar(): ditto.
- erase(): ditto
- redoParagraph(): now returns true if there is a height change.
* text3.C: dispatch():
- initialize the cursor flag at the beginning
- LFUN_MOUSE_PRESS: no need to update.
- LFUN_MOUSE_RELEASE: ditto.
- add some FIXMEs and comments.
* LyXFunc::dispatch(): simplify the BufferView update.
* insets/insetcollapsable.C: clarify and simplify the logic in doDispatch().
* WorkArea::dispatch(): redraw only if needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15958
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 17 Nov 2006 17:28:14 +0000 (17:28 +0000)]
Revert change in rev. 15955 because as Georg says:
This fix will create extra translator work, and nobody will remmeber that
bformat should be used instead of your solution once the real problem is
fixed. If you use from_ascii instead of from_utf8 everything is OK. utf8
can be wrong as encoding for files anyway, so for now we require that files
are pure ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15957
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 17 Nov 2006 17:19:43 +0000 (17:19 +0000)]
Incomplete TocDialog slider implementation from Ugras Baran.
* QTocDialog::getIndexDepth(): new method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15956
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 17 Nov 2006 16:58:32 +0000 (16:58 +0000)]
* docstring.C: add a FIXME in utf8_to_ucs4() WRT static IconvProcessor and Mac
* lyx_main.C:
- LyX::prepareExit(): avoid utf8_to_ucs4() conversion at this late stage because this can cause problem on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15955
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 17 Nov 2006 15:24:26 +0000 (15:24 +0000)]
Fix Mac crash on exit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15954
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 17 Nov 2006 09:03:30 +0000 (09:03 +0000)]
Fix bug 2393 (from Dov Feldstern)
* src/lyxtext.h
* src/text.C
(LyXText::charsTranspose): New method for transposing characters
* src/text.C
(LyXText::dispatch): Call charsTranspose for LFUN_CHARS_TRANSPOSE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15951
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 16 Nov 2006 15:18:28 +0000 (15:18 +0000)]
add more bugs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15950
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 16 Nov 2006 12:37:55 +0000 (12:37 +0000)]
Bug fixes from Ugras Baran:
Following patch corrects some misbehavior in TOC dialog:
- When clicking on Toc insets, dialog switches to correct list.
- cursor goes to correct entry when clicked..
- some other fixes..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15949
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 16 Nov 2006 12:20:50 +0000 (12:20 +0000)]
Patch from Martin V.: Fix Undo/Redo bugs with outline.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15948
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 16 Nov 2006 08:17:48 +0000 (08:17 +0000)]
Add button for default layout to the toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15946
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 15 Nov 2006 23:55:08 +0000 (23:55 +0000)]
* po/*.po: remerge (also consider outdated po files)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15945
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 15 Nov 2006 23:41:24 +0000 (23:41 +0000)]
* LINGUAS: do not ignore some po files for the time being
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15944
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 15 Nov 2006 23:37:26 +0000 (23:37 +0000)]
* QPrefsDialog.C: make static strings translateable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15943
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Wed, 15 Nov 2006 23:34:04 +0000 (23:34 +0000)]
Back to business
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15942
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Wed, 15 Nov 2006 23:15:19 +0000 (23:15 +0000)]
LyX-1.5.0alpha1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15940
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Wed, 15 Nov 2006 23:10:24 +0000 (23:10 +0000)]
Remove usage from egrep, cleaner code (Jean-Marc)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15939
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Wed, 15 Nov 2006 21:47:55 +0000 (21:47 +0000)]
Fix typo (fix by Jean-Marc).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15938
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 15 Nov 2006 21:40:46 +0000 (21:40 +0000)]
Fix crashes reported by Bennet Helm and Kornel Benko
* src/support/unicode.[Ch]
(IconvProcessor): Rework the implementation to fix two bugs:
- iconv_close was called even if the conversion descriptor was
invalid
- The compiler generated copy constructor did simply copy the pimpl_
pointer. Therefore pimpl_ was deleted twice for all IconvProcessor
instances created by eightbit_to_ucs4() and ucs4_to_eightbit().
This is solved by using a scoped_ptr for pimpl_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15937
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Wed, 15 Nov 2006 18:39:20 +0000 (18:39 +0000)]
fix pch error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15936
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Wed, 15 Nov 2006 18:01:44 +0000 (18:01 +0000)]
disable scrollbar when not needed, this patch is totally uncritical
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15935
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Wed, 15 Nov 2006 15:46:45 +0000 (15:46 +0000)]
Allow alpha as suffix for development releases
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15934
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 15 Nov 2006 09:17:40 +0000 (09:17 +0000)]
rename parameters to sensible names, the old names where misleading
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15933
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Wed, 15 Nov 2006 01:20:31 +0000 (01:20 +0000)]
Use booleans True and False and fix a typo in configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15932
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 21:00:34 +0000 (21:00 +0000)]
QComboBox::textChanged is a Qt3 support signal only, QComboBox::editTextChanged is the new Qt4 signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15931
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 14 Nov 2006 20:45:07 +0000 (20:45 +0000)]
Make nesting levels work. Obviously ++nestdepth does not do in python
what it does in C++.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15930
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 14 Nov 2006 20:33:13 +0000 (20:33 +0000)]
add clarifying comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15929
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 19:54:56 +0000 (19:54 +0000)]
don't pass temporary string objects as parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15928
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 17:31:14 +0000 (17:31 +0000)]
set missing property: svn:eol-style native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15927
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 17:25:31 +0000 (17:25 +0000)]
svn propset svn:eol-style native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15925
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Tue, 14 Nov 2006 17:13:55 +0000 (17:13 +0000)]
* po/*.po: remerge (again)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15924
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Tue, 14 Nov 2006 16:56:47 +0000 (16:56 +0000)]
* po/hu.po: update by Alex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15923
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Tue, 14 Nov 2006 16:53:38 +0000 (16:53 +0000)]
* po/nn.po: update by Ingar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15922
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 14 Nov 2006 16:46:06 +0000 (16:46 +0000)]
add a FIXME comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15921
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 16:41:09 +0000 (16:41 +0000)]
add bibliography bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15920
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 16:28:44 +0000 (16:28 +0000)]
support::chmod does not take a const char* as file name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15919
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 16:26:16 +0000 (16:26 +0000)]
support::chmod does not take a mode_t as mode parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15918
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 16:11:59 +0000 (16:11 +0000)]
disable chmod usage with msvc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15917
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 14 Nov 2006 10:06:07 +0000 (10:06 +0000)]
add option to disable the console on windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15916
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Tue, 14 Nov 2006 08:19:41 +0000 (08:19 +0000)]
update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15915
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Tue, 14 Nov 2006 08:15:38 +0000 (08:15 +0000)]
* src/mathed/MathMacroArgument.C
(MathMacroArgument): fix creation of #digit string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15914
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Mon, 13 Nov 2006 23:22:31 +0000 (23:22 +0000)]
chmod fixes for msvc
* development/cmake/config.h.cmake:
there is no mode_t
* src/support/copy.C
chmod is declared in io.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15913
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 19:52:05 +0000 (19:52 +0000)]
forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15912
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Mon, 13 Nov 2006 19:23:44 +0000 (19:23 +0000)]
Fix dtl tools detection. A non-empty variable is always true in python,
even if its value is false...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15910
a592a061 -630c-0410-9148-
cb99ea01b6c8
Edwin Leuven [Mon, 13 Nov 2006 18:52:41 +0000 (18:52 +0000)]
fix signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15909
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 17:51:27 +0000 (17:51 +0000)]
another buglet
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15908
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 17:35:18 +0000 (17:35 +0000)]
Add support for the esint package
* src/LaTeXFeatures.C
(LaTeXFeatures::getPackages): handle esint and wasysym
* src/mathed/MathMacroTable.[Ch]
(requires_): New member: tell the feature this macro requires
(MacroTable::insert): take new requires arg
* src/mathed/MathMacroTemplate.C
(MathMacroTemplate::asMacroData): adjust to change above
* src/mathed/MathSupport.C
(fontinfos): add esint10 font
* src/mathed/InsetMathHull.C
(InsetMathHull::doDispatch): AMS_ON -> package_on
* src/mathed/MathMacroTable.h
* src/mathed/MathFactory.C
(initSymbols): read and store requires field for symbols
* src/mathed/InsetMathSymbol.C
(InsetMathSymbol::metrics): handle esint
(InsetMathSymbol::takesLimits): ditto
* src/buffer.C
(LYX_FORMAT): update format
(Buffer::validate): handle esint, AMS_ON -> package_on
* src/bufferparams.C:
(AMSTranslator): Rename to PackageTranslator
(BufferParams::readToken): Read \use_esint
(BufferParams::writeFile): Write \use_esint
* src/frontends/qt4/QDocumentDialog.C: handle esint
* src/frontends/qt4/ui/MathsUi.ui : add esint checkboxes
* src/frontends/qt4/GuiFontLoader.C
(symbol_fonts: Add esint10 font
(symbolFamily): handle esint10 font
(isChosenFont): Add comment
* src/frontends/controllers/ControlMath.C
(latex_varsz): Add new integral symbols
* src/support/fontutils.C
(win_fonts_truetype): Add esint10 font
* src/bufferparams.h
(enum AMS): rename to enum Package
(use_esint): new parameter
* src/lyxfont.[Ch]: Add esint font
* lib/symbols: Add new integral symbols
* lib/lyx2lyx/LyX.py
(format_relation): Update format
* lib/lyx2lyx/lyx_1_5.py: handle new format
* lib/chkconfig.ltx: Test esint package
* lib/images/math/oiintop.xpm
* lib/images/math/sqintop.xpm
* lib/images/math/sqint.xpm
* lib/images/math/ointctrclockwiseop.xpm
* lib/images/math/ointctrclockwise.xpm
* lib/images/math/iiintop.xpm
* lib/images/math/iintop.xpm
* lib/images/math/sqiint.xpm
* lib/images/math/iiint.xpm
* lib/images/math/ointclockwiseop.xpm
* lib/images/math/oiint.xpm
* lib/images/math/dotsintop.xpm
* lib/images/math/sqiintop.xpm
* lib/images/math/ointclockwise.xpm
* lib/images/math/iiiintop.xpm
* lib/images/math/dotsint.xpm
* lib/images/math/iiiint.xpm
* lib/images/math/iint.xpm: new icons
* lib/doc/LaTeXConfig.lyx.in: Add docs for esint package
* lib/doc/UserGuide.lyx: Add short documentation of integral symbols
* lib/Makefile.am: Add new files
* development/scons/scons_manifest.py: ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15907
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 13 Nov 2006 17:28:37 +0000 (17:28 +0000)]
re-enable opaque widget optimization following Trolltech developer advice (in order to speed up Mac).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15906
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 13 Nov 2006 16:59:10 +0000 (16:59 +0000)]
* LyXText::erase(): make sure the paragraph breaking is up to date. This might be not needed with current svn but will be needed for the future optimize-drawing patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15905
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 16:53:49 +0000 (16:53 +0000)]
Extend the navigate menu to child docs
* src/buffer_funcs.h
(updateLabels): Add bool childonly argument
* src/insets/insetbase.h
(addToToc): New virtual method
* src/insets/insetinclude.[Ch]
(addToToc): New virtual method
(updateLabels): New method
* src/TocBackend.h: reorganize classes so that we can forward
declare TocList
* src/insets/insetfloat.[Ch]
* src/insets/insetwrap.[Ch]
(addToToc): Adjust to type changes in TocBackend.h
* src/frontends/qt4/TocModel.[Ch]: ditto
* src/frontends/controllers/ControlToc.[Ch]: ditto
* src/TocBackend.C: ditto
(TocBackend::update) Remove test for float and wrap inset,
call virtual method instead
* src/BufferView.C
(BufferView::dispatch): make LFUN_PARAGRAPH_GOTO work even if the
target paragraph is in a different buffer
* src/MenuBackend.C: Adjust to type changes in TocBackend.h
(expandToc): Add an entry for the master doc in child docs
* src/buffer_funcs.C
(setLabel): Add text class parameter
(updateLabels): handle included docs if requested by the caller
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15904
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 15:05:17 +0000 (15:05 +0000)]
The cursor works on mac now according to Bennet.
Add a replacement bug :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15903
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 15:02:34 +0000 (15:02 +0000)]
add bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15902
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 13 Nov 2006 14:21:37 +0000 (14:21 +0000)]
update FSF address
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15899
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 10:27:57 +0000 (10:27 +0000)]
Add a cache for converted image files. This needs to be enabled in the
preferences file with \use_converter_cache true. It is disabled by default,
and no GUI support for changing the preferences is yet implemented.
* src/insets/insetgraphics.C
(InsetGraphics::prepareFile): Use image file cache
* src/insets/ExternalSupport.C
(updateExternal): Use image file cache
* src/exporter.C
(Exporter::Export): Do not use image file cache
* src/graphics/GraphicsCacheItem.C
(CacheItem::Impl::imageConverted): Add the converted file to the
image file cache
(CacheItem::Impl::convertToDisplayFo): Use image file cache
* src/converter.C
(Converters::convert): Use image file cache if the caller allowed that
* src/converter.h
(Converters::convert): Adjust arguments
* src/Makefile.am: Add new files
* src/support/lyxlib.h
(chmod): new function
(copy): add mode argument
* src/support/copy.C
(chmod): new function
(copy): implement mode argument
* src/support/mkdir.C
(lyx::support::mkdir): Add warning if permissions are ignored
* src/lyxrc.[Ch]: Add new settings \converter_cache_maxage and
\use_converter_cache
* src/ConverterCache.[Ch]: New image file cache
* src/importer.C
(Importer::Import): Do nut use the image file cache
* src/lyx_main.C
(LyX::init): Initialize the image file cache
* src/mover.[Ch]
(Mover::do_copy): Add mode argument
(SpecialisedMover::do_copy): ditto
* configure.ac: Check for chmod
* development/cmake/ConfigureChecks.cmake: ditto
* development/cmake/config.h.cmake: ditto
* development/scons/SConstruct: ditto
* development/scons/scons_manifest.py: Add new files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15897
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 13 Nov 2006 10:10:42 +0000 (10:10 +0000)]
update Italian UserGuide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15896
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 13 Nov 2006 09:53:25 +0000 (09:53 +0000)]
Use wctype character classification functions if possible
* src/buffer.C
(Buffer::insertStringAsLines): Uncomment isPrintable test
* src/support/lstrings.C
(compare_no_case): Use char_type and not int for the docstring version
(ascii_tolower): Convert to a template
(compare_ascii_no_case): Do not use a template anymore, because we
need int for the string version and char_type for the docstring
version as intermediate type
(lowercase): Use towlower if possible
(uppercase): Use towupper if possible
* src/support/textutils.h
(isLetterChar): Use iswalpha if possible
(isPrintable): Use iswprint if possible
(isPrintableNonspace): Use iswprint and iswspace if possible
(isDigit): Use iswdigit if possible
* src/paragraph.C
(Paragraph::asString): remove obsolete FIXME
(Paragraph::transformChar): add FIXME
* configure.ac: Add definition of LIBC_WCTYPE_USES_UCS4 to config.h
* development/cmake/config.h.cmake: ditto
* development/scons/SConstruct: ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15893
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Sun, 12 Nov 2006 21:47:03 +0000 (21:47 +0000)]
Check only once for dtl tools in configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15891
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 17:02:43 +0000 (17:02 +0000)]
Fix the remaining bits of bug 2476
* src/paragraph.C
(Paragraph::changeLanguage): Don't forget the dummy font change at
the end of the paragraph when changing the language. This does not
affect the other place where this code is used:
Buffer::changeLanguage.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15890
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 16:14:45 +0000 (16:14 +0000)]
* BufferView::workAreaDispatch(): prepare for finer grained updates.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15889
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 16:11:51 +0000 (16:11 +0000)]
Fix bug 2978 (inset-dissolve does not reset latex language)
* src/text.C
(LyXText::dissolveInset): Reset language to buffer language if the
dissolved inset is an ERT inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15888
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 16:00:20 +0000 (16:00 +0000)]
forgot this in the previous change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15887
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 15:48:33 +0000 (15:48 +0000)]
Fix bug 2982 (two undo steps are needed to undo inset-dissolve)
* src/CutAndPaste.C
(pasteParagraphList): Don't record undo info here...
* src/BufferView.C
(BufferView::menuInsertLyXFile): ... but here instead
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15886
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 14:59:35 +0000 (14:59 +0000)]
Fix comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15885
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 14:47:20 +0000 (14:47 +0000)]
* text.C:
- LyXText::breakParagraph(): Redo paragraphs before setCursor()
- LyXText::insertChar(): ditto
* lyxfunc.C: take into account BufferView::update() returned value for WorkArea redrawing.
* BufferView::update(): we also need a second step in singlePar mode.
* WorkArea.C
- startBlinkingCursor(): also show the cursor
- stopBlinkingCursor(): also remove the visible cursor
- processKeySym(): stop and start the cursor blinking instead of merely hide and show it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15884
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 13:42:20 +0000 (13:42 +0000)]
Fix output of labels and references that contain characters with an UCS4
codepoint > 255.
I decided that this is no file format change: We already had the change to
format 249 that allowed unicode in .lyx files. The output to .tex of
non-ascii characters is now different than before (even for those that were
supported previously, e.g. german umlauts in latin1), but this is only
relevant if people referenced a label in ERT. Since we cannot detect this
anyway we don't need a file format change.
* src/support/lstrings.C
(escape): Extend the escaping algorithm from 8 bit to 24 bit.
* src/support/lstrings.h
(escape): Update comment
* lib/lyx2lyx/lyx_1_4.py
(lyx_support_escape): Update comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15883
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 13:12:59 +0000 (13:12 +0000)]
* LyXText::backspace(): redo paragraph rows. This is needed now because we don't do this automatically at each setCursor() call. More of this kind of fixes will probably come.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15882
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 12 Nov 2006 12:01:50 +0000 (12:01 +0000)]
* po/*.po: remerge again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15881
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 12 Nov 2006 11:57:28 +0000 (11:57 +0000)]
* po/de.po: more updates
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15880
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Sun, 12 Nov 2006 11:25:20 +0000 (11:25 +0000)]
* src/frontends/qt4/QBoxDialog.C:
* src/frontends/qt4/QExternalDialog.C:
* src/frontends/qt4/QVSpaceDialog.C:
- fix signal/slot connection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15879
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 11:24:27 +0000 (11:24 +0000)]
* bufferview_funcs.C: reconstruct par.rows() in case of empty par creation.
* text2.C: tiny optimisation in LyXText::editXY()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15878
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 11:06:02 +0000 (11:06 +0000)]
strip the translation hints also in the dummy variant
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15877
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 11:03:55 +0000 (11:03 +0000)]
- coordOffset(): add an assertion on par.rows() emptiness before accessing it and a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15876
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 10:58:00 +0000 (10:58 +0000)]
Unicode: Do the conversion of error messages to docstring where they are read
in, because we don't know the encoding of external files.
* src/LaTeX.C
(LaTeX::scanLogFile): Convert error strings to docstring and add
a comment that this could be wrong
* src/Chktex.C
(Chktex::scanLogFile): Ditto
* src/LaTeX.h
(TeXErrors::error_desc): Convert to docstring
(TeXErrors::error_text): Convert to docstring
* src/buffer_funcs.C
(bufferErrors): no from_utf8 needed anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15875
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 12 Nov 2006 10:14:35 +0000 (10:14 +0000)]
* po/de.po: update (almost no console messages any more)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15874
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 12 Nov 2006 09:50:57 +0000 (09:50 +0000)]
* ui/stdmenus.ui: use the same shortcut for Eqnarrary in
"edit" and "insert"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15873
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 12 Nov 2006 09:36:08 +0000 (09:36 +0000)]
Fix translation of ambiguous messages
* src/frontends/qt4/ui/QPrefConvertersUi.ui: Readd translation hint
to label and remove broken tooltip that somebody created instead
* src/messages.C
(Messages::Pimpl::get): reenable stripping of [[..]] from
untranslated messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15872
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 08:47:49 +0000 (08:47 +0000)]
This hack is not needed any more and it is a _huge_ gain.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15871
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 08:39:11 +0000 (08:39 +0000)]
Don't ask me why but the cursor x position hack is not needed anymore following my cursor changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15870
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 08:29:05 +0000 (08:29 +0000)]
- hum... truly fix the cursor.
- remove unneeded vertical scrollbar policy setting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15869
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 12 Nov 2006 07:50:18 +0000 (07:50 +0000)]
- Clean up CursorWidget and hopefully fix Mac support.
- restore scrollbar when Buffer available.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15868
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 21:17:51 +0000 (21:17 +0000)]
new buglet
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15867
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 21:09:51 +0000 (21:09 +0000)]
unicode: ditch another utf8 roundtrip + some obsolete FIXMEs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15866
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 20:59:04 +0000 (20:59 +0000)]
unicode: ditch another utf8 roundtrip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15865
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 20:55:40 +0000 (20:55 +0000)]
Unicode: remove more utf8 roundtrips and faulty conversions to docstring
without from_utf8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15864
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 19:02:27 +0000 (19:02 +0000)]
comment unused method
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15863
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 11 Nov 2006 17:41:55 +0000 (17:41 +0000)]
- Cleanup splash screen
- fix bug when no Buffer.
- hide scrollbar when no buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15862
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 11 Nov 2006 15:30:21 +0000 (15:30 +0000)]
* Status.15x: various TOC-related bug reports (by Jürgen S.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15860
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 15:26:31 +0000 (15:26 +0000)]
Revert revision 14819 and my faulty fix for it.
* src/mathed/InsetMathScript.C
(InsetMathScript::write): Do not add braces to the nucleus
* src/mathed/MathParser.C
(Parser::parse1): Do not remove brace insets from the nucleus of
script insets
* src/mathed/InsetMathNest.C
(InsetMathNest::script): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15859
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 11 Nov 2006 15:04:19 +0000 (15:04 +0000)]
* Status.15x: new reports by JP Chretien and Pavel Sanda
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15858
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 11 Nov 2006 14:56:49 +0000 (14:56 +0000)]
* po/*.po: remerge (4 new messages)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15857
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 11 Nov 2006 14:50:21 +0000 (14:50 +0000)]
* paragraph_pimpl.C: eraseChars: assert "end >= start"
rather than "end > start"; eraseChars is invoked
in cases in which no character is to be deleted
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15856
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 11 Nov 2006 12:00:34 +0000 (12:00 +0000)]
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
Georg Baum [Sat, 11 Nov 2006 11:27:47 +0000 (11:27 +0000)]
Unicode: Avoid another from_utf8(to_utf8()) roundtrip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15854
a592a061 -630c-0410-9148-
cb99ea01b6c8