]>
git.lyx.org Git - lyx.git/log
Abdelrazak Younes [Wed, 1 Nov 2006 22:57:32 +0000 (22:57 +0000)]
This commit initialise correctly the tab bar in a new window.
* GuiView::init(): switch to the first avalaible buffer if any.
* GuiWorkArea::focusInEvent(): update the LyXView tab bar there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15685
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 21:17:56 +0000 (21:17 +0000)]
* text.C: fix another change tracking FIXME
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15680
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 21:13:25 +0000 (21:13 +0000)]
* po/de.po: fix the most annoying messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15679
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 18:53:06 +0000 (18:53 +0000)]
* text.C: remove FIXME for change tracking; the
code is fine as it is
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15678
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Wed, 1 Nov 2006 17:51:56 +0000 (17:51 +0000)]
disable scrollbar when it is not needed, especially for the empty start up window
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15677
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 17:51:41 +0000 (17:51 +0000)]
* src/paragraph.h:
* src/paragraph_pimpl.C:
* src/paragraph_pimpl.h:
* src/paragraph.C: get rid of unused method setContentsFromPar()
and remove another change tracking FIXME at the same time
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15676
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 17:06:17 +0000 (17:06 +0000)]
fix compile error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15675
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Wed, 1 Nov 2006 16:11:28 +0000 (16:11 +0000)]
add MinSizeRel as project which only uses STL and Boost pchs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15674
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Wed, 1 Nov 2006 15:55:17 +0000 (15:55 +0000)]
New bookmarks implementation:
* src/lyxfunc.C: handle LFUN_BOOKMARK_GOTO and LFUN_BOOKMARK_CLEAR
* src/session.h/C: store bookmarks here.
* src/lfuns.h, src/LyXAction.C: add LFUN_BOOKMARK_CLEAR
* src/BufferView.h/C: remove saved_positions, move LFUN_BOOKMARK_GOTO to lyxfunc.C
* src/MenuBackend.h/C: add Bookmarks menu type
* lib/ui/stdmenus.ui: change bookmarks menu items
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15673
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 15:34:51 +0000 (15:34 +0000)]
* po/.po: remerge again (last time for today)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15672
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 15:27:09 +0000 (15:27 +0000)]
* po/ru.po:
* po/sk.po:
* po/sl.po:
* po/tr.po: remerge with better 1.4 translations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15671
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 15:22:10 +0000 (15:22 +0000)]
* po/nl.po:
* po/nn.po:
* po/pl.po:
* po/ro.po: remerge with better 1.4 translations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15670
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 15:09:32 +0000 (15:09 +0000)]
forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15668
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 14:55:38 +0000 (14:55 +0000)]
Fix more invalid documents: s/\\color default/\\color inherit/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15666
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Wed, 1 Nov 2006 14:40:02 +0000 (14:40 +0000)]
add link to Qt bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15665
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 14:36:07 +0000 (14:36 +0000)]
* po/fi.po:
* po/fr.po:
* po/hu.po:
* po/it.po: remerge with the better 1.4 translations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15664
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Wed, 1 Nov 2006 14:32:17 +0000 (14:32 +0000)]
enable precompile headers only for the Debug and Release build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15663
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 14:28:40 +0000 (14:28 +0000)]
* po/da.po:
* po/de.po:
* po/es.po:
* po/eu.po: remerge with 1.4.X translations (which covered more messages)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15662
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 1 Nov 2006 13:14:21 +0000 (13:14 +0000)]
Fix crash when reconfigure is called without Buffer nor BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15661
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Wed, 1 Nov 2006 13:05:37 +0000 (13:05 +0000)]
* po/*.po: remerge files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15660
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 10:20:40 +0000 (10:20 +0000)]
Describe beamer in LaTeX class list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15657
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 10:06:31 +0000 (10:06 +0000)]
define missing color
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15656
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 09:38:54 +0000 (09:38 +0000)]
Fix generation of invalid LyX files
* src/lyxfont.C
(LyXFont::lyxWriteChanges): Don't change color "inherit" to
"default", since that cannot be read in.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15654
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 09:22:35 +0000 (09:22 +0000)]
Fix invalid colors (generated by LyX 1.4.3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15653
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 1 Nov 2006 08:41:31 +0000 (08:41 +0000)]
Convert to new format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15652
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Tue, 31 Oct 2006 20:58:12 +0000 (20:58 +0000)]
* src/tabular.C: remove change tracking FIXMEs; the code looks OK
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15648
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 31 Oct 2006 20:56:42 +0000 (20:56 +0000)]
Add beamer layout file and examople, fresh from the beamer CVS.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15647
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Tue, 31 Oct 2006 20:26:25 +0000 (20:26 +0000)]
* messages.C: use lyxerr[Debug::DEBUG] rather than lyxerr
for debug message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15646
a592a061 -630c-0410-9148-
cb99ea01b6c8
Enrico Forestieri [Tue, 31 Oct 2006 20:16:47 +0000 (20:16 +0000)]
Output a space if pendingSpace() is true and it is actually needed
* src/mathed/MathStream.C
(isAlpha): new, test whether a lyx::char_type is an ascii letter.
(operator<<): output a space if pendingSpace() is true and what follows
begins with an ascii letter. Also update the number of lines written.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15645
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Tue, 31 Oct 2006 20:07:26 +0000 (20:07 +0000)]
* rowpainter.C: when checking whether the change
bar has to be painted, also consider the imaginary
end-of-par character
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15644
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 31 Oct 2006 19:10:30 +0000 (19:10 +0000)]
Support all xymatrix arguments
* src/LaTeXFeatures.C
(LaTeXFeatures::getPackages): Add package xy
* src/mathed/InsetMathXYMatrix.[Ch]
(spacing_): New
(spacing_code_): New
(validate): New, require xy package
* src/mathed/InsetMathXYMatrix.C
(InsetMathXYMatrix::write): write spacing_ and spacing_code_
(InsetMathXYMatrix::infoize): output spacing_ and spacing_code_
* src/mathed/MathFactory.C
(createInsetMath): handle special arguments of xymatrix
* src/mathed/MathParser.C
(Parser::parse1): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15643
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 31 Oct 2006 18:54:30 +0000 (18:54 +0000)]
* src/support/docstream.C
(iconv_codecvt_facet::do_max_length): Update to current UTF8
specification and return 4 for UTF8.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15642
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 31 Oct 2006 14:57:25 +0000 (14:57 +0000)]
add missing header, forgotten because of the Qt precompiled headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15641
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 31 Oct 2006 14:46:38 +0000 (14:46 +0000)]
add missing header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15640
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 31 Oct 2006 14:39:16 +0000 (14:39 +0000)]
enable movable toolbars
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15639
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 31 Oct 2006 14:23:15 +0000 (14:23 +0000)]
enable at least a context-sensitive CT toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15638
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 31 Oct 2006 14:12:46 +0000 (14:12 +0000)]
Add tab support
frontends/LyXView.h
- add tab update function
frontends/qt4/GuiView.h
- add tab update function
- add function for setting up the tabs
- add slot for the tab clicks
- add pimpl
frontends/qt4/GuiImplementation.C
- don't set the buffer as central widget
but initilize the tabs
frontends/qt4/GuiView.C
- use QTabBar for switching
- scan the bufferlist on updates
frontends/LyXView.C
- also update the tabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15637
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Tue, 31 Oct 2006 13:59:22 +0000 (13:59 +0000)]
* frontends/Toolbars.C:
revert first patch http://www.lyx.org/trac/changeset/15597
* frontends/qt4/GuiView.C:
don't 'break' the toolbar because it doesn't work if
the toolbar will be hidden
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15636
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Mon, 30 Oct 2006 21:45:37 +0000 (21:45 +0000)]
remove references to Qt3/Gtk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15630
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 20:10:35 +0000 (20:10 +0000)]
* LyXText::singleWidth(): remove unneeded Buffer argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15627
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 30 Oct 2006 18:56:22 +0000 (18:56 +0000)]
Work around a possible gcc bug: Since Abde'ls recent changes gcc does not
like virtual methods in the base class anymore even if they are implemented.
* src/frontends/Painter.h
(rectText): remove the virtual qualifier
(buttonText): ditto
(underline): ditto
(buttonFrame): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15625
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 30 Oct 2006 18:32:55 +0000 (18:32 +0000)]
Remove unused variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15624
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 14:39:05 +0000 (14:39 +0000)]
small cosmetic cleanups:
* delete some comments
* use lyxerr instead of cout in PanelStack
* move PanelStack into lyx::frontend namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15623
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 14:15:05 +0000 (14:15 +0000)]
small cleanup while looking for a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15622
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Mon, 30 Oct 2006 14:05:06 +0000 (14:05 +0000)]
* QPrefScreenFontsUi.ui: assing label to the correct (and existing) buddy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15621
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 13:49:41 +0000 (13:49 +0000)]
small cleanup while looking for a bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15620
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 13:16:18 +0000 (13:16 +0000)]
* QLPainter:
- ctor and dtor moved to public:
- QLPainter(): takes a QPaintdevice instead of a QWidget.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15619
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 12:45:33 +0000 (12:45 +0000)]
Move BufferView cached pointer out of LyXText:
* LyXText
- bv(), bv_owner, : deleted.
- These methods now need a (Buffer const &) argument: getFont(), applyOuterFont(), getLayoutFont(), getLabelFont(), setCharFont(), setLayout(), singleWidth(), leftMargin(), rightMargin(), computeRowMetrics(), isMainText(), spacing(), isRTL(), cursorX(), rowBreakPoint(), setRowWidth(), labelFill(), labelEnd().
- These methods now need a (BufferView const &) argument and are propably candidates for future removal when 1.6 is opened for development: redoParagraph(), x2pos(), getRowNearY(), getColumnNearX(), checkInsetHit(), setHeightOfRow().
- recUndo(): now need a LCursor argument.
* CoordCache::get(LyXText const *, pit_type):
- now const.
- use const_iterator instead of iterator.
* FontIterator:
- add (Buffer const &) argument to ctor
- buffer_: new const reference to applicable BufferView.
* InsetBase
- xo(), yo(), covers() and neverIndent() are now const.
* InsetText::setViewCache(): deleted
All other changes are due to the LyXText and InsetBase API changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15618
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 11:55:13 +0000 (11:55 +0000)]
* Painter::isDrawingEnabled():
- make the method const
- delete the const on return value because they are not really mandatory for POD (Plain Old Data)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15617
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 11:04:37 +0000 (11:04 +0000)]
Forgot that also!
* QLPainter::~QLPainter: add virtual
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15616
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 10:47:59 +0000 (10:47 +0000)]
Forgot that!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15615
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 10:20:45 +0000 (10:20 +0000)]
revert changes from last commit due to a bad tree state.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15614
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 10:09:59 +0000 (10:09 +0000)]
* Painter.h:
* Painter: new ctor that sets drawing_enabled_ to true.
* setDrawingEnabled(), isDrawingEnabled(): new methods.
* QLPainter.C: only draw if drawing is enabled.
* nullpainter.h: deleted.
* rawpainter.C::paintPar(): only draw if we are inside the Paragraph.
* InsetTabular::draw(): use new Painter method instead of a NullPainter.
* InsetMathNest::drawSelection(): ditto.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15613
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 09:36:33 +0000 (09:36 +0000)]
remove the constness of the two code strings because this does not pass boost_concept_check with gcc-3.3.4-11:
g++ -/usr/include/g++/bits/boost_concept_check.h: In member function `
lyx::IconvProcessor& lyx::IconvProcessor::operator=(const
lyx::IconvProcessor&)':
/usr/include/g++/bits/boost_concept_check.h:203: instantiated from `void __gnu_cxx::_SGIAssignableConcept<_Tp>::__constraints() [with _Tp = lyx::IconvProcessor]'
/usr/include/g++/bits/stl_map.h:94: instantiated from `std::map<std::string, lyx::IconvProcessor, std::less<std::string>, std::allocator<std::pair<const std::string, lyx::IconvProcessor> > >'
unicode.C:281: instantiated from here
/usr/include/g++/bits/boost_concept_check.h:203: error: non-static const member
`const std::string lyx::IconvProcessor::tocode_', can't use default
assignment operator
/usr/include/g++/bits/boost_concept_check.h:203: error: non-static const member
`const std::string lyx::IconvProcessor::fromcode_', can't use default
assignment operator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15612
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Mon, 30 Oct 2006 08:13:02 +0000 (08:13 +0000)]
* guiapi.[Ch]: deleted.
Angus L. explanation: Lars introduced it years ago when he got exited by the idea
of dll-importing the frontend library, but the idea never came to anything
concrete. The file can always be resurrected later on; it's meant to be a C-
language wrapper to our C++ frontend library calls.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15611
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 29 Oct 2006 22:50:24 +0000 (22:50 +0000)]
* src/frontends/Toolbars.h:
* src/frontends/Toolbars.C: rename change_tracking to review
* lib/ui/default.ui: remove duplicate "review" toolbar
* src/frontends/LyXView.C: implement context-sensitivity for
the review toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15610
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 29 Oct 2006 21:59:59 +0000 (21:59 +0000)]
* unicode.[Ch]: new IconvProcessor class that enable to split iconv_convert() initialization and conversion parts.
* docstring.C: utf8_to_ucs4() makes use of IconvProcessor instead of iconv_convert.
The IconvProcessor interface will permit to switch to another processor than iconv.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15609
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 29 Oct 2006 21:48:23 +0000 (21:48 +0000)]
change tracking:
* changes.[Ch]: introduce isSimilarTo(...);
restore original operator==;
When merging two adjacent changes, the changetime is not considered,
only the equality of the change type and author is checked (in method
isSimilarTo(...)). If two changes are in fact merged (in method merge()),
the later change time is preserved.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15608
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Sun, 29 Oct 2006 20:01:00 +0000 (20:01 +0000)]
session: rename some functions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15607
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Sun, 29 Oct 2006 16:43:18 +0000 (16:43 +0000)]
add comment about ugly construct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15606
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sun, 29 Oct 2006 16:39:51 +0000 (16:39 +0000)]
* rowpainter.C: remove unused variable 'inside',
a leftover from the axed nullpainter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15605
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 29 Oct 2006 16:16:00 +0000 (16:16 +0000)]
Fix more member variable initialization order warnings from gcc.
Does nobody care about this???
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15604
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 29 Oct 2006 16:08:07 +0000 (16:08 +0000)]
Add comment explaining the encoding change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15603
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Sun, 29 Oct 2006 11:41:15 +0000 (11:41 +0000)]
* layout2layout.py
(convert): remove spurious tabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15599
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Sun, 29 Oct 2006 11:13:46 +0000 (11:13 +0000)]
Show Change Tracking toolbar, prepare hiding/positioning:
- src/frontends/Toolbars.h: control displaying of CT toolbar with a parameter
- src/frontends/Toolbars.C: control displaying of CT toolbar with a parameter
- src/frontends/LyXView.C : show CT toolbar
- src/ToolbarBackend.C : add CT toolbar to default.ui as REVIEW
- lib/ui/default.ui : add CT toolbar to default.ui
- src/ToolbarBackend.h : add CT toolbar type REVIEW
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15598
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Sun, 29 Oct 2006 10:42:21 +0000 (10:42 +0000)]
fix bug: table toolbar icons in menubar, hiding will be handled by the next patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15597
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Sat, 28 Oct 2006 17:14:51 +0000 (17:14 +0000)]
remove warning, use shorter code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15595
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 28 Oct 2006 16:01:12 +0000 (16:01 +0000)]
* qt4/GuiFontMetrics.C: remove qt3 compatibility code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15594
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 28 Oct 2006 15:28:18 +0000 (15:28 +0000)]
Compilation fix for Mac and Linux:
* add QWidget header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15593
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 28 Oct 2006 15:16:30 +0000 (15:16 +0000)]
* LyXLex::Pimpl::buff is now a string.
* unicode.[Ch]:
- new non template iconv_convert()
- iconv_convert() template use above function.
* docstring.C:
- utf8_to_ucs4(): new function, use the new iconv_convert() function above.
- from_utf8(): use utf8_to_ucs4() function above.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15592
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Sat, 28 Oct 2006 15:14:28 +0000 (15:14 +0000)]
src/session.h: add virtual destructor to stop compiler complaints.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15591
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 28 Oct 2006 09:59:43 +0000 (09:59 +0000)]
simplify paintText() interface.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15590
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 28 Oct 2006 09:36:22 +0000 (09:36 +0000)]
remove paperHeight() and paperWidth() in Painter and inherited classes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15589
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 28 Oct 2006 09:19:37 +0000 (09:19 +0000)]
delete unused code and comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15588
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 27 Oct 2006 23:26:52 +0000 (23:26 +0000)]
stop/start the blinking cursor when the WorkArea get a focusInEvent or focusOutEvent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15586
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 27 Oct 2006 22:46:36 +0000 (22:46 +0000)]
replace the map based width cache with an array based one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15585
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 27 Oct 2006 21:27:03 +0000 (21:27 +0000)]
* GuiFontMetrics: new metrics(QString) method
* QLPainter::paintText(): use GuiFontMetrics::metrics(QString) to avoid an ucs4 to QString conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15584
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Fri, 27 Oct 2006 16:33:27 +0000 (16:33 +0000)]
include <cmath> in src/changes.C for std::abs(double)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15582
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Fri, 27 Oct 2006 14:18:03 +0000 (14:18 +0000)]
class session reorganization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15581
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 27 Oct 2006 13:36:23 +0000 (13:36 +0000)]
MacOSX optimisation:
* QLPainter::paintText(): use the font width cache instead of the painter metrics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15580
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Fri, 27 Oct 2006 13:10:06 +0000 (13:10 +0000)]
don't trigger the copy ctor because it's private on msvc
CCMAIL:lyx-devel@lists.lyx.org
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15579
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Fri, 27 Oct 2006 13:04:21 +0000 (13:04 +0000)]
no abs for int64 values with msvc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15578
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Fri, 27 Oct 2006 11:47:59 +0000 (11:47 +0000)]
when we use QDesktopWidget we should include it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15577
a592a061 -630c-0410-9148-
cb99ea01b6c8
Edwin Leuven [Fri, 27 Oct 2006 09:54:56 +0000 (09:54 +0000)]
have row on 1 line when exporting to latex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15576
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 27 Oct 2006 09:41:32 +0000 (09:41 +0000)]
MSVC compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15575
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Fri, 27 Oct 2006 08:40:08 +0000 (08:40 +0000)]
GuiView.C: recover from silly window positions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15574
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Thu, 26 Oct 2006 21:06:55 +0000 (21:06 +0000)]
change tracking:
* src/paragraph_pimpl.C: in method erase(),
set the character to DELETED if
a) it was previously unchanged or
b) it was inserted by a co-author
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15573
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Thu, 26 Oct 2006 20:44:00 +0000 (20:44 +0000)]
change tracking:
* src/paragraph_pimpl.C: only reject an inset's content
if the inset itself is UNCHANGED
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15572
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Thu, 26 Oct 2006 20:19:45 +0000 (20:19 +0000)]
change tracking:
* src/paragraph_pimpl.C: do not propagate changes
to nested insets of the change type is DELETED
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15571
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Thu, 26 Oct 2006 19:00:28 +0000 (19:00 +0000)]
change tracking:
Better change time handling. Quote from Changes.C:
Class Change has a changetime field that specifies the exact time at which
a specific change was made. The change time is used as a guidance for the
user while editing his document. Presently, it is not considered for LaTeX
export. To avoid that every keystroke results in a separate change, a
tolerance interval of 5 minutes is used. That means if there are two adjacent
changes that only differ in their change time with abs(ct1 - ct2) < 300 sec,
they will be merged (and the later change time is preserved).
Technically, the check for equality (or similarity) is made in
operator==(...). The merging of similar changes happens in method merge().
Resolve FIXMEs for LyX & LaTeX output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15569
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Thu, 26 Oct 2006 18:38:46 +0000 (18:38 +0000)]
disable checked iterators for msvc release builds to get maximum speed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15568
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Thu, 26 Oct 2006 17:11:34 +0000 (17:11 +0000)]
switch ENABLE_ASSERTIONS macro with _DEBUG macro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15567
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 26 Oct 2006 15:38:53 +0000 (15:38 +0000)]
Compile fix for older gcc's.
I accidentally used data() which is not yet in the standard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15565
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 26 Oct 2006 15:01:45 +0000 (15:01 +0000)]
Restore inputenc support
* src/encoding.h
(encoding_table): remove, this is no longer needed with unicode
(iconvName_): new member: name of the encoding in iconv syntax
* src/exporter.C
(Exporter::Export): Use return value of Buffer::makeLaTeXFile
* src/buffer.[Ch]
(Buffer::makeLaTeXFile): return whether the file has been created
successfully
* src/buffer.C
(Buffer::makeLaTeXFile): Use a docstream that converts to the correct
encoding
Display an error dialog is something went wrong
* src/bufferparams.C
(BufferParams::writeLaTeX): Undo the utf8 inputenc hack
* src/frontends/qt4/QDocumentDialog.C: Add some FIXMEs
* src/support/unicode.[Ch]
(eightbit_to_ucs4): New conversion function
(ucs4_to_eightbit): New conversion function
* src/support/docstream.[Ch]
(utf8_codecvt_facet_exception): Move to header and rename to
iconv_codecvt_facet_exception
(odocfstream): Take the encoding as argument
* src/support/docstream.C
(utf8_codecvt_facet): Generalize to other encodings than utf8 and
rename to iconv_codecvt_facet
* src/encoding.C: Remove obsolete tables
* src/output_latex.C
(TeXOnePar): Convert the paragraph to different encoding if needed
* lib/encodings: Remove obsolete tables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15564
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 26 Oct 2006 14:43:58 +0000 (14:43 +0000)]
Make the code a bit more python-like
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15563
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 26 Oct 2006 14:28:44 +0000 (14:28 +0000)]
add Ran Rutenberg as new contributor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15560
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 26 Oct 2006 13:47:16 +0000 (13:47 +0000)]
update Hebrew translation of Intro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15559
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 26 Oct 2006 13:36:04 +0000 (13:36 +0000)]
paintText(): replace the test on BufferView::buffer() with an assertion as this should not happen anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15557
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 26 Oct 2006 13:29:10 +0000 (13:29 +0000)]
This commit fixes 3 crashes when reverting a document:
1) crash in GuiWorkArea::paintEvent(), this one is solved by by encapsulating the file loading in LyXView by busy(true)/busy(false) and by disabling/enabling the work area update in GuiView::busy().
2) crash in the cursor blinking because the cursor is timed out at the moment you click on "Revert". So the blinking cursor is now disabled/enabled in GuiView::busy().
3) crash in BufferView::setBuffer() because the current buffer was already closed folling the "revert" command.
* BufferView::loadLyXFile(): set buffer_ to 0 in case of a reload (when document is reverted)
* LyXView:
- busy() is not const anymore (work_area_ is modified in GuiView)
- loadLyXFile(): encapsulate the file loading with busy(true)/busy(false)
- setBuffer(): encapsulate the buffer-switching with busy(true)/busy(false)
* GuiView::busy()
- disable/enable workarea updates.
- disable/enable blinking cursor.
* WorkArea: new startBlinkingCursor() and stopBlinkingCursor() methods.
* rowpainter.C:
- paintText(): make sure there is a Buffer from which to paint.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15556
a592a061 -630c-0410-9148-
cb99ea01b6c8
Peter Kümmel [Thu, 26 Oct 2006 11:01:34 +0000 (11:01 +0000)]
src/frontends/qt4/GuiWorkArea.C:
use position returned by BufferView
src/bufferview_funcs.C:
adjust cursor x-position by hand
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15555
a592a061 -630c-0410-9148-
cb99ea01b6c8