]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agoUse UTF8 for LaTeX export.
Georg Baum [Thu, 19 Oct 2006 16:51:30 +0000 (16:51 +0000)]
Use UTF8 for LaTeX export.

Known problems:
- No space is output after a \hfill. I probably broke this with the
  InsetCommand patch. I'll have a look later.
- Although the encoding is now UTF8 the arguments of the inputenc package
  are still the old ones, so LaTeX will not run.
- Labels and references with non-ASCII characters are broken. This needs to
  be fixed in lyx::support::escape(), but this is a file format change.
- Something seems to be wrong with index entries, but this is probably also
  due to the InsetCommand changes.

Have fun!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15378 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago- Fix math editing
Asger Ottar Alstrup [Thu, 19 Oct 2006 16:38:13 +0000 (16:38 +0000)]
- Fix math editing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15377 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAdjust InsetFloatList to the new InsetCommand syntax.
Georg Baum [Thu, 19 Oct 2006 16:36:30 +0000 (16:36 +0000)]
Adjust InsetFloatList to the new InsetCommand syntax.
I forgot this with when I changed InsetCommand.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15376 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoHopefully temporary fix for the Tabular crash problem. Of course, this is not the...
Abdelrazak Younes [Thu, 19 Oct 2006 16:02:12 +0000 (16:02 +0000)]
Hopefully temporary fix for the Tabular crash problem. Of course, this is not the right fix but I spend hours debugging through this code without success. So unless someone knows that code better...

* BufferView::updateMetrics(): add a big FIXME and don't clear out the coord_cache_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15375 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago- Boring promote and demote instead of the sexy in and out
Asger Ottar Alstrup [Thu, 19 Oct 2006 15:30:18 +0000 (15:30 +0000)]
- Boring promote and demote instead of the sexy in and out

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15374 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago- Fix a crash when IN is clicked multiple time in a single line document.
Abdelrazak Younes [Thu, 19 Oct 2006 14:35:06 +0000 (14:35 +0000)]
- Fix a crash when IN is clicked multiple time in a single line document.
- Polish the behavior when the TOC is empty (clearing the button and the TOC tree)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15373 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoChange tracking:
Michael Schmitt [Thu, 19 Oct 2006 13:40:15 +0000 (13:40 +0000)]
Change tracking:

        src/paragraph.h:
        src/paragraph_pimpl.C:
        src/paragraph_pimpl.h:
        src/paragraph.C: remove setChangeType(...)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15372 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoChange tracking:
Michael Schmitt [Thu, 19 Oct 2006 12:49:11 +0000 (12:49 +0000)]
Change tracking:

        src/paragraph.h: remove obsolete isChangeEdited(...);
        remove obsolete isInsertedText(...); turn
        isDeletedText(...) into Paragraph::isDeleted(...)

        src/paragraph_pimpl.h: remove obsolete isChangeEdited(...)

        src/changes.h: remove obsolete isChangeEdited(...)

        src/insets/insetert.C:
        src/paragraph_pimpl.C:
        src/frontends/controllers/ControlSpellchecker.C:
        src/rowpainter.C:
        src/changes.C:
        src/paragraph.C:
        src/buffer_funcs.C: adjust properly

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15371 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoJust cosmetics and remove a FIXME.
Abdelrazak Younes [Thu, 19 Oct 2006 10:32:38 +0000 (10:32 +0000)]
Just cosmetics and remove a FIXME.

Now, lyx is really ready for multiple LyXView. Just need to create an LFUN for it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15370 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosmall readability fix
Georg Baum [Thu, 19 Oct 2006 07:53:03 +0000 (07:53 +0000)]
small readability fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15369 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* LyXFunc::owner renamed to lyx_view_
Abdelrazak Younes [Thu, 19 Oct 2006 07:28:35 +0000 (07:28 +0000)]
* LyXFunc::owner renamed to lyx_view_

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15368 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThis commit transfers the singletons defined in the Application class to the private...
Abdelrazak Younes [Thu, 19 Oct 2006 07:20:32 +0000 (07:20 +0000)]
This commit transfers the singletons defined in the Application class to the private LyX::Singletons implementation. It also put the session_ member and top_level_keymap global variable into this Singleton structure.
This commit also modifies the LyXFunc class. A LyXView is not needed any more at construction. Neither is the top level keymap. The LyXFunc key sequences are initialized only if we are in GUI mode (lyx::use_gui = true).
The next step is to rename LyXFunc::owner to LyXFunc::lyx_view_ and to put some BOOST_ASSERT. A classification between Gui and Kernel oriented LFUNs would also be welcome.

*LyX/lyx_main.[Ch]:
 - LyX::Singletons: new private structure containing all the singletons (except the main LyX one of course).
 - buffer_list_, top_level_keymap, session_: transfered to the LyX::Singletons structure.

* LyXFunc:
  - LyXFunc: default constructor does not need any arguments.
  - setupLocalKeymap(): deleted (was not used anywhere).
  - initKeySequences(): new public method called from lyx_main.C, useful only in lyx::use_gui mode.
  - new private member accessor methods

* Application:
  - Application_pimpl: deleted (transfered to LyX)
  - global singleton accessors: transfered to lyx_main.C
  - start(): code transfered to LyX::priv_exec()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15367 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoChange tracking:
Michael Schmitt [Thu, 19 Oct 2006 07:12:48 +0000 (07:12 +0000)]
Change tracking:

        src/paragraph.h:
        src/paragraph.C:
        src/paragraph_pimpl.h:
        src/paragraph_pimpl.C: setChange(...) replaces markErased(...);
        pass Change parameters as const reference
        src/insets/insettext.C: adjust accordingly
        src/changes.h:
        src/changes.C: pass Change parameters as const reference

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15366 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoconvert tooltips to unicode
Georg Baum [Wed, 18 Oct 2006 20:51:16 +0000 (20:51 +0000)]
convert tooltips to unicode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15365 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoIt compiles again. I must be crazy. At least it does not run but segfaults
Georg Baum [Wed, 18 Oct 2006 20:35:06 +0000 (20:35 +0000)]
It compiles again. I must be crazy. At least it does not run but segfaults
on startup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15364 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofontloader for gtk, probably not efficient
Georg Baum [Wed, 18 Oct 2006 20:19:55 +0000 (20:19 +0000)]
fontloader for gtk, probably not efficient

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15363 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd some sanity checks.
Abdelrazak Younes [Wed, 18 Oct 2006 12:06:04 +0000 (12:06 +0000)]
add some sanity checks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15362 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix indentation
Georg Baum [Wed, 18 Oct 2006 09:44:08 +0000 (09:44 +0000)]
fix indentation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15361 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix crash on emergencyCleanup() when lyx::use_gui is false.
Abdelrazak Younes [Wed, 18 Oct 2006 09:33:34 +0000 (09:33 +0000)]
fix crash on emergencyCleanup() when lyx::use_gui is false.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15360 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoforgot this
Georg Baum [Wed, 18 Oct 2006 08:44:44 +0000 (08:44 +0000)]
forgot this

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15359 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore compile fixes
Georg Baum [Tue, 17 Oct 2006 21:15:07 +0000 (21:15 +0000)]
more compile fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15358 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoRework InsetCommandParams interface and file storage
Georg Baum [Tue, 17 Oct 2006 21:07:16 +0000 (21:07 +0000)]
Rework InsetCommandParams interface and file storage

* src/insets/insetcommandparams.[Ch]:
(operator[]): New, access a parameter
(clear): New, clear all parameters
(info_): New, stire info about this command
(cmdname): Rename to name_
(contents, options, sec_options): Replace with params_. Parameters
are now stored as docstring.
(findInfo): New factor for command info for all commands
(read, write): Use new syntax
(parameter set and get methods): reimplemenmt for new parameter storage

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

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

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

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

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

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

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

* src/buffer.C: Bump file format number

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

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

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

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

* development/FORMAT: document new format

* many other files: Adjust to the changes above

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15357 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThis commit fixes a crash when accessing a math inset. This was due to an invalid...
Abdelrazak Younes [Tue, 17 Oct 2006 16:23:27 +0000 (16:23 +0000)]
This commit fixes a crash when accessing a math inset. This was due to an invalid CursorSlice::text() null pointer accessed in InsetMathNest::cursorPos():

    CoordCache & coord_cache = sl.text()->bv()->coordCache();

As you can see, I used this indirection to access the BufferView::CoordCache(). Bad luck, the passed CursorSlice was not completely valid inside a mathed inset, hence the crash. My solution is to pass BufferView to InsetBase::cursorPos() and all its derivative.

* InsetBase::cursorPos(): pass BufferView const &

* bufferview_funcs::coordOffset(): ditto.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15356 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoMore unicode conversion
Abdelrazak Younes [Tue, 17 Oct 2006 14:46:45 +0000 (14:46 +0000)]
More unicode conversion

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15355 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoMacOSX compile fix.
Abdelrazak Younes [Tue, 17 Oct 2006 11:58:21 +0000 (11:58 +0000)]
MacOSX compile fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15354 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThis commits cuts down LyX::exec2 into two new methods (execBatchCommands() and resto...
Abdelrazak Younes [Tue, 17 Oct 2006 08:36:04 +0000 (08:36 +0000)]
This commits cuts down LyX::exec2 into two new methods (execBatchCommands() and restoreGuiSession()) and introduce a number of helper private function to sanitize the initialization and exit process; quitLyx() is replaced with LyX::quit(). The Application starting and reset is done directly in priv_exec().

* lyx_cb.[Ch]: delete quitLyX()

* lyx_main.[Ch]
  - lyx_exit(): moved to LyX::earlyExit()
  - prepareExit(), quit(), earlyExit(), execBatchCommands(), initGuiFont(): new LyX methods.
  - LyX::priv_exec(): restructured with above helper methods.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15353 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix bug 2910:
Jürgen Spitzmüller [Mon, 16 Oct 2006 16:21:52 +0000 (16:21 +0000)]
fix bug 2910:

* src/frontends/qt3/QDocumentDialog.C (updateNumbering): don't include headings
that have no counter in their label.
* src/frontends/qt3/ui/NumberingModuleBase.ui: show scrollbar when appropriate.

* src/frontends/qt4/QDocumentDialog.C (updateNumbering): don't include headings
that have no counter in their label.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15352 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* lib/lyx2lyx/lyx_1_5.py: correct indendation.
Jürgen Spitzmüller [Mon, 16 Oct 2006 11:41:57 +0000 (11:41 +0000)]
* lib/lyx2lyx/lyx_1_5.py: correct indendation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15349 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agopartial compile fix
Georg Baum [Mon, 16 Oct 2006 09:53:30 +0000 (09:53 +0000)]
partial compile fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15348 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAdjust the FIXME texts and Delete commented out setXY() call following Andre comments...
Abdelrazak Younes [Mon, 16 Oct 2006 09:08:05 +0000 (09:08 +0000)]
Adjust the FIXME texts and Delete commented out setXY() call following Andre comments about it:

The coordcahce is for up/down navigation and vconverting mouseclicks to text positions. It is not for pure display/export which
is what drawT is about. It was a simple oversight not to remove it after some copying from the 'real' draw() method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15347 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix Toc dialog crash when TOC is empty.
Abdelrazak Younes [Mon, 16 Oct 2006 08:51:55 +0000 (08:51 +0000)]
Fix Toc dialog crash when TOC is empty.

* QToc::update(): return early if no TOC type.

* QTocDialog::updateGui(): return early of the Type model is empty and disable the outline buttons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15346 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoRemember the char style label state and make it globally switchable.
Jürgen Spitzmüller [Mon, 16 Oct 2006 07:06:41 +0000 (07:06 +0000)]
Remember the char style label state and make it globally switchable.

* src/buffer:
file format incrementation to 251
* src/insets/insetcharstyle.[Ch]:
- make show_label a param and save its state
- let all-insets-toggle togle the label in charstyles
* development/FORMAT:
document file format change
* lib/lyx2lyx/LyX.py:
add new file format
* lib/lyx2lyx/lyx_1_5.py:
remove char style label param on reversion to 250.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15345 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: remove fast_start feature
Bo Peng [Mon, 16 Oct 2006 03:26:14 +0000 (03:26 +0000)]
Scons: remove fast_start feature

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15343 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: fix a config.h generation bug
Bo Peng [Mon, 16 Oct 2006 02:55:04 +0000 (02:55 +0000)]
Scons: fix a config.h generation bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15341 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoMacOSX compile fix: The class Point conflicted with a struct defined in MacTypes.h.
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

17 years agoThis commit saves the need to check for lyx::use_gui in a number of places.
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

17 years agoUpdate to latest from boost 1.34 cvs release branch
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

17 years agofix typos
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

17 years ago * src/factory.C
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

17 years agoAdd comments WRT to where the function implementations are.
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

17 years agorevert change from previous commit and remove the FontMetrics access completely in...
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

17 years agoFix crash on LateX export.
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

17 years agoFix command-line export
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

17 years agoadd some assertions.
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

17 years agoMacOSX comiplation fix.
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

17 years ago * lib/bind/aqua.bind:
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

17 years agoenable buffer-export without loading the GUI.
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

17 years agoensure that Application is properly destroyed after at the end of LyX::priv_exec()
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

17 years ago* GuiApplication: explicitly clear out socket_callbacks_ in the destructor.
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

17 years agoIn order to support multiple LyXView each BufferView needs its own CoordCache. This...
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

17 years agoAdd missing convert<> specialization for unsigned long.
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

17 years agoWorkArea::processKeySim(): ensure that LyXFunc holds the proper LyXView.
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

17 years agoNew layout for International Society for Photogrammetry and Remote Sensing
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

17 years agoSmall fix for the last version bump
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

17 years ago* Gui::newView(): cleanup unused arguments.
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

17 years ago* GuiApplication.C: align Windows with other platform. No more static trick!
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

17 years agoSupport for optional arguments for environments. No material format change.
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

17 years agofix formatting issue.
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

17 years agoReplace crash on startup with a memory leak.
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

17 years agoWork around a gcc bug on systems where wchar_t is not used as lyx::char_type
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

17 years agocompile fix
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

17 years agoensure that theLyXFunc is set to the proper LyXView.
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

17 years agopreliminar support for multiple LyXView.
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

17 years agoFix bug 2901: Add menu entry for numbered formulas
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

17 years agoThis commit is purely mechanical and get rid of lyx_gui.[Ch].
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

17 years agoConvert labels to unicode
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

17 years agoRemove unused declarations of writeFileAscii
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

17 years ago* LyX class (lyx_main.[Ch]):
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

17 years agoChange tracking:
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

17 years agoIntroduce wide streams. This fixes the remaining problems of plain text
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

17 years agoRemove unused stuff. To anybody who moves functions around:
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

17 years agoqt3 compiles again
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

17 years agoThis commit cleans up everything related to singleton. The other important change...
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

17 years agoremove the focusInEvent() and focusOutEvent() that had so many bad side effect...
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

17 years agoMacOSX compilation fixes.
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

17 years ago* frontends/Painter:
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

17 years agoThis commit is converting everything related to browsing to unicode (qt4 only).
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

17 years agocompilation fixes for qt3 after Abdel's latest changes
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

17 years agoFix bug 2744:
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

17 years agoeven more unicode work...
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

17 years agoincomplete qt3 and gtk support for Revision 15283
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

17 years agomore unicode Work: Menubar and Toolbar.
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

17 years agomore unicode work.
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

17 years agoPatch 1 Log:
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

17 years agomore unicode work.
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

17 years agorevert to revision 15266
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

17 years ago* ControlChanges:
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

17 years agoFix debug output (detected by a MSVC warning)
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

17 years agouse from_ascii on pure ascii.
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

17 years agoOops, I forgot to return a reference in operator+=. This patch fixes that.
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

17 years agouse new docstring += operator
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

17 years agoAdd operator += for ASCII C strings and single ASCII chars
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

17 years ago* insetCollapsable:
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

17 years agoFix linking issue with MacOSX.
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

17 years agoCompile fix. This was easy, since the code is alsmost identical to qt4,
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

17 years agoAvoid another name clash (probably #define check ...) on OS X with Qt 4.2.0
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

17 years agoremove double include
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

17 years agoremove unused variable
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

17 years agoRename namespace Alert to lyx::frontend::Alert.
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

17 years ago* qt_helpers:
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