]>
git.lyx.org Git - lyx.git/log
Abdelrazak Younes [Sun, 15 Oct 2006 22:32:56 +0000 (22:32 +0000)]
MacOSX compile fix: The class Point conflicted with a struct defined in MacTypes.h.
* coordcache.[Ch]: put everything in the LyX namespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15340
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 15 Oct 2006 21:47:29 +0000 (21:47 +0000)]
This commit saves the need to check for lyx::use_gui in a number of places.
* lyx_main.h: define "extern bool lyx::use_gui" here.
* NoGuiFontMetrics.h: new class for command-line LyX
* NoGuiFontLoader.h: new class for command-line LyX
* Application.C:
- theFontMetrics(): returns the above dummy FontMetrics when use_gui is false.
- theFontLoader(): returns the above dummy FontLoader when use_gui is false.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15339
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Sun, 15 Oct 2006 14:37:06 +0000 (14:37 +0000)]
Update to latest from boost 1.34 cvs release branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15337
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 15 Oct 2006 09:20:25 +0000 (09:20 +0000)]
fix typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15336
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 15 Oct 2006 08:32:37 +0000 (08:32 +0000)]
* src/factory.C
(readInset): Add comment about citation commands
* src/tex2lyx/text.C
(known_jurabib_commands): remove fullcite since LyX does not know it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15335
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 14 Oct 2006 19:58:42 +0000 (19:58 +0000)]
Add comments WRT to where the function implementations are.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15334
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 14 Oct 2006 15:31:50 +0000 (15:31 +0000)]
revert change from previous commit and remove the FontMetrics access completely in order to be sure that bibitemWidest() gives the same bibitem GUI and no-GUI modes (even if that is potentially the wrong one.).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15333
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 14 Oct 2006 15:22:08 +0000 (15:22 +0000)]
Fix crash on LateX export.
* insetbibitem.C:
- bibitemWidest() don't use theFontMetrics in non GUI mode.
- Add 3 FIXMEs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15332
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 14 Oct 2006 14:15:06 +0000 (14:15 +0000)]
Fix command-line export
* MathFactory.C:
- initMath(): revert change from r15327 because initSymbols() is needed for proper math parsing.
- math_font_available(): return false if lyx::use_gui is false.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15331
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 14 Oct 2006 13:15:46 +0000 (13:15 +0000)]
add some assertions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15330
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 14 Oct 2006 12:39:18 +0000 (12:39 +0000)]
MacOSX comiplation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15329
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 14 Oct 2006 12:36:19 +0000 (12:36 +0000)]
* 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
Abdelrazak Younes [Fri, 13 Oct 2006 21:27:55 +0000 (21:27 +0000)]
enable buffer-export without loading the GUI.
* lyx_main.C:
- parse_export(): set lyx::use_gui to false.
* MathFactory.C:
- initMath(): initSymbols() only if lyx::use_gui is true.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15327
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 13 Oct 2006 19:45:10 +0000 (19:45 +0000)]
ensure that Application is properly destroyed after at the end of LyX::priv_exec()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15326
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 13 Oct 2006 16:48:12 +0000 (16:48 +0000)]
* GuiApplication: explicitly clear out socket_callbacks_ in the destructor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15325
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 13 Oct 2006 16:44:44 +0000 (16:44 +0000)]
In order to support multiple LyXView each BufferView needs its own CoordCache. This is what's implemented in this commit.
theCoords is now a thing of the past and all CoordCache accesses are done via BufferView::coordCache() now. I had to modify a number of methods to pass BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15324
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 13 Oct 2006 15:35:18 +0000 (15:35 +0000)]
Add missing convert<> specialization for unsigned long.
This is needed on OS X.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15323
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 13 Oct 2006 14:15:31 +0000 (14:15 +0000)]
WorkArea::processKeySim(): ensure that LyXFunc holds the proper LyXView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15322
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Fri, 13 Oct 2006 04:59:00 +0000 (04:59 +0000)]
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
Enrico Forestieri [Thu, 12 Oct 2006 23:28:20 +0000 (23:28 +0000)]
Small fix for the last version bump
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15318
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 12 Oct 2006 22:30:42 +0000 (22:30 +0000)]
* Gui::newView(): cleanup unused arguments.
* qt4/GuiImplementation.h: remove duplicate unused newWorkArea() method definition.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15317
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 12 Oct 2006 22:02:45 +0000 (22:02 +0000)]
* GuiApplication.C: align Windows with other platform. No more static trick!
* lyx_main:
- LyX::application_ : new scoped_ptr member containing the Application instance.
- LyX::priv_exec(): initialize application_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15316
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 12 Oct 2006 20:21:14 +0000 (20:21 +0000)]
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
Abdelrazak Younes [Thu, 12 Oct 2006 20:03:09 +0000 (20:03 +0000)]
fix formatting issue.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15314
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 12 Oct 2006 19:40:04 +0000 (19:40 +0000)]
Replace crash on startup with a memory leak.
* src/frontends/qt[34]/GuiApplication.C
(lyx::frontend::Application * createApplication): Don't return the
address of a temporary, but use the new operator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15313
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 12 Oct 2006 19:18:17 +0000 (19:18 +0000)]
Work around a gcc bug on systems where wchar_t is not used as lyx::char_type
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15312
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 12 Oct 2006 16:50:47 +0000 (16:50 +0000)]
compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15311
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 12 Oct 2006 15:23:49 +0000 (15:23 +0000)]
ensure that theLyXFunc is set to the proper LyXView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15310
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 12 Oct 2006 14:58:57 +0000 (14:58 +0000)]
preliminar support for multiple LyXView.
* LyXFunc: new setLyXView() method
* LyXView::dispatch(): call LyXFunc::setLyXView() before lyx::dispatch()
What remains to be done is to ensure that every call to lyx::dispatch that is LyXView dependant is replaced with LyXView::dispatch().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15308
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 12 Oct 2006 14:49:19 +0000 (14:49 +0000)]
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
Abdelrazak Younes [Thu, 12 Oct 2006 14:10:13 +0000 (14:10 +0000)]
This commit is purely mechanical and get rid of lyx_gui.[Ch].
Only qt4 is guaranted to compile and work. I did not remove gtk and qt3 lyx_gui.C because they might be needed for reference to complete the header declarations in "GuiApplication.C".
- lyx_gui::use_gui transfered to lyx::use_gui in lyx_main.C
- all remaining lyx_gui functions transfered to Application and corresponding GuiApplication implementations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15306
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 12 Oct 2006 10:50:45 +0000 (10:50 +0000)]
Convert labels to unicode
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15305
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 12 Oct 2006 06:54:30 +0000 (06:54 +0000)]
Remove unused declarations of writeFileAscii
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15304
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 11 Oct 2006 22:30:31 +0000 (22:30 +0000)]
* LyX class (lyx_main.[Ch]):
- new buffer_list_ member and accessors
- implementation of theBufferList() extern function
* Application: remove everything related to BufferList
* lyx_cb.C: test for lyx::use_gui before using theApp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15303
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 11 Oct 2006 20:01:32 +0000 (20:01 +0000)]
Change tracking:
* src/paragraph.h: remove enum ChangeTracking;
remove default parameters for insertChar and insertInset
* src/BufferView.h: constify getCurrentChange()
* src/changes.h: make Change constructor explicit
* src/insets/*.C:
* src/*.C: adjust accordingly; add FIXMEs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15302
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 11 Oct 2006 19:40:50 +0000 (19:40 +0000)]
Introduce wide streams. This fixes the remaining problems of plain text
export (e.g. the ToC) and the navigate menu.
* src/insets/insetbase.h
(InsetBase::plaintext): output to a docstream
(InsetBase::textString): ditto
* src/mathed/TextPainter.h
(TextPainter::show): ditto
* src/support/docstream.[Ch] New file and string streams for
docstring. The file streams convert to UTF8 on the fly.
* many more files: Adjust to the changes above
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15301
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 11 Oct 2006 18:54:47 +0000 (18:54 +0000)]
Remove unused stuff. To anybody who moves functions around:
Please don't forget to clean up includes and using directives.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15300
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 11 Oct 2006 18:32:32 +0000 (18:32 +0000)]
qt3 compiles again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15299
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 11 Oct 2006 17:24:46 +0000 (17:24 +0000)]
This commit cleans up everything related to singleton. The other important change is that lyx::dispatch() and lyx::getStatus become _the_ official way to use LyXFunc equivalent methods.
* lyxfunc.h:
- theLyXFunc(): new function in the global namespace.
- lyx::dispatch(): new function in the lyx namespace.
- lyx::getStatus(): new function in the lyx namespace.
* bufferlist.h:
- theBufferList(): new function in the global namespace.
* Clipboard.h:
- theClipboard(): new function in the global namespace.
* Selection.h:
- theSelection(): new function in the global namespace.
* FontLoader.h:
- theFontLoader(): new function in the global namespace.
* FontMetrics.h:
- theFontMetrics(LyXFont const &): new function in the global namespace.
* Application.C: implements the functions defined above.
* LyXView.h:
- getLyXFunc(): deleted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15298
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 11 Oct 2006 13:01:12 +0000 (13:01 +0000)]
remove the focusInEvent() and focusOutEvent() that had so many bad side effect...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15297
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 10 Oct 2006 15:56:41 +0000 (15:56 +0000)]
MacOSX compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15295
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 10 Oct 2006 13:24:08 +0000 (13:24 +0000)]
* frontends/Painter:
- text(): now returns drawn text width()
* rowpainter:
- paintChars(): use the returned width from Painter::text() instead of recalculating it.
All other files: implement the API change. qt3 and gtk not 100% guaranted to compile nor work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15294
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 16:33:20 +0000 (16:33 +0000)]
This commit is converting everything related to browsing to unicode (qt4 only).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15293
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 9 Oct 2006 16:08:27 +0000 (16:08 +0000)]
compilation fixes for qt3 after Abdel's latest changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15292
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Mon, 9 Oct 2006 14:21:11 +0000 (14:21 +0000)]
Fix bug 2744:
* buffer.[Ch] (changeRefsIfUnique): extend to handle bibitems
as well (the function takes a InsetCode argument now);
clean up by using InsetIterator.
* InsetMathHull.C (doDispatch): changeRefsIfUnique needs a
InsetCode argument now (bug 2744).
* insetlabel (doDispatch): changeRefsIfUnique needs a
InsetCode argument now.
* insetbibitem (doDispatch): use changeRefsIfUnique
(actual fix for bug 2744).
* insetcommand.[Ch]:
* insetcite.[Ch]: implement replaceContents, which is
used by changeRefsIfUnique.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15289
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 13:28:32 +0000 (13:28 +0000)]
even more unicode work...
qt3 and gtk not guaranted to compile nor work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15288
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 12:46:08 +0000 (12:46 +0000)]
incomplete qt3 and gtk support for Revision 15283
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15286
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 12:30:55 +0000 (12:30 +0000)]
more unicode Work: Menubar and Toolbar.
No idea whether qt3 and gtk compiles.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15285
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 12:07:05 +0000 (12:07 +0000)]
more unicode work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15284
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 10:35:14 +0000 (10:35 +0000)]
Patch 1 Log:
* controllers/Dialog.[Ch]
- View::title_ is now a docstring (ctor and access functions changed)
* controllers/ControlLog.[Ch]
- title() now returns a docstring
* controllers/ControlLog.[Ch]
- title() now returns a docstring
* qt4/*: adapted to above changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15283
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 9 Oct 2006 09:15:37 +0000 (09:15 +0000)]
more unicode work.
* lstrings.[Ch]: new docstring trim() function
* qt4/validators.C: PathValidator::validate() and printable_list() converted to unicode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15281
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 8 Oct 2006 14:24:12 +0000 (14:24 +0000)]
revert to revision 15266
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15280
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 8 Oct 2006 10:32:33 +0000 (10:32 +0000)]
* ControlChanges:
- getChangeAuthor() and getChangeDate(): converted to unicode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15279
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 8 Oct 2006 10:31:34 +0000 (10:31 +0000)]
Fix debug output (detected by a MSVC warning)
* src/support/unicode.C
(iconv_convert): Use boost::uint32_t for storing a buffer character,
since the previously stored unsigned char is too small. I did not
use lyx::char_type on purpose because that might not be interpreted
as number, but as wide character if lyx::char_type == wchar_t.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15278
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 8 Oct 2006 10:21:23 +0000 (10:21 +0000)]
use from_ascii on pure ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15277
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 8 Oct 2006 09:59:17 +0000 (09:59 +0000)]
Oops, I forgot to return a reference in operator+=. This patch fixes that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15276
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 8 Oct 2006 09:56:41 +0000 (09:56 +0000)]
use new docstring += operator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15275
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 8 Oct 2006 09:44:26 +0000 (09:44 +0000)]
Add operator += for ASCII C strings and single ASCII chars
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15274
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 8 Oct 2006 09:36:16 +0000 (09:36 +0000)]
* insetCollapsable:
- setLabel(), getNewLabel(), floatName(): converted to unicode
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15273
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 8 Oct 2006 08:47:26 +0000 (08:47 +0000)]
Fix linking issue with MacOSX.
* insetcollapsable: new floatName method.
* insetfloat.C: floatname function deleted.
* insetwrap.C: floatname function deleted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15272
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 8 Oct 2006 07:39:02 +0000 (07:39 +0000)]
Compile fix. This was easy, since the code is alsmost identical to qt4,
but I am not going to do gtk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15271
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 8 Oct 2006 06:57:46 +0000 (06:57 +0000)]
Avoid another name clash (probably #define check ...) on OS X with Qt 4.2.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15270
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 7 Oct 2006 17:09:30 +0000 (17:09 +0000)]
remove double include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15269
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 7 Oct 2006 17:07:46 +0000 (17:07 +0000)]
remove unused variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15268
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 7 Oct 2006 16:47:54 +0000 (16:47 +0000)]
Rename namespace Alert to lyx::frontend::Alert.
This prevents a name clash with Qt 4.2.0 on OS X.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15267
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 7 Oct 2006 16:30:26 +0000 (16:30 +0000)]
* qt_helpers:
- ucs4_to_qchar() and qchar_to_ucs4() have been inlined.
- ucs4_to_qstring(): pass a QString to avoid a copy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15266
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 7 Oct 2006 16:15:06 +0000 (16:15 +0000)]
This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk.
Basically, I replaced all methods in the font_metrics namespace by a proper virtual interface FontMetrics. The FontLoader is _the_ container for FontMetrics.
This patch should also bring some optimizations in a number of place in the code. This is because we do not need any more to search for the LyXFont at each font_metrics call. In effect, the speed advantage is not as sensible and this is a bit deceiving considering that this was my primary motivation behind the patch. But I like the patch anyway as it cleans up the relation and interfacing between fonts, metrics and frontends.
* frontends/FontMetrics.h: new virtual interface. Renamed from font_metrics.h
* qt4/GuiFontMetrics: corresponding qt4 implememtation. Renamed from qfont_metrics.C. The smallCaps particular case treatment has been transfered here as well as the width cache for MacOSX and Windows.
* qt4/QLPainter.C: the smallCapsText has been reworked to return the width of the drawn text.C
all other files: replace font_metric helper function call with corresponding FontMetrics method calls.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15265
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Sat, 7 Oct 2006 00:35:01 +0000 (00:35 +0000)]
Replace the magic value 1000 with a const variable
* src/support/unicode.C
(iconv_convert): replace 1000 by const outsize.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15264
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 6 Oct 2006 21:49:13 +0000 (21:49 +0000)]
remove LFUN_TOOLTIPS_TOGGLE and associated Dialog::tooltipsEnabled() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15263
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Fri, 6 Oct 2006 19:59:41 +0000 (19:59 +0000)]
Change tracking:
Remove methods
* trackChanges(...)
* untrackChanges(...)
* cleanChanges(...)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15262
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Fri, 6 Oct 2006 18:53:35 +0000 (18:53 +0000)]
Change tracking:
* rename output_changes to outputChanges
* rename tracking_changes to trackChanges
* add FIXMEs for later revision
* remove trackChanges(); the CT data structure will always be set up
* decouple LFUNs changes-output/change-accept/change-reject/
all-changes-accept/all-changes-reject from LFUN changes-track
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15261
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 5 Oct 2006 16:52:04 +0000 (16:52 +0000)]
* lyx_gui: parse_lyxrc() and getStatus() methods deleted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15256
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Thu, 5 Oct 2006 03:08:08 +0000 (03:08 +0000)]
Scons: fix windows DESTDIR installation problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15253
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Thu, 5 Oct 2006 02:58:13 +0000 (02:58 +0000)]
Scons: fix cygwin postinstall/lyx.sh installation problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15250
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 4 Oct 2006 21:43:40 +0000 (21:43 +0000)]
* 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
Michael Schmitt [Wed, 4 Oct 2006 19:29:15 +0000 (19:29 +0000)]
* 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
Georg Baum [Wed, 4 Oct 2006 19:01:00 +0000 (19:01 +0000)]
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
Bo Peng [Wed, 4 Oct 2006 17:37:02 +0000 (17:37 +0000)]
Scons: set default_build_mode cleverly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15244
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Wed, 4 Oct 2006 16:45:46 +0000 (16:45 +0000)]
Scons: libintl also needs /MD option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15240
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 4 Oct 2006 16:22:38 +0000 (16:22 +0000)]
Give a better error message for missing layout include files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15239
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Wed, 4 Oct 2006 15:12:15 +0000 (15:12 +0000)]
Scons: command line arguments may be overwritten when building tools are loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15237
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Wed, 4 Oct 2006 15:05:34 +0000 (15:05 +0000)]
Scons: fix ICONV_LIB caching problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15236
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 4 Oct 2006 12:43:13 +0000 (12:43 +0000)]
enable the font width cache for Windows also, it saves three seconds on the UserGuide test on my machine (18s versus 21 second).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15235
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 4 Oct 2006 10:08:51 +0000 (10:08 +0000)]
enable Font cache only for MacOSX and inline width() for other platform.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15233
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 4 Oct 2006 09:34:56 +0000 (09:34 +0000)]
MacOSX compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15230
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Tue, 3 Oct 2006 21:33:45 +0000 (21:33 +0000)]
No need to not use boost format on cygwin after the wchar_t fix
* configure.ac: avoid the cygwin test for setting USE_BOOST_FORMAT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15228
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 3 Oct 2006 20:03:25 +0000 (20:03 +0000)]
compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15226
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 3 Oct 2006 19:45:43 +0000 (19:45 +0000)]
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
Georg Baum [Tue, 3 Oct 2006 19:27:17 +0000 (19:27 +0000)]
Fix crash on systems where sizeof(wchar_t) == 2 and gcc is used by adding
a working ctype<lyx::char_type> locale facet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15223
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 16:17:32 +0000 (16:17 +0000)]
This commit introduces the FontLoader interface class. In the future, I intend to extend it with a proper encapsulation of font metrics.
* frontends/FontLoader.h: new interface class.
* frontends/Application.h: new FontLoader() pure virtual method
* frontends/lyx_gui: update_fonts() and font_available() methods deleted
* [qt3/qt4/gtk]/GuiApplication: implement the new interface
* qt4/GuiFontLoader:
- renamed from FontLoader
- now derives from FontLoader
- now in the lyx::frontend namespace
* qt3/qfont_loader
- now derives from FontLoader
* gtk/xftFontLoader
- now derives from FontLoader
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15220
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 15:51:16 +0000 (15:51 +0000)]
APPLE compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15218
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Tue, 3 Oct 2006 14:50:41 +0000 (14:50 +0000)]
Fix the fix for bug 2869.
* src/insets/insetvspace.C (doDispatch): open dialog on
mouse release (not press).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15216
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Tue, 3 Oct 2006 14:31:25 +0000 (14:31 +0000)]
Scons: fix substFile dependence problems
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15215
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 14:21:15 +0000 (14:21 +0000)]
use theApp directly for default fonts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15214
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 13:59:01 +0000 (13:59 +0000)]
Put back doxygen comments deleted from lyx_gui.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15212
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 13:38:28 +0000 (13:38 +0000)]
* lyx_gui: create_view(), start() and exit() functions deleted.
* lyx_main.C and lyx_cb.C: use Application methods directly instead of the above functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15211
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Tue, 3 Oct 2006 12:37:18 +0000 (12:37 +0000)]
Avoid compile errors due to the min/max macros on mingw, too
* src/support/fontutils.C:
Undefine the min and max macros if they are defined
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15210
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 11:42:33 +0000 (11:42 +0000)]
transfer lyx_gui::exit() to frontends/lyx_gui.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15209
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 3 Oct 2006 10:34:10 +0000 (10:34 +0000)]
This commit creates a new "frontends/lyx_gui.C" that contains all functions that are not frontend dependent any more. It also creates 3 new pure virtual methods in Application:
virtual std::string const romanFontName() = 0;
virtual std::string const sansFontName() = 0;
virtual std::string const typewriterFontName() = 0;
My goal is to transfer all of "frontends/*/lyx_gui.C" to "frontends/lyx_gui.C". When this is done, "frontends/lyx_gui.C" can go altogether as its functions will then be replaced with direct calls to theApp->XXX().
* frontends/lyx_gui.C: new file with code transfered from [qt3,qt4,gtk]/lyx_gui.C
* frontends/Application: 3 new font related pure virtual methods
* [qt3,qt4,gtk]/GuiApplication: implement the above method with code transfered from lyx_gui.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15208
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Tue, 3 Oct 2006 10:08:15 +0000 (10:08 +0000)]
Fix bug 2869.
* src/insets/insetvspace.C (doDispatch): set cursor properly on mouse
(button 3) press.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15207
a592a061 -630c-0410-9148-
cb99ea01b6c8