]>
git.lyx.org Git - lyx.git/log
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
Lars Gullik Bjønnes [Sun, 9 Apr 2006 00:19:34 +0000 (00:19 +0000)]
Remove last traces of the ShareContainer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13604
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Sat, 8 Apr 2006 22:31:11 +0000 (22:31 +0000)]
* filetools.[Ch]: Make functions that start with a capital
letter start with a lower letter.
* All other .C and .h in the cs: adjust for above change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13603
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Sat, 8 Apr 2006 19:32:52 +0000 (19:32 +0000)]
* ControlMath.C
(ControlMath::dispatchInsert): fix broken GUI for sub/superscript
insertion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13602
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 8 Apr 2006 11:33:26 +0000 (11:33 +0000)]
Remove the images directory
* Makefile.am: remove image files
* images/ChangeLog: delete
* images/smallcaps.xpm: move to lib/images/font-smallcaps.xpm
* lib/Makefile.am: add images to noinst files
Move the following files to lib/images/math:
* images/README
* images/delim.xbm
* images/ams_misc.xbm
* images/equation.xpm
* images/delim.xpm
* images/arrows.xbm
* images/bop.xbm
* images/matrix.xpm
* images/delim0.xpm
* images/delim1.xpm
* images/misc.xbm
* images/greek.xbm
* images/ams_nrel.xbm
* images/style.xbm
* images/ams_ops.xbm
* images/varsz.xbm
* images/font.xbm
* images/sub.xpm
* images/sqrt.xpm
* images/dots.xbm
* images/space.xpm
* images/deco.xbm
* images/super.xpm
* images/ams_arrows.xbm
* images/style.xpm
* images/ams_rel.xbm
* images/brel.xbm
* images/font.xpm
* images/deco.xpm
* images/frac.xpm
Adjust the following files to the moved images:
* src/frontends/gtk/GMathPanel.C
* src/frontends/gtk/Makefile.am
* src/frontends/qt4/ui/QMathUi.ui
* src/frontends/xforms/Makefile.am
* src/frontends/xforms/FormMathsPanel.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13598
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 8 Apr 2006 09:11:25 +0000 (09:11 +0000)]
* src/insets/insetgraphics.C (prepareFile): output correct file name
of compressed files (bug 2231)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13596
a592a061 -630c-0410-9148-
cb99ea01b6c8
André Pönitz [Sat, 8 Apr 2006 09:09:57 +0000 (09:09 +0000)]
support/textutils.h:
support/filetools.h: rename IsDirWriteable IsFileReadable IsLyXFilename
IsSGMLFilename IsLineSeparatorChar IsLetterChar IsPrintable
IsPrintableNonspace IsDigit to lower case initial
lyxvc.C:
LaTeXFeatures.C:
lyx_cb.C:
insets/insetbibtex.C:
insets/insetexternal.C:
insets/insetgraphics.C:
insets/ExternalSupport.C:
insets/insetinclude.C:
BufferView_pimpl.C:
graphics/GraphicsCacheItem.C:
text2.C:
converter.C:
buffer.C:
lyxfunc.C:
frontends/gtk/ghelpers.C:
frontends/controllers/ControlGraphics.C:
frontends/controllers/ControlInclude.C:
frontends/controllers/ControlSpellchecker.C:
support/filetools.C:
support/filetools.h: adjust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13595
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Sat, 8 Apr 2006 05:17:45 +0000 (05:17 +0000)]
Add method: pit_type & pit()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13594
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 7 Apr 2006 22:16:09 +0000 (22:16 +0000)]
* buffer_funcs.[Ch]: new needsUpdateCounters function
* text.C:
- LyXText::breakParagraph(): test if needsUpdateCounters() is enough before a full updateCounter
- LyXText::backspacePos0(): ditto
* text2.C:
- LyXText::deleteEmptyParagraphMechanism(): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13593
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Fri, 7 Apr 2006 16:15:14 +0000 (16:15 +0000)]
Update version of lyx2lyx to 1.5.0svn
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13592
a592a061 -630c-0410-9148-
cb99ea01b6c8
José Matox [Fri, 7 Apr 2006 16:11:16 +0000 (16:11 +0000)]
Add placeholders for future changes:
lyx_0_10.py: File format between 2.00 (the first publicaly available) and 2.10
lyx_1_5.py: Post-1.4.x file formats.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13591
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 7 Apr 2006 15:43:56 +0000 (15:43 +0000)]
From Jean-Marc: Make sure that standard sectioning styles have proper counters
* lib/layouts/stdsections.inc: include numarticle.inc here instead
of the following files:
* lib/layouts/kluwer.layout
* lib/layouts/aapaper.layout
* lib/layouts/llncs.layout
* lib/layouts/docbook.layout
* lib/layouts/article.layout
* lib/layouts/IEEEtran.layout
* lib/layouts/ijmpd.layout
* lib/layouts/paper.layout
* lib/layouts/aa.layout
* lib/layouts/aastex.layout
* lib/layouts/cl2emult.layout
* lib/layouts/docbook-section.layout
* lib/layouts/svjour.inc
* lib/layouts/amsart.layout
* lib/layouts/spie.layout
* lib/layouts/docbook-chapter.layout
* lib/layouts/aguplus.inc
* lib/layouts/scrartcl.layout
* lib/layouts/dtk.layout
* lib/layouts/agu-dtd.layout
* lib/layouts/elsart.layout
* lib/layouts/mwart.layout
* lib/layouts/seminar.layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13589
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 7 Apr 2006 15:25:34 +0000 (15:25 +0000)]
*lib/scripts/layout2layout.py: Fix section labelling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13588
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Fri, 7 Apr 2006 12:20:41 +0000 (12:20 +0000)]
update German Tutorial, Intro and splash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13584
a592a061 -630c-0410-9148-
cb99ea01b6c8
Edwin Leuven [Fri, 7 Apr 2006 12:01:11 +0000 (12:01 +0000)]
compile fixes + update in pref dialog
QtView.C: typo in include
QPrefsDialog.C: update after changing color
QPrefsDialog.h: default parent in constructor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13580
a592a061 -630c-0410-9148-
cb99ea01b6c8
Jean-Marc Lasgouttes [Fri, 7 Apr 2006 08:46:18 +0000 (08:46 +0000)]
document fancybox package
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13577
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 6 Apr 2006 21:16:54 +0000 (21:16 +0000)]
Fix: The modules' parent is not QPrefsDialog but the widget inside PanelStack.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13575
a592a061 -630c-0410-9148-
cb99ea01b6c8
Edwin Leuven [Thu, 6 Apr 2006 21:04:27 +0000 (21:04 +0000)]
clean up of the graphics dialog:
-layout
-enabling/disabling widgets
-tab order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13574
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 6 Apr 2006 20:19:51 +0000 (20:19 +0000)]
compilation fix: session.h and support/convert.h were missing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13573
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 6 Apr 2006 19:05:42 +0000 (19:05 +0000)]
* lyxrc.C
(lyxrcTags[]): restore order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13572
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Thu, 6 Apr 2006 15:08:48 +0000 (15:08 +0000)]
* QMathUi.ui:
- replaced the sqrt etc QPushButton with QToolButton
- modified the layout
* QMathDialog::QMathDialog
- got rid of the fixed width for function QWidgetList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13571
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 6 Apr 2006 09:46:01 +0000 (09:46 +0000)]
The nicefrac patch
* LaTeXFeatures.C
(simplefeatures[]: add nicefrac
* mathed/math_factory.C
(createMathInset): change frac semantics
* mathed/math_fracinset.[Ch]
(MathFracInset::metrics):
(MathFracInset::draw):
(MathFracInset::drawT):
(MathFracInset::write):
(MathFracInset::mathmlize): add nicefrac stuff
* mathed/math_dfracinset.C:
* mathed/math_tfracinset.C: adapt semantics
* frontends/qt2/ui/QMathDialogBase.ui
* frontends/qt2/QMathDialog.[Ch]
(QMathDialog::symbol_clicked): provide GUI
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13566
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:56:29 +0000 (23:56 +0000)]
Whitespace cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13565
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:55:36 +0000 (23:55 +0000)]
do not define boost::throw_exceptions if we are compiling with exceptions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13564
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:39:11 +0000 (23:39 +0000)]
whitespace cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13563
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Wed, 5 Apr 2006 23:03:58 +0000 (23:03 +0000)]
comment out the usage checking macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13562
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Wed, 5 Apr 2006 22:56:18 +0000 (22:56 +0000)]
2006-04-06 Bo Peng <ben.bob@gmail.com>
session support that
* handle recent opened files (previously lastfile)
* save/load bookmarks when quit lyx
* save/load buffer cursor location whan a file is closed
* save/load windows position and size when a file is closed
* add rc entries load_session, use_lastfilepos,
screen_geometry_height, screen_geometry_width,
screen_geometry_xysaved.
* trigger LFUN_QUIT when Alt-F4 or close-button is used to close lyx.
* remove lastfile.h lastfile.C (merged in session.h, session.C)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13561
a592a061 -630c-0410-9148-
cb99ea01b6c8
Lars Gullik Bjønnes [Wed, 5 Apr 2006 22:50:44 +0000 (22:50 +0000)]
make sure that BOOST_ENABLE_ASSERT_HANDLER is always set
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13560
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 5 Apr 2006 19:26:08 +0000 (19:26 +0000)]
Fix mess up of internal/external paths (from Enrico Forestieri)
* src/frontends/qt2/QPrefs.C:
(internal_path_list, external_path_list): Handle the PATH prefix
style according to the user-prefs style.
(QPrefs::apply, QPrefs::update_contents): fix inverted logic of
rc.cygwin_path_fix
* src/support/os.h: New declarations to deal with PATH lists.
* src/support/os_cygwin.C: Major rewrite to account for path style
problems.
* src/support/os_unix.C:
* src/support/os_win32.C: Stub functions for PATH lists.
* src/support/environment.C: fix bug 2344: Wrong path_prefix handling
in cygwin
* src/support/filetools.C (ChangeExtension): fix for the path
style to be written in .tex files (cygwin related).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13558
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 5 Apr 2006 15:10:34 +0000 (15:10 +0000)]
Porting work from Edwin Leuven:
* QMathUi.ui: Port to Qt4, icons paths are hacked to point to ../lib/images/
* QMathDialog: Port to qt4
* iconpalette.C: fix cols calculation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13557
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 5 Apr 2006 14:56:07 +0000 (14:56 +0000)]
* Makefile.am: add new icon
* images/style.xpm: fix name for xforms and gtk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13556
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 5 Apr 2006 14:22:59 +0000 (14:22 +0000)]
New icon for the qt4 math panel (it is hardcoded in the qt2 frontend)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13555
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 5 Apr 2006 14:21:19 +0000 (14:21 +0000)]
Modified icon for the math panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13554
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 5 Apr 2006 14:02:37 +0000 (14:02 +0000)]
Fix from Edwin Leuven:
BulletsModule is a widget not a dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13553
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Wed, 5 Apr 2006 13:16:52 +0000 (13:16 +0000)]
Resize the dialog so that the delimiters appears by couple on screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13552
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 5 Apr 2006 08:19:48 +0000 (08:19 +0000)]
fix bug 1235
* src/support/filetools.C
(readBB_from_PSFile): sanitize return value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13549
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Mon, 3 Apr 2006 18:28:13 +0000 (18:28 +0000)]
* paragraph_funcs.C
(breakParagraph): fix bug 2445 (I think)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13548
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 1 Apr 2006 13:23:24 +0000 (13:23 +0000)]
2006-04-01 Michael Gerz <michael.gerz@teststep.org>
* lib/ui/stdmenus.ui:
* lib/ui/stdtoolbars.ui:
* src/converter.C
* src/lyx_main.C
* src/support/package.C.in: tiny changes to text messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13545
a592a061 -630c-0410-9148-
cb99ea01b6c8
Michael Schmitt [Sat, 1 Apr 2006 13:04:23 +0000 (13:04 +0000)]
2006-04-01 Michael Gerz <michael.gerz@teststep.org>
* filename.C (mangledFilename): truncate filename to 100
characters for MiKTeX's pdflatex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13543
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 1 Apr 2006 10:49:58 +0000 (10:49 +0000)]
Fix bug 2186 (from Bo Peng):
* src/insets/insetbibtex.C
(InsetBibtex::latex): mangle filename of bst file for "non-nice"
.tex files
* src/insets/insetgraphics.C
(RemoveExtension): move ...
* src/support/filetools.[Ch]
(removeExtension): ... here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13540
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 1 Apr 2006 09:39:11 +0000 (09:39 +0000)]
configure.py: Bo Peng (ben.bob@gmail.com)
Fix --without-latex-config option, separate processLayoutFile()
Fix checkCygwinPath(), by Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13539
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 31 Mar 2006 13:31:16 +0000 (13:31 +0000)]
Major cleanup of lib/configure.py from Bo Peng
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13537
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Fri, 31 Mar 2006 13:17:44 +0000 (13:17 +0000)]
Log:
* convert to automatic slot connections
* fix TOC navigation
* delete non useful commented out code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13536
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 30 Mar 2006 12:43:32 +0000 (12:43 +0000)]
A more general way of setting paragraphs in an inset to standard
layout upon paste.
* insettext.[Ch]: add forceParagraphsToDefault method
* insettabular.C
(InsetTabular::doDispatch): use it for cell
* insetbox.C
(InsetBox::doDispatch): use it
* insetert.C
(InsetERT::doDispatch): use it
* insetcharstyle.C
(InsetCharStyle::doDispatch): use it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13535
a592a061 -630c-0410-9148-
cb99ea01b6c8
Martin Vermeer [Thu, 30 Mar 2006 12:34:49 +0000 (12:34 +0000)]
* QToc.C
(QToc::updateToc): Better scroll behaviour
* ui/QTocDialogBase.ui: Keyboard shortcuts, Dn -> Down
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13534
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 29 Mar 2006 18:49:27 +0000 (18:49 +0000)]
* lib/scripts/layout2layout.py
(concatenate_label): new, concatenate two labels in an intelligent way
(convert): add the TocLevel for sectioning styles
(convert): convert LabelString and StringAppendix for sectioning
styles (append counter)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13533
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 29 Mar 2006 18:43:05 +0000 (18:43 +0000)]
Adjust keybord shortcut of the "latex" format to the changed name
(this belongs to the fix for bug 2107)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13532
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Wed, 29 Mar 2006 18:37:39 +0000 (18:37 +0000)]
revert part of Enrico's temp dir patch: The client does not use package()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13531
a592a061 -630c-0410-9148-
cb99ea01b6c8