]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agoMSVC compilation fix.
Abdelrazak Younes [Sat, 21 Oct 2006 07:26:07 +0000 (07:26 +0000)]
MSVC compilation fix.

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

17 years agomove the only remaining function in lyxrow_func to paragraph
André Pönitz [Sat, 21 Oct 2006 07:24:11 +0000 (07:24 +0000)]
move the only remaining function in lyxrow_func to paragraph

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

17 years agosome scripts I fouind usefule when working on LyX
André Pönitz [Sat, 21 Oct 2006 07:05:52 +0000 (07:05 +0000)]
some scripts I fouind usefule when working on LyX

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

17 years agomove everything into namespace lyx
André Pönitz [Sat, 21 Oct 2006 00:16:43 +0000 (00:16 +0000)]
move everything into namespace lyx

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

17 years agoMore unicode, this time some focus on layouts and textclasses
Lars Gullik Bjønnes [Fri, 20 Oct 2006 22:17:16 +0000 (22:17 +0000)]
More unicode, this time some focus on layouts and textclasses

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

17 years agoStuff!
Lars Gullik Bjønnes [Fri, 20 Oct 2006 21:42:29 +0000 (21:42 +0000)]
Stuff!

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

17 years ago- Dump parpos cache if you use -dbg workarea on command line
Asger Ottar Alstrup [Fri, 20 Oct 2006 20:57:21 +0000 (20:57 +0000)]
- Dump parpos cache if you use -dbg workarea on command line

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

17 years agoMove counters toward unicode.
Lars Gullik Bjønnes [Fri, 20 Oct 2006 20:30:00 +0000 (20:30 +0000)]
Move counters toward unicode.

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

17 years ago- Comments
Asger Ottar Alstrup [Fri, 20 Oct 2006 19:40:02 +0000 (19:40 +0000)]
- Comments

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

17 years agoChange (and fix) the bullets in itemize to be more unicode friendly.
Lars Gullik Bjønnes [Fri, 20 Oct 2006 19:26:23 +0000 (19:26 +0000)]
Change (and fix) the bullets in itemize to be more unicode friendly.

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

17 years agoThis commit re-enable the table adjustment with screen whenever the table is bigger...
Abdelrazak Younes [Fri, 20 Oct 2006 16:33:41 +0000 (16:33 +0000)]
This commit re-enable the table adjustment with screen whenever the table is bigger than the screen. Here is some explanation form Georg about the setPos() method:

I believe that it is for horizontal
"scrolling": If you have a table that is wider than the screen and you go
to a cell that is at the right edge then, if you are lucky, the table is
shifted to the left so that you can edit the cell and even go further
right. This does however not work reliably.
If I am right then the variable name scx_ would make some sense: sc for
scrolling. The ChangeLog comments also seem to point in this direction. And
most of them were done by Jürgen Vigna who is AFAIK in Denmark.

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

17 years agoUse the new InsetCommandParams interface (inset part), from Ugras and me
Georg Baum [Fri, 20 Oct 2006 16:12:49 +0000 (16:12 +0000)]
Use the new InsetCommandParams interface (inset part), from Ugras and me

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

17 years agoFix multiple tabular crashes. This needs some more work by someone who knows what...
Abdelrazak Younes [Fri, 20 Oct 2006 16:11:30 +0000 (16:11 +0000)]
Fix multiple tabular crashes. This needs some more work by someone who knows what insettabular::resetPos() is for. At least navigating and editing tables seems "normal".

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 15:27:11 +0000 (15:27 +0000)]
change tracking:

* src/changes.h:
* src/changes.C: remove constructor, destructor,
copy constructor, reset(), and field empty_type_
* src/paragraph_pimpl.C: comment out unwanted code

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 14:31:54 +0000 (14:31 +0000)]
change tracking:

* src/changes.h: remove Changes::Range::contained(),
remove Changes::Range::containsOrPrecedes(),
remove Change::set(...) methods that expect a change type parameter
remove Change::check(...)
simplify Change::intersects(...)
* src/changes.C:
* src/paragraph_pimpl.C: adjust properly

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 14:06:18 +0000 (14:06 +0000)]
change tracking:

* insets/insettext.C: comment on prior warning
(and express my helplessness)

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

17 years agoUse the new InsetCommandParams interface (frontend part), from Ugras and me
Georg Baum [Fri, 20 Oct 2006 13:53:43 +0000 (13:53 +0000)]
Use the new InsetCommandParams interface (frontend part), from Ugras and me

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 13:32:27 +0000 (13:32 +0000)]
change tracking:

ui/stdtoolbars.ui: revert removal of "insert-note" in "Extra" toolbar

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 13:29:26 +0000 (13:29 +0000)]
change tracking:

src/text2.C: invoke insertInset with correct
Change parameter; only check for change _type_
(DELETED) for DEPM purposes

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 13:16:15 +0000 (13:16 +0000)]
change tracking:

src/lyxfind.C: some source code reformatting;
pass trackChange parameter to Paragraph::erase(..)

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 13:00:49 +0000 (13:00 +0000)]
change tracking:

        * src/rowpainter.C: check for change type equality, not
        for equality of the compete Change objects

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

17 years agocmake: don't forget command line options
Peter Kümmel [Fri, 20 Oct 2006 12:46:30 +0000 (12:46 +0000)]
cmake: don't forget command line options

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 12:44:37 +0000 (12:44 +0000)]
change tracking:

        * src/bufferparams.C: output authors no matter whether
        we are in CT mode or not

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

17 years agorevert change in revision 15375. It had bad side effect on buffer-end and buffer...
Abdelrazak Younes [Fri, 20 Oct 2006 12:38:26 +0000 (12:38 +0000)]
revert change in revision 15375. It had bad side effect on buffer-end and buffer-begin.

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 12:26:27 +0000 (12:26 +0000)]
change tracking:

        * lib/ui/default.ui:
        * lib/ui/stdtoolbars.ui: add review toolbar;
        move "Insert note" from "Extra" to "Review" toolbar

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 11:44:58 +0000 (11:44 +0000)]
change tracking:

        * src/paragraph.h: insertXXX(...) requires either
        boolean parameter 'trackChanges' or a Change
        * src/insets/insettext.h: add trackChanges parameter
        to setText(...)
        * src/insets/*.C:
        * src/*.C: adjust properly & remove a couple of FIXMEs

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

17 years agofix wrong line endings of generated Qt4 ui files on Windows
Peter Kümmel [Fri, 20 Oct 2006 11:28:45 +0000 (11:28 +0000)]
fix wrong line endings of generated Qt4 ui files on Windows

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

17 years agoFix some glitches with fixed size delimiters
Enrico Forestieri [Fri, 20 Oct 2006 10:43:53 +0000 (10:43 +0000)]
Fix some glitches with fixed size delimiters

* src/mathed/MathParser.C
(parse1): behave correctly when a wrong delimiter is specified.

* src/mathed/InsetMathBig.C
(write): don't write a space before delimiter.

* src/frontends/qt4/QDelimiterDialog.C
(QDelimiterDialog): make translatable the string "Variable size".

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

17 years agocmake files:
Peter Kümmel [Fri, 20 Oct 2006 10:38:33 +0000 (10:38 +0000)]
cmake files:
- mathed: remove InsetMathMox.C fro the build process
- config: enable assertions by default

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

17 years agoGet rid of warning.
Lars Gullik Bjønnes [Fri, 20 Oct 2006 10:35:07 +0000 (10:35 +0000)]
Get rid of warning.

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

17 years ago- fix formatting (tab vs space)
Abdelrazak Younes [Fri, 20 Oct 2006 09:56:28 +0000 (09:56 +0000)]
- fix formatting (tab vs space)

- Move lyx_server_ and lyx_socket destruction out of prepareExit() because those are only available when lyx::use_gui is true.

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

17 years agoAbdels fix for pure virtual method called
Lars Gullik Bjønnes [Fri, 20 Oct 2006 09:41:11 +0000 (09:41 +0000)]
Abdels fix for pure virtual method called

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

17 years agochange tracking:
Michael Schmitt [Fri, 20 Oct 2006 09:29:19 +0000 (09:29 +0000)]
change tracking:

        * src/insets/insetbase.h: replace markErased(...) by
        setChange(...)
        * src/insets/insettext.h: replace markErased(...) and
        markNew(...) by setChange(...)
        * src/insets/insettabular.h: replace markErased(...) by
        setChange(...)
        * src/insets/insettabular.C:
        * src/insets/insetbase.C:
        * src/insets/insettext.C:
        * src/paragraph_pimpl.C:
        * src/tabular.C: adjust properly

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

17 years ago- Fix crash on closing a document where for instance the PDF is still open (temp...
Asger Ottar Alstrup [Fri, 20 Oct 2006 08:42:16 +0000 (08:42 +0000)]
- Fix crash on closing a document where for instance the PDF is still open (temp directory can not be removed when another program has an open file there)

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

17 years ago- Fix a few unicode bugs
Asger Ottar Alstrup [Fri, 20 Oct 2006 08:06:14 +0000 (08:06 +0000)]
- Fix a few unicode bugs
- Fix LaTeX export of User guide (the utf8 conversion buffer was too small)

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

17 years agocmake: use src/support/package.C.in
Peter Kümmel [Thu, 19 Oct 2006 21:42:28 +0000 (21:42 +0000)]
cmake: use src/support/package.C.in

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

17 years ago- use version.C.in file instead of a simple copy
Peter Kümmel [Thu, 19 Oct 2006 21:35:44 +0000 (21:35 +0000)]
- use version.C.in file instead of a simple copy
- generate lyx2lyx_version.py

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

17 years agoOutput docbook as utf8. Probably quite a bit more work needed, but then help form...
Lars Gullik Bjønnes [Thu, 19 Oct 2006 21:00:33 +0000 (21:00 +0000)]
Output docbook as utf8. Probably quite a bit more work needed, but then help form a docbook person is needed.

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

17 years ago- Fix export of single characters - use put rather than <<
Asger Ottar Alstrup [Thu, 19 Oct 2006 20:01:02 +0000 (20:01 +0000)]
- Fix export of single characters - use put rather than <<

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

17 years ago- UTF-8 works on Windows as well
Asger Ottar Alstrup [Thu, 19 Oct 2006 19:28:27 +0000 (19:28 +0000)]
- UTF-8 works on Windows as well
- We even spit out the right usepackage chant

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

17 years agoFix for 2550.
Martin Vermeer [Thu, 19 Oct 2006 19:26:43 +0000 (19:26 +0000)]
Fix for 2550.

* insettext.[Ch]
(InsetText::covers): added to allow the click-sensitive area to grow
with the Wide() condition.

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

17 years agomake it compile again (hopefully)
Georg Baum [Thu, 19 Oct 2006 19:16:33 +0000 (19:16 +0000)]
make it compile again (hopefully)

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

17 years agoAvoid an implicit character set conversion in cur.insert() in InsertChar
Georg Baum [Thu, 19 Oct 2006 18:56:16 +0000 (18:56 +0000)]
Avoid an implicit character set conversion in cur.insert() in InsertChar
by changing the argument type to lyx::char_type.

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

17 years agochange tracking:
Michael Schmitt [Thu, 19 Oct 2006 18:18:10 +0000 (18:18 +0000)]
change tracking:

src/paragraph_funcs.C: add FIXME (and check later)

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

17 years agochange tracking:
Michael Schmitt [Thu, 19 Oct 2006 17:46:50 +0000 (17:46 +0000)]
change tracking:

        * src/paragraph.h: remove eraseIntern(); pass trackChanges to
        erase(...) (2 methods)
        * src/paragraph_pimpl.h: rename eraseIntern() to erase();
        pass trackChanges to other erase(...) (2 methods)
        * src/insets/insettext.C:
        * src/*.C: adjust properly

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

17 years agoFix \hfill output which was broken by the InsetCommand changes.
Georg Baum [Thu, 19 Oct 2006 17:09:59 +0000 (17:09 +0000)]
Fix \hfill output which was broken by the InsetCommand changes.
getCommand does not include the {} anymore, because \hfill has no arguments.

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

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