* rowpainter.C (paintPar): do not use wide insets when the
paragraph is centered or right-justified.
* paragraph.C (getAlign): take in account LYX_ALIGN_LAYOUT if
needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16321 a592a061-630c-0410-9148-cb99ea01b6c8
(parse_text): Don't output a newline in front of an InsetLatexAccent
(because InsetLatexAccent::write does does it neither)
(parse_text): Don't create invalid code for \i{} and \j{}
(parse_text): Handle \l{} and \L{}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16255 a592a061-630c-0410-9148-cb99ea01b6c8
than the workarea.
* src/text3.C
(cursorPrevious): use cur.dispatch(FuncRequest(LFUN_UP)) instead of
cursorUp(cur).
(cursorNext): ditto for cur.dispatch(FuncRequest(LFUN_DOWN)) vs
cursorDown(cur).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16225 a592a061-630c-0410-9148-cb99ea01b6c8
really expensive on some platforms.
* src/frontends/qt2/qfont_loader.[Ch]
(QLFontInfo::width): rename WidthCache as MetricsCache.
(QLFontInfo::ascent,QLFontInfo::descent): new, return (possibly cached)
ascent/descent values.
* src/frontends/qt2/qfont_loader.h:
implement cache for ascent/descent values in the QLFontInfo class.
* src/frontends/qt2/qfont_metrics.C
(ascent, descent): use the corresponding methods in QLFontInfo class.
Remove support for obsolete Qt/Win 3.2.1nc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16224 a592a061-630c-0410-9148-cb99ea01b6c8
(known_quotes): Fix typo (found by Charles de Miramon)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16204 a592a061-630c-0410-9148-cb99ea01b6c8
- writeout \begin and \end alignment tags on their own lines (bug 3010).
(patch from Gregor Gorjanc and me).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16163 a592a061-630c-0410-9148-cb99ea01b6c8
if we have selected some cells (bug 2715).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16073 a592a061-630c-0410-9148-cb99ea01b6c8
* src/CutAndPaste.C
(pasteParagraphList): Don't record undo info here...
(pasteSelection): ... but here ...
* src/BufferView_pimpl.C
(BufferView::Pimpl::menuInsertLyXFile): ... and here instead
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15962 a592a061-630c-0410-9148-cb99ea01b6c8
* src/text3.C
(LyXText::dispatch): An empty argument of LFUN_LAYOUT is now allowd
and means the default layout of the text class
* lib/images/layout.xpm: New image for default layout
* lib/Makefile.am: Add new file
* development/scons/scons_manifest.py: ditto
* lib/ui/stdtoolbars.ui: Add "Deafult" layout button to the extra toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15953 a592a061-630c-0410-9148-cb99ea01b6c8
* src/mathed/math_hullinset.C
(MathHullInset::doDispatch): move code for ref insert to MathNestInset
(MathHullInset::getStatus): move code for ref insert to MathNestInset
* src/mathed/math_nestinset.C
(MathNestInset::doDispatch): move code from MathHullInset here
(MathNestInset::getStatus): move code from MathHullInset here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15901 a592a061-630c-0410-9148-cb99ea01b6c8
* src/mathed/math_scriptinset.C
(MathScriptInset::write): Do not add braces to the nucleus
* src/mathed/math_parser.C
(Parser::parse1): Do not remove brace insets from the nucleus of
script insets
* src/mathed/math_nestinset.C
(MathNestInset::script): ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15861 a592a061-630c-0410-9148-cb99ea01b6c8
order to disable correctly the entries when needed.
* lyxfunc.C (dispatch): update menus and toolbars here
(getStatus): only honor LyXView::hasFocus when command originates
from a menu (bug 2877)
* funcrequest.h: split the UI enum value into TOOLBAR and MENU.
* lyxfunc.C (sendDispatchMessage):
* MenuBackend.C (MenuItem):
* ToolbarBackend.C (add):
* frontends/qt2/Toolbars.C (layoutSelected): adapt to the change above.
* frontends/qt2/QtView.C (hasFocus): return a correct value now (and fix bug 1720).
-This line, and those below, will be ignored--
M src/ChangeLog
M src/lyxfunc.C
M src/frontends/Toolbars.C
M src/frontends/qt2/ChangeLog
M src/frontends/qt2/QtView.C
M src/frontends/ChangeLog
M src/funcrequest.h
M src/MenuBackend.C
M src/ToolbarBackend.C
M status.14x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15768 a592a061-630c-0410-9148-cb99ea01b6c8
* 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/branches/BRANCH_1_4_X@15655 a592a061-630c-0410-9148-cb99ea01b6c8
(by Georg and me)
* src/lfuns.h
(enum kb_action): New lfun LFUN_MATH_BIGDELIM
* src/LyXAction.C
(init): New lfun LFUN_MATH_BIGDELIM
* src/cursor.C
(macroModeClose): try to intepret the current macro before
it is simply inserted
* src/mathed/math_biginset.[Ch]
(name): implement
(isBigInsetDelim): new, test whether a given token is a valid
MathBigInset delimiter
(infoize2): implement to show name if the cursor is to the right
* src/mathed/math_biginset.C
(size): handle Big, bigg and Bigg
(increase): ditto
(draw): fix deco drawing
(write): don't write space before delimiter but append one if necessary
* src/mathed/math_factory.C
(createMathInset): handle l->inset == "big"
* src/mathed/math_parser.C
(asInput): return a token as input, stolen from tex2lyx
(parse1): create a MathBigInset when needed
* src/mathed/math_nestinset.C
(doDispatch): try to intepret the argument of LFUN_SELFINSERT also
if it is longer than one character
(doDispatch): remove debug message
(doDispatch): remove LFUN_MATH_DELIM test for multiple cells (now
in getStatus)
(doDispatch): handle LFUN_MATH_BIGDELIM
(getStatus): Disable LFUN_MATH_DELIM and LFUN_MATH_BIGDELIM when
the selection spans multiple cells
* src/mathed/math_nestinset.[Ch]
(interpret): new, combine the previous math atom with the new
character to a MathBigInset if possible
* src/mathed/math_support.C
(deco_table): add lbrace and rbrace
* src/frontends/qt2/QDelimiterDialog.[Ch]
(fix_name, QDelimiterDialog, insertClicked, size_selected):
Allow for fixed size delimiters.
* src/frontends/qt2/ui/QDelimiterDialogBase.ui:
Added a combobox for selecting delimiter size.
* src/frontends/xforms/forms/form_maths_delim.fd: ditto
* src/frontends/xforms/FormMathsDelim.h:
Added a private variable to store selected delimiter size
* src/frontends/xforms/FormMathsDelim.C:
Correct entry in delim_rversion[] for matching braces.
(fix_name): new, return correct name for fixed size delimiter
(build, apply, update): allow for fixed size delimiters.
* src/frontends/gtk/GMathDelim.C: Add FIXME comment for fixed
size delimiters
* src/frontends/controllers/ControlMath.[Ch]:
Added dispatchBigDelim() to deal with fixed size delimiters.
* src/ParagraphParameters.C
(findToken): move from here
* src/support/lstrings.[Ch]
(findToken): to here
* src/text3.C
(dispatch): handle LFUN_MATH_BIGDELIM
(getStatus): ditto
* src/ToolbarBackend.C
(getIcon): handle LFUN_MATH_BIGDELIM
* lib/symbols: add MathBigInset symbols
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15570 a592a061-630c-0410-9148-cb99ea01b6c8
deleting empty paragraphs even when keepempty is true. Do not rely
on dEPM, since this was silly (bugs 2587 and 2882)
(Delete): simplify also and avoid calling backspace.
(backspace): small tweak.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15547 a592a061-630c-0410-9148-cb99ea01b6c8
* QDocumentDialog.C (updateNumbering): don't include headings
that have no counter in their label.
* ui/NumberingModuleBase.ui: show scrollbar when appropriate.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15351 a592a061-630c-0410-9148-cb99ea01b6c8
(readInset): Add comment about citation commands
* src/tex2lyx/text.C
(known_jurabib_commands): remove fullcite
since LyX does not know it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15350 a592a061-630c-0410-9148-cb99ea01b6c8
* buffer.[Ch] (changeRefsIfUnique): extend to handle bibitems
as well (the function takes a InsetCode argument now) [bug 2744];
clean up by using InsetIterator.
* math_hullinset.C (doDispatch): changeRefsIfUnique needs a
InsetCode argument now (bug 2744).
* insetlabel (doDispatch): changeRefsIfUnique needs a
InsetCode argument now.
* insetbibitem (doDispatch): use changeRefsIfUnique
(actual fix for bug 2744).
* insetcommand.[Ch]:
* insetcite.[Ch]: implement replaceContents, which is
used by changeRefsIfUnique.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15282 a592a061-630c-0410-9148-cb99ea01b6c8
* src/mathed/math_splitinset.C
(MathSplitInset::validate): Only require amsmath for AMS stuff
* src/mathed/math_factory.C
(createMathInset): create MathSplitInset if the latexkey is "split"
* src/mathed/math_parser.C
(Parser::parse1): create MathSplitInset if the latexkey is "split"
* lib/symbols: Add aligned, gathered, lgathered and rgathered
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15227 a592a061-630c-0410-9148-cb99ea01b6c8
(only on windows).
* src/frontends/Dialogs.C
(Dialogs::hide): Don't send the signal if we are quitting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15115 a592a061-630c-0410-9148-cb99ea01b6c8
over the cells to apply LFUN_EMPH and friends.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15100 a592a061-630c-0410-9148-cb99ea01b6c8
* src/buffer.C
(Buffer::readFile): Only call updateDocLang if reading the file
succeeded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15093 a592a061-630c-0410-9148-cb99ea01b6c8
* src/CutAndPaste.C (pasteSelectionHelper): pass Cursor
as argument, remove cursor-dependent arguments,
implement method to reset layout in insets which
forceParagraphsToDefault.
* CutAndPaste.C (pasteParagraphList): adapt call of
pasteSelectionHelper.
* insetert.C (doDispatch):
* insetcharstyle.C (doDispatch): remove ad-hoc-Code to
reset paragraph layout.
This is now done generally in CutAndPaste.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15061 a592a061-630c-0410-9148-cb99ea01b6c8
LyXText at cursor position is the same as LyXText at
cursor.selBegin() position. Fixes a crash (bug 2600).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14935 a592a061-630c-0410-9148-cb99ea01b6c8
* src/frontends/controllers/ControlMath.C
(latex_misc): Add intop and ointop
* lib/images/math/intop.xpm: New
* lib/images/math/ointop.xpm: Ditto
* lib/images/math/int.xpm: Add box to make the difference to intop clear
* lib/images/math/oint.xpm: ditto
* lib/Makefile.am: add new files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14923 a592a061-630c-0410-9148-cb99ea01b6c8
* src/graphics/GraphicsCacheItem.C
(CacheItem::Impl::convertToDisplayFormat): Don't derive the temp
file name from the original file name. This ensures that it is
composed of valid characters only.
* src/graphics/GraphicsConverter.C: remove example script, since it
will get out of date.
(Converter::Impl::Impl): Don't call the default converter directly,
but create a temporary script with build_script() as for the
configured converters. This makes sure that the file name does not
need to be passed on the command line anymore.
(build_script): Copy the original file to a temp file before the
conversion chain starts. This avoids problems with converters that
can't handle ' in filenames.
(build_script): This cannot fail anymore, so change the return type
to void
(build_script): Use build_conversion_command also for the default
converter. This has the advantage that the special code for moving
${outfile}.0, ${outfile}.1 is actually used for ImageMagick's convert.
(build_conversion_command): factored out from build_script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14891 a592a061-630c-0410-9148-cb99ea01b6c8
* src/tex2lyx/text.C
(known_spaces): new, LaTeX names of known spaces
(known_coded_spaces): new, LyX names of known spaces
(parse_text): Recognize all known spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14834 a592a061-630c-0410-9148-cb99ea01b6c8
new methods; invoke signal WorkArea::focusChange (bug 2423).
* src/frontends/WorkArea.h: add signal focusChange.
* src/BufferView_pimpl.C (focusChange): new method; updates the
toolbars (bug 2423)
(Pimpl): connect the WorkArea::focusChange signal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14808 a592a061-630c-0410-9148-cb99ea01b6c8
if the bib file is in a non-readable directory (bug 2782).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14806 a592a061-630c-0410-9148-cb99ea01b6c8
element (like {a'}^{2}).
* src/mathed/math_nestinset.C (script): when creating a script
inset, handle specially previous atom if it is a MathBraceInset
(this is used in interactive input).
* src/mathed/math_parser.C (parse1): when creating a script inset,
handle specially previous atom if it is a MathBraceInset (this is
used in parsing phase).
* src/mathed/math_scriptinset.C (write): put nucleus into braces
if it contains more than one element or is itself a script inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14802 a592a061-630c-0410-9148-cb99ea01b6c8
* math_scriptinset.C (notifyCursorLeaves): call recordUndoInset
before deleting a cell; if the nucleus does not have scripts
anymore, delete it and replace it by its contents at enclosing
level.
(write): output scripts even when they are empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14794 a592a061-630c-0410-9148-cb99ea01b6c8