]>
git.lyx.org Git - lyx.git/log
Abdelrazak Younes [Fri, 28 Apr 2006 13:02:05 +0000 (13:02 +0000)]
* text3.C:void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
For LFUN_PARAGRAPH_MOVE_DOWN and LFUN_PARAGRAPH_MOVE_UP call:
void updateLabels(Buffer const & buf,
ParIterator & from, ParIterator & to)
instead of:
void updateLabels(Buffer const & buf,
ParIterator & iter)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13775
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 28 Apr 2006 09:16:48 +0000 (09:16 +0000)]
* QToc.[Ch], QTocDialog.[Ch]: adaptation to ControlToc changes in r13772
* TocModel.[Ch]: small cleanup + eol-style set to native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13774
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Fri, 28 Apr 2006 07:45:37 +0000 (07:45 +0000)]
Brown paper bag for r13772
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13773
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Fri, 28 Apr 2006 07:28:10 +0000 (07:28 +0000)]
Change capitalization for outline (DOWN -> Down etc.)
* BufferView_pimpl.C
(BufferView::Pimpl::dispatch): change
* frontends/controllers/ControlToc.C
(ControlToc::outline): replace by outlineUp ... outlineOut
* toc.[Ch]
(outline): change
* frontends/qt3/QToc.C
(QToc::set_depth): change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13772
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Thu, 27 Apr 2006 18:19:14 +0000 (18:19 +0000)]
Add lyxrc.use_lastfilepos and load_session to the qt4 preference dialog.
* src/frontends/qt4/QPrefsDialog.C, connect checkboxes to lyxrc
* src/frontends/qt4/ui/QPrefUi.ui, add two checkboxes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13766
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Thu, 27 Apr 2006 18:14:36 +0000 (18:14 +0000)]
Remove USE_COMPRESSION and force the use of zlib, by Bo Peng (ben.bob@gmail.com)
* src/lyxlex_pimpl.[hC], src/buffer.C, src/tex2lyx/Makefile.am: remove USE_COMPRESSION
* configure.ac: check for zlib.h and libz.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13765
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 27 Apr 2006 16:44:43 +0000 (16:44 +0000)]
* src/support/package.C.in (get_build_dirs): Look at Makefile
instead of lyxrc.defaults. Simplify the check for
chkconfig.ltx.
* configure.ac: do not run lib/configure.py
* lib/doc/Makefile.am: LaTeXConfig.lyx is not generated anymore.
* lib/configure.py (removeExtraFiles): remove.
* lib/Makefile.am: no files are generated in there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13763
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 27 Apr 2006 12:57:30 +0000 (12:57 +0000)]
* src/support/package.C.in (relative_locale_dir): fix for Windows and OSX.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13761
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 27 Apr 2006 12:55:04 +0000 (12:55 +0000)]
* config/lyxinclude.m4 (LYX_USE_PACKAGING): do not set program_suffix for
windows packaging.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13758
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 27 Apr 2006 07:55:25 +0000 (07:55 +0000)]
* src/mathed/math_biginset.[Ch]
(infoize2): Implement to show name if the cursor is to the right
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13757
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 27 Apr 2006 07:27:01 +0000 (07:27 +0000)]
* lib/layouts/IEEEtran.layout: Add biographynophoto style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13755
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 27 Apr 2006 06:56:04 +0000 (06:56 +0000)]
Fix bug 2546:
* src/tex2lyx/text.C
(parse_arguments): Eat space in front of required arguments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13753
a592a061 -630c-0410-9148-
cb99ea01b6c8
Edwin Leuven [Wed, 26 Apr 2006 22:43:26 +0000 (22:43 +0000)]
Adding PARAGRAPH_MOVE_UP/DOWN + key bindings:
* src/LyXAction.C
* src/text3.C
* src/lfuns.h
* lib/bind/cua.bind
* lib/bind/sciword.bind
* lib/bind/xemacs.bind
* lib/bind/emacs.bind
* lib/bind/mac.bind
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13752
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Wed, 26 Apr 2006 17:43:03 +0000 (17:43 +0000)]
Outlining improvements/fixes
* LyXAction.C
(LyXAction::init): add LFUN_OUTLINE_(UP|DOWN|IN|OUT)
* BufferView_pimpl.C
(BufferView::Pimpl::getStatus):
(BufferView::Pimpl::dispatch): handling of new LFUNS
* frontends/controllers/ControlToc.C
(ControlToc::canOutline): modify dispatch logic
* lfuns.h
(kb_action): add LFUNs
* toc.[Ch]
(outline): changes
* TocBackend.h: modifify == operator for Item
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13751
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Wed, 26 Apr 2006 13:36:12 +0000 (13:36 +0000)]
* text.C (numberOfHfills): do not forget to count the last hfill
(bug 2509).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13748
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 26 Apr 2006 13:34:35 +0000 (13:34 +0000)]
Get rid of dos end-of-lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13747
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 26 Apr 2006 13:33:51 +0000 (13:33 +0000)]
Get rid of dos end-of-lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13746
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 26 Apr 2006 11:12:39 +0000 (11:12 +0000)]
* lib/configure.py: Don't use TeX in the the names of formats latex
and pdflatex, use LaTeX instead.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13744
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Tue, 25 Apr 2006 22:22:11 +0000 (22:22 +0000)]
Add lyxrc.use_lastfilepos and load_session to the preference dialog. Bo Peng (ben.bob@gmail.com)
* src/frontends/qt3/QPrefs.C, QPrefsDialog.C, ui/QPrefUIModule.ui: add two checkboxes
* src/lyxrc.C: turn off load_session by default (since we now can turn it on)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13741
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 25 Apr 2006 08:22:58 +0000 (08:22 +0000)]
* src/LaTeX.C
(LaTeX::scanLogFile): remove \0 characters inserted by MikTeX before
further processing
(LaTeX::deplog): likewise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13737
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Tue, 25 Apr 2006 04:48:06 +0000 (04:48 +0000)]
Remove unneeded bzip2 support Bo Peng (ben.bob@gmail.com)
* boost/libs/iostreams/src/bzip2.cpp remove since it requires bzip2.h
* boost/libs/iostreams/src/Makefile.am remove bzip2.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13735
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 24 Apr 2006 15:07:24 +0000 (15:07 +0000)]
undo compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13734
a592a061 -630c-0410-9148-
cb99ea01b6c8
John Spray [Mon, 24 Apr 2006 14:22:32 +0000 (14:22 +0000)]
Add the const-ized functions that GExternal needs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13733
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 24 Apr 2006 14:17:16 +0000 (14:17 +0000)]
make GExternal.C compile. GTK people, please fix this!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13732
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Mon, 24 Apr 2006 13:48:24 +0000 (13:48 +0000)]
* Rename src/frontends/qt2 to src/frontends/qt3,
update users of the dir accordingly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13731
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Mon, 24 Apr 2006 13:34:16 +0000 (13:34 +0000)]
update ignore, and make sure to dist the lyx2lyx_version.py.in template file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13728
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Mon, 24 Apr 2006 13:25:50 +0000 (13:25 +0000)]
change string "qt2" to "qt4"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13727
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 24 Apr 2006 12:28:52 +0000 (12:28 +0000)]
add support for naustrian; fix locale for austrian
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13726
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 24 Apr 2006 09:48:55 +0000 (09:48 +0000)]
German documentation update (again)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13721
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 24 Apr 2006 09:42:17 +0000 (09:42 +0000)]
German documentation update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13720
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Mon, 24 Apr 2006 09:32:21 +0000 (09:32 +0000)]
Hungarian documentation update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13718
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 23 Apr 2006 09:25:25 +0000 (09:25 +0000)]
simple two one-liner fixes to show all toc items.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13716
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 22 Apr 2006 21:56:46 +0000 (21:56 +0000)]
Rev. 13714 has a wrong fix, I just erased empty_toc_ and replaced that with an BOOST_ASSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13715
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 22 Apr 2006 21:46:32 +0000 (21:46 +0000)]
Fix compile with enable-concept-check.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13714
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 22 Apr 2006 18:48:28 +0000 (18:48 +0000)]
* TocBackend.[Ch]: new files defining class TocBackend. This class contains adapted code from former toc.C
* toc.[Ch]:
- rewritten to take advantage of new TocBackend class. The toc
cache is implemented as a static variable:
static map<Buffer const *, lyx::TocBackend> toc_backend_;
* buffer_funcs.C:
updateLabels(Buffer const & buf) now calls
"lyx::toc::updateToc(buf);"
* pariterator.h: added default constructor
ParConstIterator(): DocIterator() {}
* insetfloat.C: added pit parameter to TocItem construction
* insetwrap.C: added pit parameter to TocItem construction
* MenuBackend.C: use a const ref instead of a copy of TocList
* ControlToc.[Ch]: optimisation of the API by using const reference instead of copy.
* qt4/TocPanel.[Ch]:
- optimisation of the API by using const reference instead of
copy
- directly use of TocBackend::TocIterator instead of identification by paragraph contents.
* qt4/QToc.C:
- optimisation of the API by using const reference instead of
copy
- makes use of TocBackend::Item::uid()
* qt2/QToc.C:
- use TocItem::depth() and TocItem::str() instead of public member access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13713
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 22 Apr 2006 16:49:19 +0000 (16:49 +0000)]
* src/lyxrc.C: Fix typo in LyXRC::write
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13712
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 22 Apr 2006 11:58:02 +0000 (11:58 +0000)]
Fix bug 2285 (tex2lyx is not found by lib/configure when compiling with
--with-version-suffix):
* src/lyx_cb.C
(reconfigure): get the configure command from package()
* src/lyx_main.C
(showFileError): ditto
* src/support/package.[Ch]
(configure_command): new, return the configure command
* src/support/package.C.in
(with_version_suffix): new, return the version suffix argument
of the configure command
* src/support/Makefile.am
(package.C.in): substitute %PROGRAM_SUFFIX% in package.C.in
* config/lyxinclude.m4: substitute program_suffix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13710
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Fri, 21 Apr 2006 22:51:39 +0000 (22:51 +0000)]
Grey out outlining movement buttons for non-ToC
* qt2/QTocDialog.[Ch]: Add enableButtons
* qt2/QToc.[Ch]
(QToc::build_dialog):
(QToc::updateType):
(QToc::updateToc):
(QToc::updateToc):
(QToc::set_depth): Change update logic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13709
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 21 Apr 2006 15:15:55 +0000 (15:15 +0000)]
From Angus:
Enable lib/configure.py to find tex2lyx if the path to it contains spaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13708
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Fri, 21 Apr 2006 06:42:17 +0000 (06:42 +0000)]
Replace gzstream by boost::iostreams::gzip_(de)compressor: by Bo Peng (ben.bob@gmail.com)
* src/buffer.C, use filtering_ostream
* src/lyxlex_pimpl.h, .C, use filtering_istreambuf
* src/Makefile.am, src/support/Makefile.am, src/tex2lyx/Makefile.am, use BOOST_IOSTREAMS
* remove src/support/gzstream.h, .C
* add needed boost files boost/boost/iostreams/device/file_descriptor.hpp,
device/mapped_file.hpp, detail/system_failure.hpp,
detail/config/windows_posix.hpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13706
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Thu, 20 Apr 2006 20:44:05 +0000 (20:44 +0000)]
* Add the iostreams and range libs to our copy of boost
* Make sure that no source files in boost are executable
* Make sure that all boost files are marked with eol-style native
* configure.ac: setup for new iostreams boost binary lib
* config/common.am: add boost iostreams variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13705
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 20 Apr 2006 16:59:51 +0000 (16:59 +0000)]
From Enrico Forestieri:
* lib/scripts/TeXFiles.sh:
Account for Cygwin teTeX on Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13704
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Thu, 20 Apr 2006 14:51:23 +0000 (14:51 +0000)]
* src/lyxfunc.C (void LyXFunc::dispatch):
don't update the screen after saving (avoids scrolling back to
cursor)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13702
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 20 Apr 2006 09:55:45 +0000 (09:55 +0000)]
Make MathBigInset working
* src/cursor.C
(LCursor::plainInsert): combine the previous math atom with the new
one to a MathBigInset if possible
* src/mathed/math_biginset.[Ch]
(MathBigInset::name): implement
(MathBigInset::isBigInsetDelim): new, test whether a given token is
a valid MathBigInset delimiter
* src/mathed/math_biginset.C
(MathBigInset::size): handle Big, Bigg and Biggg
(MathBigInset::increase): ditto
(MathBigInset::draw): fix deco drawing
(MathBigInset::write): append space if necessary
* src/mathed/math_factory.C
(createMathInset): handle l->inset == "big"
* src/mathed/math_parser.C
(Token::asInput): return a token as input, stolen from tex2lyx
(void Parser::parse1): Create a MathBigInset when needed
* src/mathed/math_support.C:
(deco_table): add lbrace and rbrace
* src/mathed/math_nestinset.C
(MathNestInset::interpret): combine the previous math atom with the
new character to a MathBigInset if possible
* src/ParagraphParameters.C
(findToken): move from here
* src/support/lstrings.[Ch]
(findToken): to here
* lib/symbols: add MathBigInset symbols
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13700
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 20 Apr 2006 08:42:01 +0000 (08:42 +0000)]
Fix bug 2476:
* src/CutAndPaste.C
(resetOwnerAndChanges): rename to resetParagraph and reset the
language of ERT paragraphs, too
(copySelectionHelper): adapt to changes above
(cutSelection): ditto
(copySelection): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13699
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 20 Apr 2006 07:43:29 +0000 (07:43 +0000)]
* lyx_1_4.py
(convert_minipage): Proper handling of default height and
vertical position (bug report Garst Reese)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13697
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 20 Apr 2006 06:50:26 +0000 (06:50 +0000)]
* BufferView_pimpl.C
(BufferView::Pimpl::dispatch): prevent crash with section header
not in the main lyxtext
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13696
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 19 Apr 2006 14:48:22 +0000 (14:48 +0000)]
Two ways toc navigation:
* Toc.[Ch]: new function getCurrentTocItem()
* ControlToc.[Ch]: new function getCurrentTocItem()
* QToc.[Ch]: new function getCurrentIndex()
* QTocDialog.C
- QTocDialog::update() calls QToc::getCurrentIndex()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13695
a592a061 -630c-0410-9148-
cb99ea01b6c8
John Spray [Wed, 19 Apr 2006 09:13:54 +0000 (09:13 +0000)]
Commit Bernhard Reiter's implementation of GExternal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13694
a592a061 -630c-0410-9148-
cb99ea01b6c8
John Spray [Wed, 19 Apr 2006 09:11:25 +0000 (09:11 +0000)]
Changes to External controller for GTK implementation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13693
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 18 Apr 2006 09:57:47 +0000 (09:57 +0000)]
* ControlToc.[Ch]
- bool ControlToc::canOutline(): new method to test if outline is possible.
* TocModel: new class
* QToc is now the controller (inheriting ControlToc directly) and the model (using TocModel)
* QTocDialog is now only the view (inheriting Dialogs::View directly)
* Dialogs.C: updated toc controller and view correspondingly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13692
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Mon, 17 Apr 2006 16:44:37 +0000 (16:44 +0000)]
* src/frontends/qt2/QWorkArea.C: fix compilation on OS X
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13690
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 16 Apr 2006 14:19:25 +0000 (14:19 +0000)]
* src/buffer_funcs.[Ch]
- updateCounters renamed to updateLabels
- void updateLabels(Buffer const & buf,
ParIterator & it): new convenience function
- void updateLabels(Buffer const & buf,
ParIterator & from, ParIterator & to): new convenience function
- setCounter renamed to setLabel
- bool tryToUpdateCurrentLabel(Buffer const & buf,
ParIterator & it): new method
- needsUpdateCounters: deleted
* src/BufferView_pimpl.C
* src/CutAndPaste.C
* src/frontends/controllers/ControlDocument.C
* src/lyxfunc.C
* src/text.C
* src/text2.C
* src/text3.C
- fixed the calls to updateLabels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13689
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Sun, 16 Apr 2006 08:33:30 +0000 (08:33 +0000)]
* src/frontends/qt4/QTocDialog.C: Hide the pointless QHeader
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13688
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Sat, 15 Apr 2006 17:56:20 +0000 (17:56 +0000)]
* src/frontends/qt4/QTocDialog.C
(updateToc, populateItem): fix the logic of depth calculation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13687
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 15 Apr 2006 16:19:15 +0000 (16:19 +0000)]
add -D_CYGWIN_WIN whenever cygwin without x is selected.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13686
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Sat, 15 Apr 2006 15:50:13 +0000 (15:50 +0000)]
* src/frontends/qt4/ui/QTocUi.ui: lay out in a grid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13685
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Sat, 15 Apr 2006 15:10:03 +0000 (15:10 +0000)]
Don't jump back to cursor on inset clicking:
* src/insets/insetcollapsable.C
(void InsetCollapsable::doDispatch): undispatch cursor after lmb button click.
* src/insets/insettabular.C
(void InsetTabular::doDispatch): undispatch cursor after rmb click.
* src/insets/insetref.C
(void InsetRef::doDispatch): undispatch cursor after rmb click.
* src/text3.C
(void LyXText::dispatch): set cursor also after rmb click.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13684
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 15 Apr 2006 14:46:12 +0000 (14:46 +0000)]
From Enrico Forestieri:
* src/support/os_win32.C
(init, latex_path, cygwin_path_fix): Add support for cygwin tetex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13683
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Sat, 15 Apr 2006 14:13:41 +0000 (14:13 +0000)]
Initial Qt4 support for view-source feature (r13610), from Bo Peng (ben.bob@gmail.com)
* add src/frontend/qt4/QViewSource.h/C, QViewSourceDialog.h/C, ui/QViewSourceUi.ui
* modify corresponding qt4/Makefile.am Makefile.dialogs, Dialogs.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13682
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Sat, 15 Apr 2006 11:46:17 +0000 (11:46 +0000)]
Much better performance when using natbib (bug 2460):
* src/BufferView_pimpl.C
(bool BufferView::Pimpl::dispatch): update bibfiles cache after adding or
deleting a bib database
* src/buffer.C
(bool Buffer::readDocument): update bibfiles cache after the document
was read
* src/buffer.[Ch]
(void Buffer::updateBibfilesCache): new method to build or update a cached
vector with all used bibtex databases.
(void Buffer::getBibfilesCache): new method that returns the actual cache.
(Buffer * Buffer::getMasterBuffer): new (non-const) method to get the buffer
of the master document
* src/insets/insetbibtex.C
(void InsetBibtex::doDispatch): update the bibfiles cache after the inset has
been modified.
* src/insets/insetinclude.C.
(void Insetinclude::doDispatch): update the bibfiles cache after the inset
has Been modified.
* src/insets/insetinclude.[Ch]:
(void Insetinclude::updateBibfilesCache): new method to build or update
a cached vector with all used bibtex databases.
(void Insetinclude::getBibfilesCache): new method that returns the actual
cache.
* src/insets/insetcite.C
(string const getNatbibLabel): store a map of timestamps for all used bibtex
files (buffer's bibfiles cache) and rebuild the list of keys only if the timestamps
or the list of files have changed. This is the actual performance boost.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13681
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 15 Apr 2006 09:54:24 +0000 (09:54 +0000)]
Implement \phantom, \hphantom and \vphantom in math (bug 1473):
* src/mathed/math_factory.C
(createMathInset): handle \phantom, \hphantom and \vphantom
* src/mathed/Makefile.am: add math_phantominset.[Ch]
* src/mathed/math_phantominset.[Ch]: new phantom inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13680
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 14 Apr 2006 15:10:16 +0000 (15:10 +0000)]
* get rid of the --export-all-symbol in order to speed-up linking time
* put two TODO in comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13679
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Fri, 14 Apr 2006 14:30:43 +0000 (14:30 +0000)]
* src/LaTeXFeatures.C
(char const * simplefeatures[]): add tipa
* src/mathed/math_fontinset.C
(void MathFontInset::validate): textipa requires tipa
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13677
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 13 Apr 2006 20:44:38 +0000 (20:44 +0000)]
use const_cast<QWorkArea*> instead of C-style cast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13673
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 13 Apr 2006 20:39:42 +0000 (20:39 +0000)]
compilation fixes following rev 13671
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13672
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Thu, 13 Apr 2006 18:58:48 +0000 (18:58 +0000)]
* frontends/WorkArea.h(workAreaResize, scrollDocView, workAreaKeyPress,
dispatch, selectionReuqested, selectionLost): remove signals
* BufferView.[Ch] (selectionRequested, selectionLost, workAreaResize,
workAreaKeyPress, workAreaDispatch): add forwarding functions to the pimpl
* BufferView_pimpl.C (Pimpl): Remove the setup of the now deleted signals,
also remove corresponding connection objects.
* frontends/xforms/XWorkArea.h:
* frontends/qt2/QWorkArea.h:
* frontends/qt4/QWorkArea.h:
* frontends/gtk/GWorkArea.h: add LyXView as class variable view_ (qt
classes also get view() medthod)
* frontends/qt2/QWorkArea.C:
* frontends/qt2/QContentPane.C:
* frontends/qt4/QWorkArea.C:
* frontends/xforms/XWorkArea.C:
* frontends/gtk/GWorkArea.C: Change from calling signals to call
the functions directly through view_.view()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13671
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 13 Apr 2006 17:53:09 +0000 (17:53 +0000)]
update german userguide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13670
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Thu, 13 Apr 2006 17:09:30 +0000 (17:09 +0000)]
add missing include (from r13663)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13668
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Thu, 13 Apr 2006 16:47:57 +0000 (16:47 +0000)]
* src/paragraph.h (public): new enum ChangeTracking,
indicating if ct is used in the current buffer.
(cleanChanges): pass enum ChangeTracking.
* src/paragraph_pimpl.C (cleanChanges): delete ct marks from
paste content if ct is of in the buffer. Set content INSERTED
if ct is on (bug 2207).
* src/CutAndPaste.C (pasteSelectionHelper): pass information
about the current change tracking state to cleanChanges.
* src/paragraph_pimpl.h (cleanChanges): pass enum ChangeTracking.
* src/paragraph.C (cleanChanges): pass enum ChangeTracking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13666
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jürgen Spitzmüller [Thu, 13 Apr 2006 14:19:12 +0000 (14:19 +0000)]
* src/insets/insettabular (doDispatch): use insertAsciiString in
LFUN_PASTESELECTION. Simplifies the code a lot and fixes
wrong language settings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13665
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Thu, 13 Apr 2006 12:18:42 +0000 (12:18 +0000)]
* lyxfunc.h:
* BufferView_pimpl.h: delete LyXKeySymPtr typedef
* kbmap.h: include LyXKeysym.h and remove forward declaration of LyXKeySym,
and delete LyXKeySymPtr typedef
* kbsequence.h:
* frontends/WorkArea.h: delete LyXKeySymPtr typedef, include LyXKeySym.h
and don't include boost/shared_ptr.hpp, remove forward declaration of
LyXKeySym.
* frontends/LyXKeySym.h: include boost/shared_ptr.hpp, and add typedef
for LyXKeySymPtr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13663
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Thu, 13 Apr 2006 10:31:32 +0000 (10:31 +0000)]
* math_xarrowinset.C (validate):
* math_splitinset.C (validate): new methods; require amsmath (bug
2149).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13662
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Thu, 13 Apr 2006 08:54:50 +0000 (08:54 +0000)]
* lib/scripts/layout2layout.py
(convert): Change "LabelType Static" to "LabelType Itemize" for
itemize environments
(convert): Change "LabelType Counter_EnumI" to "LabelType Enumerate"
for enumerate environments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13659
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 13 Apr 2006 08:40:11 +0000 (08:40 +0000)]
* math_nestinset.C
(MathNestInset::doDispatch): replace recordUndo by recordUndoInset for
LFUN_DELETE, to fix undo behaviour
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13658
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Wed, 12 Apr 2006 14:02:23 +0000 (14:02 +0000)]
Compilation fix: Replace MakeAbsPath with makeAbsPath
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13657
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 12 Apr 2006 13:53:01 +0000 (13:53 +0000)]
Compilation fix: Replace MakeAbsPath with makeAbsPath
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13656
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Wed, 12 Apr 2006 09:58:09 +0000 (09:58 +0000)]
add header <sys/time.h> for DragonFly BSD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13655
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Tue, 11 Apr 2006 15:27:27 +0000 (15:27 +0000)]
tweak compression setting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13652
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 11 Apr 2006 13:57:05 +0000 (13:57 +0000)]
fix bug 2036:
* src/mathed/math_amsarrayinset.C
(metrics): use ArrayChanger to change the style
(draw): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13648
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 11 Apr 2006 10:51:59 +0000 (10:51 +0000)]
Fix enableCustom
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13645
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 11 Apr 2006 10:13:17 +0000 (10:13 +0000)]
Fix related to r13635
closePB renamed to cancelPB
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13644
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 11 Apr 2006 09:59:56 +0000 (09:59 +0000)]
added "none" color special case.
TODO: see how to get rid of these special cases...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13642
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 11 Apr 2006 09:56:56 +0000 (09:56 +0000)]
Transfered closePB handlling (GUI code) from QToc.C to QTocDialog.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13641
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 11 Apr 2006 08:26:43 +0000 (08:26 +0000)]
I have continued a bit on my track to do a real model view separation for the Citation Dialog. In this new scheme, QCitation is the controller and the model at the same time, it inherits ControlCitation and it doesn't know about the view. QCitationDialog is the view, it is using QCitation to get its model and for communication with the core; it is inheriting Dialog::View directly.
In frontend/qt4/Dialog.C, we use these class like this:
} else if (name == "citation") {
QCitation * ci = new QCitation(*dialog);
dialog->setController(ci);
dialog->setView(new QCitationDialog(*dialog, ci));
dialog->bc().bp(new NoRepeatedApplyReadOnlyPolicy);
Now, it should be possible to define another view like this:
} else if (name == "citation-inline") {
QCitation * ci = new QCitation(*dialog);
dialog->setController(ci);
dialog->setView(new QCitationInline(*dialog, ci));
All the citation functionalities are not there yet but the basic ones are there. There are still a few "intelligence" still to be transfered from the view to the dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13635
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Tue, 11 Apr 2006 08:24:15 +0000 (08:24 +0000)]
* src/buffer_funcs.C (setCounter): Ignore the layout label string in
paragraphs without label
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13633
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Mon, 10 Apr 2006 16:27:59 +0000 (16:27 +0000)]
Update on view-source feature (r13610), from Bo Peng (ben.bob@gmail.com)
* src/text3.C, src/lyxfunc.C: no special treatment of view-source dialog now.
* src/frontends/controllers/ControlViewSource.h, .C:
handle everything (get source type, code) in the controller.
* src/insets/insetbibtex.C, insetexternal.C insetinclude.C:
add dryrun mode to file copying etc.
* src/frontends/qt2/QViewSource.C: small changes when calling the controller.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13627
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Mon, 10 Apr 2006 16:18:31 +0000 (16:18 +0000)]
* configure.ac
* lib/lyx2lyx/lyx2lyx_version.py.in
* lib/lyx2lyx/Makefile.am
Add lyx2lyx_version.py to distribution.
* lib/lyx2lyx/LyX.py
Use lyx version as the same version of lyx2lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13626
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Mon, 10 Apr 2006 15:50:31 +0000 (15:50 +0000)]
parser_tools.py (find_tokens, find_tokens_exact): replace range with xrange.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13625
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Mon, 10 Apr 2006 11:04:20 +0000 (11:04 +0000)]
Undo previous
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13619
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Mon, 10 Apr 2006 10:47:59 +0000 (10:47 +0000)]
Fix bug 2485 and crash on middle-mouse paste into math.
Also move reponse to middle mouse from Release to Press
* math_nestinset.C
(MathNestInset::lfunMousePress): Add and convert to editXY
(MathNestInset::lfunMouseRelease): Remove
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13617
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Mon, 10 Apr 2006 09:14:08 +0000 (09:14 +0000)]
lyx_1_4.py(convert_sgml_paragraphs):
convert SGML paragraphs to Standard + ERT, as SGML are not used anymore.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13616
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 9 Apr 2006 21:24:01 +0000 (21:24 +0000)]
clean up the function renaming cleanup (libFileSearch instead of LibFileSearch)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13615
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sun, 9 Apr 2006 21:14:58 +0000 (21:14 +0000)]
lib/Makefile.am: move math icons from no-install
QMathDialog.C: set icon paths
QMathUi.ui: set icon paths to lib/images/math for visual feedback in designer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13614
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 9 Apr 2006 08:42:58 +0000 (08:42 +0000)]
clean up the function renaming cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13613
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Sun, 9 Apr 2006 07:06:57 +0000 (07:06 +0000)]
Fix bug 2485 and crash on middle mouse paste on math
* math_nestinset.C
(MathNestInset::lfunMousePress): handle middle mouse here, use
editXY, not setScreenPos
(MathNestInset::lfunMouseRelease): don't handle here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13612
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Sun, 9 Apr 2006 04:35:24 +0000 (04:35 +0000)]
First patch for auto-cls-layout feature, from Bo Peng (ben.bob@gmail.com)
layout file in the same directory as .lyx file will be used. .cls can also
be in this directory.
* src/buffer.C, bufferparams.C: move filepath to bufferparams so this
info will be available in getToken()
* src/lyxtextclasslist.h, .C: add addTextClass() that read a .layout file
from filepath.
* src/lyxtextclass.h, .C: pass filepath to LyXTextClass::load(). .layout
file in filepath will be loaded before system ones.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13611
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Sun, 9 Apr 2006 02:48:54 +0000 (02:48 +0000)]
view-source feature, from Bo Peng <ben.bob@gmail.com>
* src/buffer.h buffer.C - getSourceCode()
* src/lyxfunc.C - open view-source dialog
* src/text3.C - change LFUN_MOUSE_RELEASE
* src/output_linuxdoc.C, src/output_docbook.C, src/output_latex.C
- intercept output
* src/outputparams.h, outputparams.C - add par_begin, par_end, dryrun
* src/insets/insetgraphics.C - add dryrun mode of file conversion
* lib/ui/stdmenus.ui - add view-source menu item under view
* Add view-source dialog, add
src/frontends/qt2/QViewSourceDialog.h, QViewSource.C, QViewSource.h, QViewSourceDialog.C
src/frontends/qt2/ui/QViewSourceDialogBase.ui
src/frontends/controllers/ControlViewSource.h ControlViewSource.C
modify
src/frontends/qt2/Makefile.dialogs, Makefile.am, Dialogs.C,
src/frontends/controllers/Makefile.am, po.POTFILES.in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13610
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Sun, 9 Apr 2006 02:30:40 +0000 (02:30 +0000)]
* support/types.h: introduce the char_type type
* paragraph.h: make value_type point at char_type
* other files: change some bald 'char' to 'char_type'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13609
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Sun, 9 Apr 2006 00:26:19 +0000 (00:26 +0000)]
* Change several freestanding and class methods with first letter
capitalized to have first letter lowercased.
* Adjust all affected files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13605
a592a061 -630c-0410-9148-
cb99ea01b6c8