]>
git.lyx.org Git - lyx.git/log
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
Abdelrazak Younes [Tue, 3 Oct 2006 08:43:32 +0000 (08:43 +0000)]
Integrate Application_pimpl into Application.C.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15206
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 3 Oct 2006 08:34:59 +0000 (08:34 +0000)]
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
Georg Baum [Tue, 3 Oct 2006 07:56:27 +0000 (07:56 +0000)]
Missing bits of the std::string -> hullType change of InsetMathHull::type_.
Now we write again \begin{align} instead of \begin{4} to .lyx and .tex.
* src/mathed/InsetMathHull.C
(InsetMathHull::header_write): write type name, not type_.
Use switch instead of if for better readability.
(InsetMathHull::footer_write): ditto
(InsetMathHull::mutate): write type name, not type_
(InsetMathHull::normalize): ditto
(InsetMathHull::infoize): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15204
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Tue, 3 Oct 2006 00:58:53 +0000 (00:58 +0000)]
Avoid a compilation error on cygwin
* src/support/fontutils.C:
Undefine the min and max macros after inclusion of windows.h on cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15203
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 2 Oct 2006 20:01:30 +0000 (20:01 +0000)]
Parse optional arguments of aligned, gathered and alignedat
* src/mathed/InsetMathSplit.[Ch]
(InsetMathSplit): Add valignment argument to constructor
* src/mathed/InsetMathSplit.C
(InsetMathSplit::write): write vertical alignment if needed
* src/mathed/MathParser.C
(Parser::parse1): parse optional arguments of aligned, gathered and
alignedat
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15202
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Mon, 2 Oct 2006 18:21:48 +0000 (18:21 +0000)]
Fix build on cygwin when using --without-x
* src/frontends/qt4/GuiView.C
(setGeometry): replace test for Q_OS_WIN32 with Q_WS_WIN
* src/support/fontutils.C:
If X_DISPLAY_MISSING is defined, compile the code for Win32
on cygwin, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15201
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 2 Oct 2006 15:40:39 +0000 (15:40 +0000)]
A fix from Ozgur Ugras BARAN:
A trivial (looking) patch to correct inset behavior, which is broken
with revision 15068. Without this patch, it is not possible to modify
an existing inset. All modifications processed as new index. (see
lyxfunc.C:1420)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15199
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 2 Oct 2006 10:48:03 +0000 (10:48 +0000)]
This commit moves system font initialization and restoration to new support/fontutils.[Ch].
These font related functions were identical for qt3 and qt4. They are not Qt dependent at all and could also apply to an eventual Win32 or MacOSX gtk port.
Jen-Marc says: It would be nice to convince fontconfig to do the same for linux.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15196
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Sun, 1 Oct 2006 10:38:43 +0000 (10:38 +0000)]
Update scons_manifest.py for changed names in src/mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15192
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 30 Sep 2006 17:17:31 +0000 (17:17 +0000)]
Fix bug 2789 (as discussed)
* src/mathed/InsetMathHull.C
(InsetMathHull::doDispatch): move code for ref insert to InsetMathNest
(InsetMathHull::getStatus): move code for ref insert to InsetMathNest
* src/mathed/InsetMathNest.C
(InsetMathNest::doDispatch): move code from InsetMathHull here
(InsetMathNest::getStatus): move code from InsetMathHull here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15189
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 30 Sep 2006 10:24:05 +0000 (10:24 +0000)]
remove unneeded include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15188
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 30 Sep 2006 08:58:17 +0000 (08:58 +0000)]
Make it compile again: Add some includes to fix signals name clash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15187
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 29 Sep 2006 23:22:53 +0000 (23:22 +0000)]
remove a FIXME, sorry for the multiple commits...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15186
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 29 Sep 2006 23:21:03 +0000 (23:21 +0000)]
Some cleanup
* Application.h: pimpl_ is now private
* GuiApplication.C: headers cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15185
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 29 Sep 2006 23:15:36 +0000 (23:15 +0000)]
some qt3 and gtk compilation fixes (hopefully)...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15184
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 29 Sep 2006 23:10:17 +0000 (23:10 +0000)]
* Application: new createView() method
* gtk/qt3/qt4/GuiApplication: createView() method deleted
* LyXView:
- init(): is now a pure virtual method. autoSave code transferred to constructor and updates to the frontends.
- setGeometry(): new pure virtual method
* gtk/GView, qt3/QtView, qt4/GuiView: adapted to above change
- setGeometry(): code transfered from GuiApplication
* lyx_main.C: call LyX::ref().addLyXView() in there instead of in Application::createView()
*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15183
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 29 Sep 2006 22:06:28 +0000 (22:06 +0000)]
This commit introduces Application_pimpl and cleanup the header includes of the affected .C files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15182
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 29 Sep 2006 21:40:56 +0000 (21:40 +0000)]
This commit splits the add() method in two methods add() and
addWithStatus(). It also replaces LyXView uses with BufferView as none of the LyXView feature were used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15181
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Thu, 28 Sep 2006 04:45:21 +0000 (04:45 +0000)]
Scons: cygwin packaging fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15178
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Thu, 28 Sep 2006 00:42:47 +0000 (00:42 +0000)]
Small fixes for STLPort compliance
* src/cursor.C: add using std::for_each;
* src/graphics/GraphicsTypes.h: add #include <string>
* src/graph.C: add using std::fill;
* src/frontends/controllers/helper_funcs.h: add #include <algorithm>
* src/bufferview_funcs.C: add using std::find;
* src/lyx_main.C: add using std::for_each;
* configure.ac: don't use boost format on cygwin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15176
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Wed, 27 Sep 2006 19:30:08 +0000 (19:30 +0000)]
Scons: correct installation of cygwin fonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15175
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 27 Sep 2006 16:28:09 +0000 (16:28 +0000)]
Implement copying of rows and columns in tables
* src/insets/insettabular.C
(InsetTabular::getStatus): enable COPY_ROW and COPY_COLUMN features
(InsetTabular::tabularFeatures): handle COPY_ROW and COPY_COLUMN
* src/tabular.h
(TabularFeature): add COPY_ROW and COPY_COLUMN
* src/tabular.[Ch]
(LyXTabular::copyRow): new method, copy a row
(LyXTabular::copyColumn): new method, copy a column
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15173
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 27 Sep 2006 16:10:47 +0000 (16:10 +0000)]
avoid comparing the addresses of dereferenced 0 pointers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15172
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Wed, 27 Sep 2006 13:54:43 +0000 (13:54 +0000)]
add Marius Ionescu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15167
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 27 Sep 2006 13:50:20 +0000 (13:50 +0000)]
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
Jean-Marc Lasgouttes [Wed, 27 Sep 2006 13:37:50 +0000 (13:37 +0000)]
compilation fix: do not forget lyx_gui.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15164
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 27 Sep 2006 10:24:13 +0000 (10:24 +0000)]
replace global variable bufferlist with Application class member access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15161
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 27 Sep 2006 08:33:37 +0000 (08:33 +0000)]
delete unneeded lyx_gui.h declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15160
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 26 Sep 2006 21:11:22 +0000 (21:11 +0000)]
delete unneeded BufferView.h declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15159
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Tue, 26 Sep 2006 19:37:09 +0000 (19:37 +0000)]
Scons: get version info from configure.ac, add fonts and postinstall script for cygwin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15158
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 26 Sep 2006 12:46:27 +0000 (12:46 +0000)]
2 style and 1 compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15156
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 26 Sep 2006 11:55:46 +0000 (11:55 +0000)]
qt3 and gtk support for revision: 15153
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15155
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 26 Sep 2006 10:06:46 +0000 (10:06 +0000)]
Free BufferView from LyXView!
* BufferView
- layoutChanged: new boost signal.
- LyXView owner(), owner_: deleted
* text3.C
- emit BufferView::layoutChanged instead of calling LyXView::setLayout directly
- LFUN_MOUSE_RELEASE: delete LyXView updateMenubar() and updateToolbars() direct calls.
The update is of both bars is done in WorkArea::dispatch().
* WorkArea.C
- dispatch(): add LyXView updateMenubar() call.
* LyXView
- connects to BufferView::layoutChanged directly to Toolbars::setLayout()
- setLayout(): deleted.
* qt4/GuiImplementation: modify BufferView construction (without LyXView).
All other files: cleanup header declaration of LyXView.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15153
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 26 Sep 2006 09:59:03 +0000 (09:59 +0000)]
* emit buffer::resetAutosaveTimers instead of calling LyXView::resetAutosaveTimer() directly
* replace bv->owner()->buffer() with bv->buffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15152
a592a061 -630c-0410-9148-
cb99ea01b6c8