2004-03-31 Alfredo Braunstein * insettext.C (edit): comment the call to updateLocal (dangling now) * insettext.h: add allowSpellCheck() returning true 2004-03-31 Angus Leeming * insetcollapsable.[Ch]: (leaveInset): renaming of getOutOfInset. 2004-03-31 Angus Leeming * insetcollapsable.[Ch] (getOutOfInset): new function which pushes the cursor out of an inset. * insetbranch.C (priv_dispatch): * insetcollapsable.C (priv_dispatch): in the LFUN_INSET_TOGGLE code, use getOutOfInset to push the cursor out of the inset when collapsing it. 2004-03-30 Angus Leeming * insetbase.[Ch] (translate): new static member function, returns an InsetBase::Code corresponding to the input string. * insetcollapsable.C (priv_dispatch): handle LFUN_INSET_TOGGLE. * insetbranch.C(priv_dispatch): specialize LFUN_INSET_TOGGLE so that it opens the inset if it refers to the currently active branch. 2004-03-30 Alfredo Braunstein * insetfloat.C (addToToc): use par_const_iterator_begin and par_const_iterator_end. 2004-03-29 Jürgen Spitzmüller * insetbibtex.[Ch]: bibtopic support. * insetfloat.[Ch]: add param \sideways {true|false} (support for sideways floats from rotating.sty). 2004-03-28 Alfredo Braunstein * insettext.[Ch]: add a default ctor. implement const version of paragraphs() * insetcharstyle.C: * insetert.C: * insetfloat.C: * insetlabel.C: * insetwrap.C: adjust 2004-03-28 Alfredo Braunstein * insettext.h: add insetAllowed returning true by default (fixing vanishing insets problem) * insettext.C (draw): handle the responsability of adding the ouside offset to collapsable. Clean code a bit. * insetcollapsable.[Ch] (metrics, draw): handle the derivation from insettext correctly, solve a couple of off-by-one drawing bugs 2004-03-25 Angus Leeming * insetcaption.C (draw): squash warning about unused variable. 2004-03-19 Georg Baum * ExternalSupport.C: use the master buffer's temp dir * insetgraphics.C (latex): make relative filename relative to the master file * insetgraphics.C: use the master buffer's temp dir * insetinclude.C (masterFilename): new function * insetinclude.C (linuxdoc, docbook): simplify logic (IsLyXFilename() is always true if loadIfNeeded() returns true) 2003-02-10 Jean-Marc Lasgouttes * insetinclude.C (loadIfNeeded): when the child buffer is loaded, set its parent to the current buffer. (latex): use the tmppath of the master buffer, not just the parent buffer (makes a difference with more than one level of include insets). If the file name is relative write in the .tex file a name relative to the master buffer directory. * insetinclude.C: rename masterFilename to parentFilename (this points to the direct parent) 2004-03-25 André Pönitz * inset.[Ch]: remover owner * insetcollapsable.[Ch]: derive from InsetText instead having such a member * insettext.[Ch]: * insetbibitem.C: * insetbox.C: * insetbranch.C: * insetcaption.C: * insetcharstyle.[Ch]: * insetert.C: * insetfloat.C: * insetfoot.C: * insetmarginal.C: * insetnote.C: * insetoptarg.C: * insettabular.C: * insetwrap.C: adjust 2004-03-16 Jürgen Spitzmüller * insetquote.C: use opening quote after '[' char. 2004-03-09 Alfredo Braunstein * insetcollapsable.[Ch] (metrics, draw): implemented an inlined-Open submode. 2004-03-07 Jürgen Spitzmüller * insetcite.[Ch]: support jurabib. 2004-03-05 Jürgen Spitzmüller * insetcite.C: Support second \cite option. * insetcommand.[Ch]: * insetcommandparams.[Ch]: add second optional argument. 2004-03-03 Alfredo Braunstein * insetcollapsable.C (lfunMouseRelease): right mouse button only shows the inset dialog. 2004-02-27 Alfredo Braunstein * insetlabel.[Ch]: remove them * Makefile.am: adjust 2004-02-21 Georg Baum * insetexternal.C, insetgraphics.C, insetinclude.C: use always a temp dir * insetinclude.C (latex): show a GUI warning if textclasses don't match * insetinclude.C: use mangledFilename() for temp files * insetgraphics.C (readInsetGraphics): remove version check, since the graphics inset has no own fileformat number anymore 2004-02-20 Jürgen Spitzmüller * insetquotes.[Ch]: added new member that allows direct access to single/double quotation marks. * insetnewline.[Ch]: * insethfill.[Ch]: treat as space (i.e. opening quotes follow) 2004-02-16 André Pönitz * insetbase.C: * insetbase.[Ch]: remove explicit 'DispatchResult' return type and implicitly assume 'DispatchResult(true, true) with exception of InsetBase::priv_dispatch which does the equivalent of 'retrun DispatchResult(false)' * inset*.[Ch] (priv_dispatch): adjust * insettabular.[Ch]: remove remains of the 'update' mechanism, simplify cursor moving function, re-enable horizontal scrolling for large tables 2004-02-13 André Pönitz * insettabular.[Ch]: some work after IU 2004-02-06 Alfredo Braunstein * inset.C (setPosCache): switch to absolute coords in insets * insettext.[Ch] (draw, drawFrame): adjust * insetcollapsable.C (draw): adjust (edit): adjust 2004-02-04 Alfredo Braunstein * insettext.C (edit): (updateLocal): use the cur argument instead of the global cursor * insetcollapsable.C (edit): dont call inset.edit(x,y) when opening 2004-02-01 Lars Gullik Bjonnes * insetlatexaccent.C (checkContents): "c" -> 'c' in calls to contains * insetfloat.C (validate): "H" -> 'H' in call to contains * insetcite.C (getBasicLabel): "," -> ',' in calls to contains 2004-01-30 André Pönitz * inset.[Ch]: * insetbase.[Ch]: * insetcharstyle.C: * insetcollapsable.[Ch]: * insetcommand.C: * insetexternal.C: * insetgraphics.[Ch]: * insetinclude.C: * insettabular.[Ch]: * insettext.[Ch]: * insetvspace.C: * updatableinset.[Ch]: adjust coordinate handling to 'screen absolute' coordinate 2004-01-28 Lars Gullik Bjonnes * insettabular.C: add using statement for std::vector, remove std:: where using was already used. 2004-01-19 Georg Baum * insetgraphics.C, insetinclude.C: use runparams.nice instead of buffer->niceFile() * insetinclude.C (validate): use feautures.nice() instead of buffer->niceFile() 2004-01-20 André Pönitz * inset.h: * insetbase.[Ch]: move stuff from mathcursor here. * insetbibitem.[Ch]: * insetbibtex.[Ch]: * insetbox.[Ch]: * insetbranch.[Ch]: * insetcharstyle.[Ch]: * insetcollapsable.[Ch]: * insetcommand.[Ch]: * insetert.[Ch]: * insetexternal.[Ch]: * insetfloat.[Ch]: * insetgraphics.[Ch]: * insetinclude.[Ch]: * insetlabel.[Ch]: * insetnote.[Ch]: * insetref.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * insetvspace.[Ch]: * insetwrap.[Ch]: * updatableinset.[Ch]: Adjust to IU changes (see comment in src/Changelog) 2004-01-15 André Pönitz * insetbase.[Ch]: * insetbibitem.[Ch]: * insetbibtex.[Ch]: * insetbox.[Ch]: * insetbranch.[Ch]: * insetcharstyle.[Ch]: * insetcollapsable.[Ch]: * insetcommand.[Ch]: * insetert.[Ch]: * insetexternal.[Ch]: * insetfloat.[Ch]: * insetgraphics.[Ch]: * insetinclude.[Ch]: * insetlabel.[Ch]: * insetnote.[Ch]: * insetref.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * insetvspace.[Ch]: * insetwrap.[Ch]: * updatableinset.[Ch] (priv_dispatch et al): change signature. 2004-01-08 André Pönitz * insetcollapsable.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * updatableinset.h: use cell index info from global cursor. 2004-01-06 Georg Baum * insetnote.C (InsetNoteParams::write): write label only once 2004-01-05 Lars Gullik Bjonnes * insetbranch.C (isBranchSelected): use the BranchNamesEqual functor get rid of the SameName functor * insettabular.C: improve the functor. 2003-12-29 Angus Leeming * insetexternal.C (setParams): update defaultTemplateName. 2003-12-22 Michael Schmitt * insetbox.C: Use term "Box" in button label 2003-12-16 Martin Vermeer * insetcharstyle.C: get getDrawFont working again 2003-12-15 André Pönitz * insettabular.[Ch]: * insettext.C: adjust to changed name in CursorItem -> CursorSlice 2003-12-12 Angus Leeming * insetbranch.C (c-tor): takes an InsetBranchParams arg rather than a string. (InsetBranchParams): remove the branchlist hack. (isBranchSelected): new function, used to decide whether to print each output format. Also used by InsetList. (read, string2params): repair my own breakage ;-) 2003-12-14 Jürgen Spitzmüller * insetminipage.[Ch]: remove from repository. 2003-12-12 Michael Schmitt * insetert.[Ch]: * insetcollapsable.[Ch]: Move all CollapseStatus code from insetert to insetcollapsable; introduce virtual function setButtonLabel and invoke it from collapsable 2003-12-12 Angus Leeming * insetinclude.C (draw): cache x,y and so enable the dialog to be opened. 2003-12-12 Angus Leeming * mailinset.C (print_mailer_error): tidy up the output. 2003-12-11 Angus Leeming * mailinset.[Ch] (print_mailer_error): new helper function. * insetcommand.[Ch]: add a mailer_name_ variable and use it when calling InsetCommandMailer. (InsetCommandMailer::string2params): pass the name of the dialog. * insetbibitem.[Ch] (d-tor): * insetbibtex.[Ch] (d-tor): * insetcite.[Ch] (d-tor): * insetfloatlist.[Ch] (d-tor): * insetindex.[Ch] (d-tor): * insetlabel.[Ch] (d-tor): * insetref.[Ch] (d-tor): * insettoc.[Ch] (d-tor): * inseturl.[Ch] (d-tor): removed. Hiding the dialog is handled by InsetCommand. * insetbibtex.[Ch] (draw, metrics): * insetfloatlist.[Ch] (draw, metrics): * insetindex.[Ch] (draw, metrics): removed. Drawing is handled by InsetCommand. * insetbibitem.[Ch] (priv_dispatch): * insetbibtex.[Ch] (priv_dispatch): * insetcite.[Ch] (priv_dispatch): * insetfloatlist.[Ch] (priv_dispatch): * insetindex.[Ch] (priv_dispatch): * insetlabel.[Ch] (priv_dispatch): * insettoc.[Ch] (priv_dispatch): * inseturl.[Ch] (priv_dispatch): removed or simplified. let InsetCommand handle LFUN_MOUSE_PRESS, LFUN_MOUSE_RELEASE, LFUN_INSET_DIALOG_SHOW. * insetbox.C (string2params): * insetbranch.C (string2params): * insetert.C (string2params): * insetexternal.C (string2params): * insetfloat.C (string2params): * insetinclude.C (string2params): * insetminipage.C (string2params): * insetnote.C (string2params): * insetvspace.C (string2params): * insetwrap.C (string2params): over-hauled. 2003-12-10 Angus Leeming * insetexternal.[Ch]: add a draft option and respect it when outputting LaTeX. 2003-12-10 Angus Leeming * insetbox.C: (read, write): now prepend the inset contents with 'Box' to identify the inset as a box inset. * insetbox.h: move the translators out of sight. 2003-12-10 Angus Leeming * insetert.C (string2params): clean-up using the new lyxlex interface. * insetexternal.C: ensure that InsetExternalParams has a default template, 'RasterImage'. 2003-12-10 Angus Leeming * insetnote.[Ch]: change the storage type of InsetNoteParams::type to an enum. Ensuing clean-ups through out the class. (read, write): now prepend the inset contents with 'Note' to identify the inset as a note inset. 2003-12-10 Angus Leeming * insetbranch.[Ch]: changes to the InsetBranchMailer interface. * insetnote.[Ch]: changes to the InsetNoteMailer interface. 2003-12-10 André Pönitz * inset.h: * insetert.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: remove unused insetInset() * insetert.C: disable some LFUNs * insettoc.[Ch]: metrics() and draw() of InsetButton is enough. 2003-12-04 Martin Vermeer * insetcharstyle.[Ch]: Conglomerate-style CharStyles 2003-12-04 Angus Leeming * insetexternal.C (draw): update the xo_, yo_ cache. * ExternalTransforms.[Ch] (ResizeData): add a usingScale member function. (RotationDataType): new helper struct wrapping the RotationData::OriginType enum. 2003-12-03 André Pönitz * inset.h: remove getParagraphs() * insetcollapsable.[Ch]: * insetert.[Ch]: * insetnote.[Ch]: * insettabular.[Ch]: * insettext.C: use getText() instead of getParagraphs() 2003-12-03 Martin Vermeer * insetert.C: fix label text updating bug 2003-12-02 Angus Leeming * insetvspace.[Ch] (space): new member function. Make space_ private. (read): use the new, simpler lyxlex syntax. 2003-12-01 André Pönitz * insetcollapsable.[Ch]: * insetert.[Ch]: move 'inline' state to InsetCollapsable 2003-12-01 Georg Baum * insetvspace.C (read): handle 'end_inset' token. 2003-12-01 Martin Vermeer * insetcharstyle.[Ch]: add latexparam to CharStyle inset 2003-12-01 Martin Vermeer * insetcollapsable.[Ch]: * insetert.[Ch]: * insetcharstyle.C: place inset content on the button when collapsed. 2003-12-01 Michael Schmitt * insetvspace.C: remove VSpace::NONE; increase inset width 2003-12-01 André Pönitz * insetbase.h: whitespace * inset.[Ch]: remove latexTextWidth make setBackgroundColor virtual * insettext.[Ch]: move ParagraphList member to LyXText * insetcollapsable.[Ch]: handle LFUN_INSET_TOGGLE * insetcharstyle.C: * insetenv.C: * insetert.[Ch]: * insetfloat.[Ch]: * insetminipage.[Ch]: * insettabular.C: * insetwrap.[Ch]: adjust paragraphs and background color handling, 2003-11-28 Angus Leeming * insetvspace.[Ch] (d-tor, priv_dispatch): new member functions, hiding and showing the dialog respectively. (priv_dispatch): also actually update the inset contents. 2003-11-28 Angus Leeming * insetbox.C (d-tor): * insetbranch.C (d-tor): * insetcite.C (d-tor): * insetfloat.C (d-tor): * insetfloatlist.C (d-tor): * insetinclude.C (d-tor): * insetindex.C (d-tor): simplify the invocation of the Mailer::hideDialog() function. * insetminipage.C (showInsetDialog): simplify the invocation of the Mailer::showialog() function. 2003-11-28 André Pönitz * Makefile.am: * insetvspace.[Ch]: new insets 2003-11-28 Martin Vermeer * insetcharstyle.C: Syntax change for CharStyles 2003-11-28 André Pönitz * updatableinset.h: remove insetInInsetY * insetcollapsable.[Ch]: * insetnewline.C: * insettabular.[Ch]: * insettext.[Ch]: adjust 2003-11-27 Alfredo Braunstein * insettext.[Ch]: * inset.[Ch]: * insetcollapsable.[Ch]: * insetert.[Ch]: * insettabular.[Ch]: remove setFont 2003-11-25 Alfredo Braunstein * render_graphic.[Ch]: adjust comments 2003-11-24 Alfredo Braunstein * insetgraphics.C (draw): cache xo_ & yo_ 2003-11-24 André Pönitz * insettext.C (setViewCache): don't call LyXText::init() anymore 2003-11-21 Michael Schmitt * inset.h: * insetcollapsable.[Ch]: * insetert.[Ch]: remove bufferview parameter in methods open, close, status, and updateStatus. 2003-11-21 Michael Schmitt * insetcollapsable.[Ch]: * insettabular.[Ch]: * insettext.[Ch] (getCursorDim): squash unused variable 2003-11-21 Alfredo Braunstein * insettext.C (edit): x0_,y0_ -> xo_,yo_ 2003-11-20 Alfredo Braunstein * insettext.C (draw): sets LyXText absolute coordinates 2003-11-20 Angus Leeming * insetcharstyle.C (latex, linuxdoc, docbook, plaintext): squash warnings about unused parameters. * insetcollapsable.C (open): * insettabular.C (pasteSelection): * insettoc.C (draw): ditto. 2003-11-17 Alfredo Braunstein * insetcollapsable.C: * insettext.C: * insettext.h: hand on MOUSE_* events to the LyXText when appropriate remove mouse_x mouse_y etc. 2003-11-17 André Pönitz * insettext.[Ch] (cx, cy): remove * insettext.[Ch] (dispatch): move most of it to LyXText::dispatch 2003-11-13 André Pönitz * inset.h: * insetcollapsable.[Ch]: * insettabular.[Ch]: * insettext.[Ch] (deleteLyXText): remove 2003-11-13 Alfredo Braunstein * insetcollapsable.[Ch] (fitInsetCursor): remove * insettabular.[Ch] (fitInsetCursor): remove * insettext.[Ch] (fitInsetCursor): remove * updatableinset.[Ch] (fitInsetCursor): remove (getCursorDIm): add virtual 2003-11-12 Martin Vermeer * src/insets/Makefile.am: * src/insets/inset.h: * src/insets/insetcharstyle.C: * src/insets/insetcharstyle.h: The Character Style /XML short element patch. 2003-11-11 Alfredo Braunstein * insettext.C: remove all update calls * insetcollapsable.C: remove all update calls 2003-11-11 Alfredo Braunstein * insettext.C (updateLocal, insertInset, setFont): remove fitCursor calls 2003-11-10 André Pönitz * inset.h: remove Inset::id_ * inset.h: top_x -> xo_, top_baseline -> yo_ to unify with mathed/*.[Ch] * *.[Ch]: adjust 2003-11-10 André Pönitz * inset.[Ch]: * insetbox.[Ch]: * insetcollapsable.[Ch]: * insetert.C: * insetfloat.C: * insetminipage.C: * insettabular.[Ch]: * insettext.[Ch]: * insetwrap.C: * updatableinset.[Ch]: remove inset locking & adjust 2003-11-07 Alfredo Braunstein * inset.h (allowSpellCheck): add (return true) * insetert.h (allowSpellCheck): add (return false) 2003-11-05 José Matos * inset.h: * insetbibtex.[Ch]: * insetbox.[Ch]: * insetbranch.[Ch]: * insetcaption.[Ch]: * insetcite.[Ch]: * insetcollapsable.[Ch]: * insetcommand.[Ch]: * insetenv.[Ch]: * insetert.[Ch]: * insetexternal.[Ch]: * insetfloat.[Ch]: * insetfloatlist.[Ch]: * insetfoot.[Ch]: * insetgraphics.[Ch]: * insethfill.[Ch]: * insetinclude.[Ch]: * insetindex.[Ch]: * insetlabel.[Ch]: * insetlatexaccent.[Ch]: * insetline.[Ch]: * insetlist.[Ch]: * insetmarginal.[Ch]: * insetminipage.[Ch]: * insetnewline.[Ch]: * insetnote.[Ch]: * insetoptarg.[Ch]: * insetpagebreak.[Ch]: * insetquotes.[Ch]: * insetref.[Ch]: * insetspace.[Ch]: * insetspecialchar.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * insettheorem.[Ch]: * insettoc.[Ch]: * inseturl.[Ch]: * insetwrap.[Ch]: rename ascii to plaintext and LatexRunParams to OutputParams. 2003-11-05 Alfredo Braunstein * insetcollapsable.C (edit): add open() all * insettext.C (edit): add setViewCache call 2003-11-04 André Pönitz * inset.h (edit): move locking code from dispatch() to edit() * insetbase.[Ch]: * insetbibitem.C: * insetbranch.[Ch]: * insetcite.[Ch]: * insetcollapsable.[Ch]: * insetcommand.C: * insetert.[Ch]: * insetexternal.[Ch]: * insetgraphics.[Ch]: * insetindex.[Ch]: * insetlabel.C: * insetnote.[Ch]: * insetref.C: * insettabular.[Ch]: * insettext.[Ch]: adjust 2003-11-04 Alfredo Braunstein * inset.h: * insetcollapsable.[Ch]: * insetert.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * updatableinset.[Ch]: remove dead search code 2003-11-04 Alfredo Braunstein * inset.h: * insetcollapsable.[Ch]: * insetert.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * updatableinset.[Ch]: remove dead spellcheck code 2003-11-04 Alfredo Braunstein * insettabular.C (lockInsetInInset): small fix 2003-11-04 Lars Gullik Bjønnes * insettext.C (priv_dispatch): some DispatchResult type cleanup, don't handle LFUN_UNKNOWN_ACTION, don't call BufferView::dispatch from here. Be stricter on DispatchResult returned. 2003-11-03 Lars Gullik Bjønnes * Inset::dispatch's: adjust for new DispatchResult semantics. 2003-11-03 Lars Gullik Bjønnes * render_base.h: make clone return an auto_ptr * render_button.C (clone): adjust * render_graphic.C (clone): adjust * render_preview.C (clone): adjust * insettheorem.C (clone): return an auto_ptr * insettext.C (priv_dispatch): exception safety * insettabular.C: store the file scope variable paste_tabular in a scoped_ptr, adjust usage. * insetexternal.C (setParams): exception safety * insetbibitem.C (clone): exception safety 2003-11-03 André Pönitz * inset.[Ch]: * insetcollapsable.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: remove Inset::id and related functions 2003-11-01 Lars Gullik Bjønnes * insets: adjust for DispatchResult changes. 2003-11-01 Jürgen Spitzmüller * insetpagebreak.C: fix screen representation & ascii output. 2003-11-01 Alfredo Braunstein * inset.[Ch]: * insettext.[Ch]: * insettabular.[Ch]: * insetcollapsable.[Ch]: bool haveParagraphs() -> int numParagraphs() 2003-10-31 José Matos * inset.h (ascii, linuxdoc, docbook): * insetbox.[Ch] (ascii, linuxdoc, docbook): * insetbranch.[Ch] (ascii, linuxdoc, docbook): * insetcaption.[Ch] (ascii, docbook): * insetcollapsable.[Ch] (ascii, linuxdoc, docbook): * insetcommand.[Ch] (ascii, linuxdoc, docbook): * insetert.[Ch] (ascii, linuxdoc, docbook): * insetexternal.[Ch] (ascii, linuxdoc, docbook): * insetfloat.[Ch] (linuxdoc, docbook): * insetfloatlist.[Ch] (ascii): * insetfoot.[Ch] (docbook): * insetgraphics.[Ch] (ascii, linuxdoc, docbook): * insethfill.[Ch] (ascii, linuxdoc, docbook): * insetinclude.[Ch] (ascii, linuxdoc, docbook): * insetindex.[Ch] (docbook): * insetlabel.[Ch] (ascii, linuxdoc, docbook): * insetlatexaccent.[Ch] (ascii, linuxdoc, docbook): * insetline.[Ch] (ascii, linuxdoc, docbook): * insetnewline.[Ch] (ascii, linuxdoc, docbook): * insetnote.[Ch] (ascii, linuxdoc, docbook): * insetpagebreak.[Ch] (ascii, linuxdoc, docbook): * insetquotes.[Ch] (ascii, linuxdoc, docbook): * insetref.[Ch] (ascii, linuxdoc, docbook): * insetspace.[Ch] (ascii, linuxdoc, docbook): * insetspecialchar.[Ch] (ascii, linuxdoc, docbook): * insetspecialchar.[Ch] (ascii, linuxdoc, docbook): * insettext.[Ch] (ascii, linuxdoc, docbook): * insettoc.[Ch] (ascii, linuxdoc, docbook): * inseturl.[Ch] (ascii, linuxdoc, docbook): * insetwrap.[Ch] (docbook): add LatexRunParams argument. 2003-10-30 José Matos * insettext.C (linuxdoc, docbook): use new pagraph generation code. 2003-10-29 Lars Gullik Bjønnes * updatableinset.C (priv_dispatch): * insetwrap.C (priv_dispatch): * inseturl.C (priv_dispatch): * insettoc.C (priv_dispatch): * insettext.C (lfunMouseRelease, priv_dispatch, moveRightIntern) (moveLeftIntern, moveUp, moveDown): * insettabular.C (lfunMouseRelease, priv_dispatch, moveRight) (moveLeft, moveUp, moveDown): * insetref.C (priv_dispatch): * insetnote.C (priv_dispatch): * insetminipage.C (priv_dispatch): * insetlabel.C (priv_dispatch): * insetindex.C (priv_dispatch): * insetinclude.C (priv_dispatch): * insetgraphics.C (priv_dispatch): * insetfloatlist.C (priv_dispatch): * insetfloat.C (priv_dispatch): * insetexternal.C (priv_dispatch): * insetert.C (priv_dispatch): * insetcommand.C (priv_dispatch): * insetcollapsable.C (lfunMouseRelease, priv_dispatch): * insetcite.C (priv_dispatch): * insetbranch.C (priv_dispatch): * insetbox.C (priv_dispatch): * insetbibtex.C (priv_dispatch): * insetbibitem.C (priv_dispatch): * insetbase.C (priv_dispatch): explict DispatchResult ctor fallout. 2003-10-29 Martin Vermeer * insettext.C: small refactoring of docbook stuff 2003-10-29 Lars Gullik Bjønnes * insettext.C (lfunMouseRelease): dont use implicit conversion to bool (priv_dispatch): adjust for operator dispatch_result_t removal * insettabular.C (lfunMouseRelease): put the result of a dispatch in a DispatchResult, adjust accordingly. (priv_dispatch): use strange >= construct... (will be removed later) * most insets: dispatch_result -> DispatchResult * insetbase.h: move DispatchResult out to dispatchresult.h 2003-10-27 André Pönitz * insetpagebreak.[Ch]: new inset for page breaks * insetline.[Ch]: new inset for vertical lines * Makefile.am: * inset.h: adjust 2003-10-25 Angus Leeming * render_base.h (asButton, asGraphic, asPreview, asMonitoredPreview): new virtual member functions, specialised... * render_button.h (asButton): * render_graphic.h (asGraphic): * render_preview.h (asPreview, asMonitoredPreview): ... here. * insetexternal.C: use these new functions rather than dynamic_cast. Various other small simplifications. 2003-10-22 Angus Leeming * insetexternal.[Ch]: add the ability to 'preview' the external file if so desired. * insetinclude.C: changes due to the changes in the RenderPreview interface. * render_preview.[Ch]: Lots of small changes. Display a diagnostic message if the preview image is not available. Only initiate the loading of the preview from draw(). Ditto, start the monitoring of an external file from RenderMonitoredPreview::draw. 2003-10-22 Angus Leeming * insetcite.[Ch] (setLoadingBuffer): removed. (getNatbibLabel): use the new Buffer::fully_loaded member function to ascertain whether to proceed with the (expensive) task of computing the natbib-style label. Remove the home-grown hack providing similar functionality. 2003-10-22 Angus Leeming * render_graphic.[Ch] (statusMessage, readyToDisplay): move out of the class and into an anonymous namespace. 2003-10-22 Angus Leeming * insetcommand.h: remove the display method. * insetbibtex.h: * insetfloatlist.h: * insetindex.h (InsetPrintIndex): * insettoc.h: add a display method, returning true. 2003-10-21 Martin Vermeer * insetcollapsable.h: * insetcommand.h: * insetfloat.h: * insetfootlike.h: * insetinclude.h: (1) finish off the inset display() work; (2) fix the "is a bit silly" bug (accessing char past end of par). 2003-10-20 Martin Vermeer * inset.h: * insetfloat.h: * insetfootlike.h: re-introduce display() for insets, fixing the various bugs (stretch of line above, math inset positioning, ...) 2003-10-17 Lars Gullik Bjønnes * insetbase.C (dispatch): new func (priv_dispatch): new func replaces... (localDispatch): this, deleted. * all insets with dispatch modified for new code. 2003-10-15 André Pönitz * insetcollapsable.[Ch] * insettabular.[Ch] * inset.h: re-add some edit(bv, index) method called by undo 2003-10-14 Angus Leeming * insetexternal.[Ch] (view, cache, view_): * insetgraphics.[Ch] (view, cache, view_): * insetinclude.[Ch] (view, cache, view_): remove the BufferView cache. (statusChanged): call LyX::cref().updateInset. * insetinclude.C (fileChanged): use LyX::cref().updateInset rather than the BufferView cache. * insetlabel.h: remove #include . Cruft from an earlier clean-up. 2003-10-14 Angus Leeming * insetinclude.C (metrics, draw): only draw the preview when previews are activated. 2003-10-14 André Pönitz * insetcollapsable.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * inset.h: getText() as alternative to getParagraphs() 2003-10-13 Angus Leeming * insetexternal.C: * insetgraphicsParams.C: displayTranslator is now a function. 2003-10-13 Angus Leeming * insetinclude.C: remove #include "PreviewImage.h". 2003-10-13 Lars Gullik Bjønnes * ExternalSupport.C: * ExternalTransforms.C: * insetbox.C: * insetbox.h: ws changes only 2003-10-13 Lars Gullik Bjønnes * insetinclude.C (localDispatch): do not call InsetOld::localDispatch, just return UNDISPATCHED * insetgraphics.C (localDispatch): ditto * insetcommand.C (localDispatch): ditto 2003-10-13 Lars Gullik Bjønnes * inset.h: get rid of RESULT typedef for dispatch_result * insetcollapsable.[Ch] (localDispatch): RESULT -> dispatch_result * insetert.[Ch] (localDispatch): ditto * insettabular.[Ch] (localDispatch): ditto (moveRight): ditto (moveLeft): ditto (moveUp): ditto (moveDown): ditto * insettext.[Ch] (localDispatch): ditto (moveRight): ditto (moveLeft): ditto (moveRightIntern): ditto (moveLeftIntern): ditto (moveUp): ditto (moveDown): ditto * updatableinset.[Ch] (localDispatch): ditto 2003-10-12 Angus Leeming * renderbase.h (view, view_): removed. * renderbase.C: removed. * Makefile.am: remove render_base.C. The shortest lived file in history? * renderbutton.C (draw): * render_graphic.C (draw): don't cache the BufferView. * insetabase.h (cache, view): removed. * inset.h (generatePreview) removed. * insetcallapsable.[Ch] (cache, view, view_): removed. * insetcollapsable.C (draw): don't cache the BufferView. * insetcommand.[Ch] (view): removed. * insetexternal.[Ch] (cache, view, view_): * insetgraphics.[Ch] (cache, view, view_): * insetinclude.[Ch] (cache, view, view_): added. Cache the BufferView. * insetlabel.C: small clean-up. Don't use the BufferView cache, view(), when you have direct access to it. In fact, don't use the cache at all. 2003-10-10 Angus Leeming * insetinclude.C (metrics): use preview_->metrics. (draw): use preview_->draw. * render_preview.[Ch] (pimage): removed. 2003-10-10 Angus Leeming * renderers.[Ch]: removed. * render_base.[Ch]: * render_button.[Ch]: * render_graphic.[Ch]: * render_preview.[Ch]: new files. The first three are split out of renderers.[Ch]. The last one is a renamed PreviewedInset.[Ch]. which contains a re-worked InsetInclude::PreviewImpl also. * Makefile.am: reflect the changed files. * insetcommand.h: * insetexternal.[Ch]: * insetgraphics.[Ch]: trivial changes ButtonRenderer -> RenderButton, etc. * insetinclude.[Ch]: changes reflecting the change from InsetInclude::PreviewImpl to RenderMonitoredPreview. * insethfill.C: * insetindex.C: * insetlabel.C: * insettoc.C: * inseturl.C: add #include "support/std_ostream.h" 2003-10-09 Angus Leeming * insetinclude.C (metrics, draw): no longer need to pass a Buffer arg to PreviewedInset::previewReady. 2003-10-09 Angus Leeming * insetexternal.[Ch] (statusChanged): * insetgraphics.[Ch] (statusChanged): make a const member function. * insetinclude.[Ch]: mods to PreviewImpl due to the changes to PreviewedInset. 2003-10-09 Angus Leeming * insetinclude.C (metrics, draw, restartLoading): pass a buffer arg to PreviewedInset's previewReady and removePreview member functions. 2003-10-08 André Pönitz * insetcollapsable.C: * insettext.[Ch]: saner 'init' structure * updatableinset.[Ch]: remove unneeded code 2003-10-08 Angus Leeming Fix doxygen warnings. * insetbox.h (localDispatch): remove prefix InsetBox:: from declaration. * insetnote.h (localDispatch): remove prefix InsetNote:: from declaration. 2003-10-07 Angus Leeming * ExternalTransforms.[Ch]: new files, detailing transforms that can be applied to InsetExternal. * Makefile.am: add these new files. * ExternalTemplate.[Ch]: add a list of available transforms to class Template and a list of factory functions for transformer classes that can act on this data to class Format. * insetexternal.[Ch]: add transform data to InsetExternal::Params. * ExternalSupport.C: Add code to replace transform placeholders with appropriate output. 2003-10-07 Angus Leeming * ExternalSupport.[Ch]: new files, moving the private member functions and namespace anon functions out of insetexternal.C to here, so making it easier to understand what is going on in insetexternal itself. * Makefile.am: add new files. * insetexternal.[Ch]: InsetExternal::Params -> InsetExternalParams, allowing the class to be forward declared. (Also consistent with all other Params classes.) (write): moved out of the class. Move this function and those in namespace anon to ExternalSupport.[Ch]. 2003-10-07 Angus Leeming * ExternalTemplate.[Ch] (TemplateManager::getTemplates): remove non-const member function. 2003-10-07 Martin Vermeer * Makefile.am: * inset.h: * insetbox.C: * insetbox.h: The Box patch. Fancybox support, minipage, parbox 2003-10-02 André Pönitz * insettext.C (read): make sure there is at least one par in the text after reading. 2003-10-01 José Matos * insetbranch.C (linuxdoc, docbook): minor fix. 2003-10-01 Angus Leeming * ExternalTemplace.[Ch]: introduce namespace lyx::external. * insetexternal.[Ch]: changes due to the introduction of namespace lyx::external. 2003-09-30 Angus Leeming * insetexternal.[Ch] (Params::read, write): new member functions. 2003-09-25 Angus Leeming * insetexternal.[Ch] (TempName): new (private) nested struct with fake copy semantics. Enables us to use the generated copy c-tor in the Params struct. (Params::templatename, Params::tempname): use accessor functions. 2003-09-25 Angus Leeming * ExternalTemplate.[Ch] (getTemplateByName): now it's a const member function, returning a const pointer. 2003-09-23 Angus Leeming * ExternalTemplate.[Ch]: can have multiple preamble snippets if we store them in a vector, preambleNames. * insetexternal.C (validate): loop over all preambleNames and call LaTeXFeatures::addExternalPreamble with each. 2003-09-22 Martin Vermeer * insetbranch.C: bug fix in branches 2003-09-22 Martin Vermeer * insetnote.C: small clean-up. 2003-09-19 Angus Leeming * inset.h (generatePreview): passed a 'Buffer const &' arg. * insetcommand.C (string2params): clear params using the default c-tor. * insetinclude[Ch]: get rid of the masterFilename_ parameter in InsetInclude::Params. No more data in this struct than in InsetCommandParams, so get rid of it and use InsetCommandParams instead. (c-tor): no need to pass a 'Buffer const &' arg anymore. (clone): remove #warning as it's now redundant. (set): add a 'Buffer const &' arg. Make private. (loadIfNeeded) move out of the class definition and into namespace anon. (getMasterFilename, getFileName): ditto. 2003-09-18 Angus Leeming * insetcommand.C (setParams): use the params' copy constructor. 2003-09-18 Angus Leeming * insetinsetbase.h (getLabelList): * insetinsetcollapsable.[Ch] (getLabelList): * insetinsetinclude.[Ch] (getLabelList): * insetinsetlabel.[Ch] (getLabelList): * insetinsettabular.[Ch] (getLabelList): * insetinsettext.[Ch] (getLabelList): receive a Buffer const & arg. * insetinsetinclude.[Ch] (fillWithBibKeys): ditto. 2003-09-18 Angus Leeming * insetinclude.[Ch]: remove Params::operator==, operator!= as they're redundant baggage from yesteryear. Remove Params::flag as it is redundant; the info is present in getCmdName. 2003-09-18 Angus Leeming * insetinclude.C (latexString): add a Buffer const & arg. 2003-09-18 Angus Leeming * inset.C: * inset.h: * insettext.C: * insettext.h: rename EnumLColor as LColor_color. 2003-09-18 Angus Leeming * inset.h: add the InsetOld::Code wrapper class InsetOld_code. * insetbase.h: add the dispatch_result wrapper class DispatchResult. 2003-09-16 Angus Leeming * insetinclude.C (localDispatch): ensure that params_.masterFilename_ is set before trying to generate a preview, else we trigger an assert. 2003-09-16 Angus Leeming * insetinclude.C (PreviewImpl::parent): return a const reference. 2003-09-16 Angus Leeming * insetcollapsable.[Ch]: make all member variables, except for 'inset', private. * insetert.C (init): use InsetCollapsable::setLabelFont rather than access labelfont directly. (read, updateStatus, lfunMouseRelease, status, showInsetDialog): use InsetCollapsable::setCollapsed, isOpen rather than access collapsed_ directly. * insetminipage.C (metrics): * insetnote.C (metrics): * insettheorem.C (clone): use InsetCollapsable::isOpen rather than access collapsed_ directly. 2003-09-16 Angus Leeming * insetbibitem.C: add #include "lyxfont.h". 2003-09-16 Lars Gullik Bjønnes * insetgraphics.C: * insetbibtex.C: use namespace alias for lyx::support::os 2003-09-16 Angus Leeming * insetcollapsable.h: remove unused framecolor variable. Remove #include "LColor.h". * insetcollapsable.C: remove unused framecolor variable. * insetcaption.C: * insetcollapsable.C: * insetert.C: * insetfloat.C: * insetfootlike.C: * insetminipage.C: * insetnote.C: * insetoptarg.C: * insetwrap.C: Add #include "LColor.h". 2003-09-16 Angus Leeming * insettext.[Ch] (frameColor): new accessor function. (frame_color_): stored as an int, allows us to remove #include "LColor.h" from insettext.h * insetbranch.C: * insettabular.C: * insettext.C: add #include "LColor.h". * insetcollapsable.h: add #include "LColor.h" (for its framecolor member variable). 2003-09-16 Angus Leeming * insetenv.C (constructor): use accessor functions to access InsetText variables. * insettext.h: rename autoBreakRows as autoBreakRows_. Make private. rename frame_color as frame_color_. Make private. * insettext.C: associated changes. 2003-09-16 Angus Leeming * inset.h: store background_color_ as an int, not as an LColor::color to get LColor.h out of the header file. * inset.C: * insetlatexaccent.C: * insetnewline.C: * insetspace.C: * insetspecialchar.C: * renderers.C: add #include "LColor.h". 2003-09-16 Angus Leeming * renderers.C: LyXFont::setColor no longer return a LyXFont &, so cannot string calls together. 2003-09-15 Angus Leeming * inset.[Ch] (setBackgroundColor, backgroundColor): * insettext.[Ch] (setFrameColor): pass EnumLColor args, rather than LColor::color ones. 2003-09-15 Lars Gullik Bjønnes * insetcommand.C * insetexternal.C * insetfloat.C * insetgraphics.C * insetinclude.C * insetminipage.C * insetnote.C * insettabular.C * insetwrap.C: remove usage of STRCONV 2003-09-15 Angus Leeming * renderers.C (draw): * insetlatexaccent.C (draw): explicitly define the color passed to the painter. 2003-09-10 Martin Vermeer * insettext.C: remove block causing problems in lockInsetInInset (mentioned erroneously under Bug #1366) 2003-09-10 Martin Vermeer * insetcollapsable.C: Simplify by using adjustCommand, and fix bug in the process 2003-09-09 Lars Gullik Bjønnes * several files: change Assert to BOOST_ASSERT 2003-09-09 Martin Vermeer * insettext.[Ch]: remove drawText[XY]Offset 2003-09-08 Angus Leeming * insetcollapsable.C: * insetenv.C: * insetinclude.C: * insetlabel.C: * insetoptarg.C: * insetspecialchar.C: * insettabular.C: * insettext.C: * insettoc.C: remove redundant using directives. 2003-09-07 Angus Leeming * insetspace.h: * insetspecialchar.h: remove #include "support/std_string.h". 2003-09-06 Angus Leeming * renderers.C: add #include "insets/inset.h" 2003-09-05 Angus Leeming * *.C: strip out redundant #includes. (193 in total.) 2003-09-03 Martin Vermeer * insets/insetbibtex.[Ch]: * insets/insetcommand.h: * insets/insetfloatlist.[Ch]: * insets/insetinclude.[Ch]: * insets/insettoc.[Ch]: Restricts the mouse click functionality of insets like bibtex, include, toc and floatlist to the visible button, and allows the use of LFUN_INSET_SHOW_DIALOG to bring up the dialogs. Cursor has to be in front of the inset (i.e. start of row) for this to function. 2003-09-04 Angus Leeming * ExternalTemplate.[Ch]: store the preamble snippets in a separate structure outside of the Format struct. Format::preambleName refers to an item in the map of all preamble snippets. Make use of the new Debug::EXTERNAL flag. * insetexternal.C: make use of the new Debug::EXTERNAL flag. (validate): Small change due to the changed storage of preamble snippets. 2003-09-04 Angus Leeming * insetgraphics.C: #include "support/os.h" * insetfoot.h: move #include "LaTeXFeatures.h" out of the header file. * insettabular.h: move #include "FuncStatus.h" out of the header file. * insettoc.[Ch]: move #include "metricsinfo.h" out of the header file. * insetcollapsable.h: * insetbranch.C: * insetnote.C: move #include "funcrequest.h" out of the header file. 2003-09-03 Angus Leeming * insetexternal.C (updateExternal): * insetgraphics.C (prepareFile): Fix the conversion when exporting to latex. 2003-09-03 Angus Leeming * insetexternal.C: don't bring namespace lyx::support into the global namespace. 2003-09-02 Martin Vermeer * insetbranch.C: Add Branch: to label 2003-09-02 John Levon * insettext.h: * insettext.C: remove cursor.i[xy]() 2003-08-28 Angus Leeming * insetgraphics.C (prepareFile): prepend "convertDefault.sh" with "sh ", enabling the conversion to be carried out even if the script is not executable. 2003-08-28 Lars Gullik Bjønnes * most files: change to use const Buffer refs 2003-08-26 Martin Vermeer * insetfootlike.C: whitespace. 2003-08-26 John Levon * insetenv.h: * insetcaption.h: * insetindex.h: remove remaining mentions of needFullRow() 2003-08-26 André Pönitz * insetfoot.C: * insetnewline.C: * insetquotes.C: * insettabular.C: * inset.[Ch]: remove InsetOld::par_owner_ & handling 2003-08-26 Martin Vermeer * insetbranch.C: Small fix to prevent a crash on loading. 2003-08-25 Martin Vermeer * inset.h: * insetbibtex.[Ch]: * insetbranch.[Ch]: * insetcollapsable.h: * insetert.[Ch]: * insetfloatlist.[Ch]: * insetfootlike.[Ch]: * insetinclude.[Ch]: * insetindex.[Ch]: * insetindex.h: * insetminipage.h: * insetnote.[Ch]: * insettext.C: * insettheorem.[Ch]: * insettoc.[Ch]: eliminates the needFullRow/display() stuff altogether, putting the logic in metrics/draw in the insets.=20 Draws short single row insets with more or less realistic metrics. 2003-08-19 André Pönitz * insettext.C: use new RowPainter interface 2003-08-18 John Levon * insetref.C: require amsmath for eqref 2003-08-17 Martin Vermeer * Makefile.am: * inset.h: * insetbranch.[Ch]: implements the 'branch inset' idea. This allows the output of various versions of a document from a single source version, selectively outputing or suppressing output of parts of the text. This implementation contains a 'branch list editor' in a separate tab of the document settings dialog. Branches are user definable and have a "display colour" to distinguish them on-screen. ColorHandler was somewhat cleaned up. (1) make possible a dynamically growing LColor list by allowing the graphic context cache to grow along (vector); (2) eliminate an IMHO unnecessary step in colour allocation. 2003-08-15 André Pönitz * insettext.[Ch]: adjust after rowlist split 2003-08-12 Michael Schmitt * insettabular.C: rename M_VALIGN_CENTER to M_VALIGN_MIDDLE; rename valign-center to valign-middle; rename VALIGN_CENTER to VALIGN_MIDDLE 2003-08-11 André Pönitz * inset.h: remove resizeLyXText * insetcaption.C: * insetcollapsable.[Ch]: * insetminipage.C: * insettabular.[Ch]: adjust * insettext.[Ch]: remove saveLyXTextState, restoreLyXTextStat, sstate, reinitLyXText 2003-08-07 André Pönitz * inset.[Ch]: move non-crucial functions out-of-line * insettext.C: rely on LyXText's LFUN handlers in some more cases, remove duplicated code. 2003-08-05 André Pönitz * insetbibitem.C: * insetcollapsable.[Ch]: * insetcommand.C: * insetert.C: * insetexternal.C: * insetfloat.C: * insetgraphics.C: * insetinclude.C: * insetlabel.C: * insetminipage.C: * insetnote.C: * insettabular.[Ch]: * insettext.[Ch]: * insetwrap.C: * updatableinset.[Ch]: rip out "deep update" * insettext.C (localDispatch): merge cases with default branch * insettext.C (frame_x,y,w,h): replace member with automatic variables * insettabular.[Ch] (updateLocal): simplify logic 2003-08-04 André Pönitz * insettext.[Ch] (updateLocal): remove 'what' argument by assuimng it is 'FULL' all the time. 2003-08-03 Jean-Marc Lasgouttes * insetert.C (get_new_label): only add ... to the (closed) label when the string has been shortened 2003-08-02 Lars Gullik Bjønnes * Always use std::endl with lyxerr 2003-08-01 Martin Vermeer * insetnote.C: update \author list 2003-07-31 André Pönitz * insetcollapsable.h: * insettabular.[Ch]: * insettext.[Ch]: remove toggleSelection 2003-07-30 Martin Vermeer (with help from Juergen Spitzmueller) * insetnote.C: add add i18n support. Use Prefs-definable colours for Comment and Greyedout. 2003-07-30 Martin Vermeer * insetcollapsable.[Ch]: * insetnote.C: * insetert.C: factor out the detection of clicking on the inset button as 'hitButton'. John Levon contributed. 2003-07-30 André Pönitz * insetcollapsable.C: * insetfootlike.C: * insettabular.C: parantheses, localize vars etc. 2003-07-29 Martin Vermeer * insetnote.C: Implement a newenvironment in preamble for greyedout. Patch provided by Jürgen Spitzmüller. 2003-07-29 Angus Leeming * insetcommand.C (localDispatch): default to InsetOld::localDispatch. * insetbibitem.C (localDispatch): * insetbibtex.C (localDispatch): remove call to ChangeCitationsIfUnique. * insetbibtex.[Ch] (clone): move out of line; use copy c-tor. * insetexternal.C (read): use pushpophelper. 2003-07-28 José Matos * insetext.C (read): \end_document replaces \the_end. 2003-07-28 José Matos * insetert.C (write): \layout -> \begin_layout. Add missing \end_layout. 2003-07-28 Jean-Marc Lasgouttes * insetquotes.C: document a bit the format * insettabular.C (write): remove extra space 2003-07-28 Martin Vermeer * insetnote.C: Umpf. Hope I *now* get it right :-( 2003-07-28 Martin Vermeer *insetnote.C: did the right fix to greyedout: \color instead of \textcolor. 2003-07-28 Angus Leeming * insetbibtex.h: remove extraneous forward declaration. * insetbibitem.h: * insetbibtex.h: Also remove long-dead Holder member class and variable. 2003-07-27 Martin Vermeer * insetbase.h: add #include needed by gcc 2.95.2 at least. 2003-07-27 Lars Gullik Bjønnes * insetwrap.C (addToToc): adjust for lyx::toc * insetfloatlist.C (ascii): adjust for lyx::toc * insetfloat.C (addToToc): adjust for lyx::toc 2003-07-27 José Matos * insetnote.h (linuxdoc,docbook): update support. 2003-07-27 Jean-Marc Lasgouttes * insetfloat.C (wide): add a space to label, for consistency 2003-07-27 Lars Gullik Bjønnes * insettext.C (nextChange): adjust for lyx::find (searchForward): ditto (searchBackward): ditto 2003-07-26 Jean-Marc Lasgouttes * insetgraphicsParams.C: * insetexternal.C: declare extern displayTranslator * insetexternal.C: * renderers.C: add #include "support/LAssert.h" 2003-07-27 José Matos * insetfloat.[Ch] (linuxdoc): * insetgraphics.C (linuxdoc): * insettabular.C (linuxdoc): * insettext.[Ch] (linuxdoc): add support for tables and figures (linuxdoc). 2003-07-27 José Matos * insetinclude (latex): comply with makeLaTeXFile argument change. 2003-07-26 Asger Alstrup * insettext.C (reinitLyXText): Get rid of updateLocal which causes the undo crashes. We'll see what problems other places this will cause. 2003-07-26 Angus Leeming * insetgraphics.C: remove unused declaration of system_tempdir. 2003-07-25 Lars Gullik Bjønnes * rename Inset to InsetOld * all inset files (clone): return a auto_ptr 2003-07-23 Angus Leeming * insetexternal.[Ch] (setParams): pass it a Buffer const *. 2003-07-23 Angus Leeming * mailinset.[Ch] (inset2string): * insetcommand.[Ch] (inset2string): * insetert.[Ch] (inset2string): * insetexternal.[Ch] (inset2string): * insetfloat.[Ch] (inset2string): * insetgraphics.[Ch] (inset2string): * insetinclude.[Ch] (inset2string): * insetminipage.[Ch] (inset2string): * insetnote.[Ch] (inset2string): * insettabular.[Ch] (inset2string): * insetwrap.[Ch] (inset2string): now requires a Buffer const & arg. * insetexternal.[Ch]: * insetgraphics.[Ch]: get rid of the view() function. Associated changes to the mailers' string2params and params2string functions. 2003-07-23 Angus Leeming * insetexternal.[Ch]: store the external file name in a FileName member variable rather than a string + associated changes. 2003-07-21 Angus Leeming * insetgraphicsParams.[Ch]: store the graphics file name in a FileName member variable rather than a string. * insetgraphics.[Ch]: * insetgraphicsParams.[Ch]: Associated changes. 2003-07-21 Angus Leeming * insetgraphics.[Ch] (string2params, params2string): passed a buffer_path argument. (view): new method. 2003-07-21 Angus Leeming * insetexternal.C: * insetgraphicsParams.[Ch]: * insetinclude.C: * renderers.C: use namespace lyx::graphics rather than grfx shortcut. 2003-07-21 Martin Vermeer * insetnote.C: fixed greyout and conditionals layout foul-ups. 2003-07-18 André Pönitz * insetert.[Ch]: * insetminipage.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * insetwrap.[Ch]: * updatableinset.[Ch]: remove unneeded Inset::getMaxWidth() 2003-07-18 André Pönitz * inset.[Ch]: * insetbibitem.C: * insetcollapsable.C: * insetcommand.C: * insetert.C: * insetexternal.C: * insetgraphics.[Ch]: * insetlatexaccent.[Ch]: * insetminipage.C: * insetnewline.C: * insetquotes.C: * insetspace.C: * insetspecialchar.C: * insettabular.[Ch]: * insettext.[Ch]: * updatableinset.C: two-phase-drawing for InsetText & InsetTabular 2003-07-17 André Pönitz * insetcollapsable.C: * insettabular.C: * insettext.C: don't call Inset::update() anymore * insettext.[Ch]: * insettabular.[Ch]: remove unneeded in_update_ members * insettext.[Ch]: remove unneeded InsetText::old_max_width member 2003-07-16 André Pönitz * insettext.C (selectAll): remove 2003-07-16 John Levon * insetnote.h: * insetnote.C: implement showInsetDialog() 2003-07-15 André Pönitz * insettabular.C: * insettext.C: refresh_status tristate -> need_update bool 2003-07-15 Alfredo Braunstein * insettext.C: adjust call to LyXText::init 2003-07-14 Juergen Spitzmueller * insettext.C: use bufferview_funcs->replaceSelection() to delete selections in some cases (bugs 441, 673, 702, 954). 2003-07-14 André Pönitz * insettext.C (draw): use slimmed down rowpainter interface 2003-07-14 André Pönitz * insetcollapsable.C: * insetert.C: * insettext.[Ch] (cy, ciy, setUpdateStatus): remove unused BufferView * argument 2003-07-14 André Pönitz * insettext.[Ch]: used cached metrics a bit more 2003-07-10 Alfredo Brauntein * insettabular.[Ch]: invalidate InsetTabular::view(), added buffer() 2003-07-10 André Pönitz * insettabular.C: * insettext.[Ch]: remove InsetText::InnerCache, clean up consequences 2003-07-04 Lars Gullik Bjønnes * introduce namespace lyx::graphics 2003-07-01 Lars Gullik Bjønnes * introduce namespace lyx::support 2003-06-30 André Pönitz * insetcite.C (localDispatch): fix case of missing return value * insetcite.C (ascii): remove unneeded temporary 2003-06-28 Lars Gullik Bjønnes * insetspace.h: fix \file * insetbibtex.C (fillWithBibKeys): use std:: on stdlib types * insetinclude.C (fillWithBibKeys): ditto * insetbibitem.C: fix type const order * inset.C (getLyXText): add varname for arg * ExternalTemplate.h: fix type const order 2003-06-27 André Pönitz * insettext.C: take care of removed LyXCursor::row_ member * insettext.[Ch]: use new TextCursor struct for sstate 2003-06-21 Alfredo Braunstein * inseterror.[Ch]: removed 2003-06-21 Alfredo Braunstein * insetinclude.C (docbook): use parseError instead of sgmlError 2003-06-19 Alfredo Braunstein * insetinclude.C (loadIfNeeded): call ::loadLyXFile instead of BufferList::loadLyXFile 2003-06-18 Lars Gullik Bjønnes * insettext.C (update): simplify (updateLocal): remove commented code (insetUnlock): simplify (lockInset): simplify (updateInsetInInset): simplify (localDispatch): simplify (setFont): simplify (resizeLyXText): simplify (collapseParagraphs): simplify * insetert.C (get_new_label): simplify 2003-06-17 Lars Gullik Bjønnes * insettext.C (localDispatch): handle arg to LFUN_PASTE, call pasteSelection with index 2003-06-13 Jean-Marc Lasgouttes * insettext.C (localDispatch): fix call to cutSelection for LFUN_CUT 2003-06-16 André Pönitz * insetbase.h: new virtual base function clone() * *inset*.[Ch]: IU of clone() and getLabelList (i.e. essentially Inset * clone() -> InsetBase * clone() 2003-06-13 André Pönitz * insettabular.[Ch]: make tabular a proper member 2003-06-12 André Pönitz * insettabular.[Ch]: some renaming plus whitespace 2003-06-11 Angus Leeming * Makefile.am: remove graphicinset.[Ch], insetbutton.[Ch]. Add renderers.[Ch]. * insetbutton.[Ch]: removed. * graphicinset.[Ch]: renamed as renderers.[Ch]. * renderers.[Ch]: new files. Rename GraphicsInset as GraphicsRenderer. Create a new class ButtonRenderer using the InsetButton::metrics() and draw() functions. Derive both from a common RenderedInset base class. * insetcommand.[Ch]: * insetinclude.[Ch]: derive from Inset, not InsetButton. Give it a ButtonRenderer member variable. Use it. Give the classes working copy c-tors. No longer derive from boost::noncopyable. * insetexternal.[Ch]: enable the inset to choose dynamically whether to display its contents as a button or as a graphic. * insetgraphic.[Ch]: changes due to the change in name GraphicInset -> GraphicRenderer. 2003-06-11 Angus Leeming * insetcite.C (localDispatch): reformat. * insetref.C (localDispatch): enable dialog to be lauched. 2003-06-11 John Levon * insettabular.C: correctly mark all cells as erased 2003-06-11 Angus Leeming * insetexternal.[Ch]: InsetExternal::Params no longer stores the ExternalTemplate but its name, templatename. This means that a file containing a reference to an External Template not installed on the current machine will be saved retaining this info rather than inserting the first "valid" template from the list of templates. As a by product, the visual statement that the Template is missing is now very clear! 2003-06-10 Lars Gullik Bjønnes * insettext.C (appendParagraphs): remove some commented code. 2003-06-10 Angus Leeming * graphicinset.[Ch] (view): removed the publicly accessible function to set the cache. * insetexternal.[Ch]: move tempname_ into the Params struct. (Params d-tor): new function, to clean-up this temp file. (localDispatch): dispatch LFUN_EXTERNAL_EDIT. (cache): removed. (editExternal, doSubstitution): move out of class. 2003-06-10 Angus Leeming * graphicinset.[Ch] (params): removed. * graphicinset.h (operator=): declared private but not defined. (statusMessage): made private. * insetexternal.[Ch]: graphic_ renamed as renderer_. 2003-06-07 John Levon * insetert.C (latex): make a newline mean just that not a new par 2003-06-07 José Matos * insethfill.[Ch] (linuxdoc, docbook): implement output * insetspace.C (linuxdoc, docbook): remove coments as the code is correct. 2003-06-06 José Matos * insetnewline.C (linuxdoc,docbook): return newline, fix bug 1148. 2003-06-06 André Pönitz * insetwrap.[Ch]: code compactification 2003-06-06 Alfredo Braunstein * mailinset.C (updateDialog): use Dialogs::visible 2003-06-04 Angus Leeming * graphicinset.C (draw): add a comment for the #if 0 block. * insetexternal.h: remove Params::parameters variable. * insetexternal.C (read, write): rewrite to output new ExternalInset format and read it back making full use of LyXLex. 2003-06-04 André Pönitz * inset.[Ch]: change owner_ from Inset * to UpdatableInset * 2003-06-04 John Levon * insettabular.C: back out tall table speed up. It was broken 2003-06-03 Angus Leeming * ExternalTemplate.[Ch]: add inputFormat and UpdateFormat variables. Remove ViewCommand and UpdateCommand. * graphicinset.C (update): bug fix. Set the params before calling the loader. * graphicinset.[Ch] (view): new method. A bit of a fudge to set the BufferView cache to enable the InsetExternal::editCommand to be invoked from the frontends. Would not be needed if this were dispatched properly. (old_ascent_): variable removed. * insetexternal.[Ch]: large clean-up to use the converter mechanism to do any necessary conversions of external material. Also use the new GraphicsInset to display the inset within LyX. 2003-06-03 Angus Leeming * graphicinset.[Ch]: new files. Clean up the InsetGraphics::Cache and move it somewhere where InsetExternal can use it too. * Makefile.am: add the new files. * insetgraphics.[Ch]: make use of the new GraphicInset. 2003-06-03 John Levon * inset.h: * insetbibitem.[Ch]: * insetbibtex.h: * insetcite.h: * insetcommand.[Ch]: * insetenv.[Ch]: * inseterror.h: * insetert.[Ch]: * insetexternal.[Ch]: * insetfloat.[Ch]: * insetfloatlist.h: * insetfoot.[Ch]: * insetgraphics.[Ch]: * insethfill.h: * insetinclude.[Ch]: * insetindex.h: * insetlabel.h: * insetlatexaccent.[Ch]: * insetmarginal.[Ch]: * insetminipage.[Ch]: * insetnewline.h: * insetnote.[Ch]: * insetoptarg.[Ch]: * insetquotes.[Ch]: * insetref.[Ch]: * insetspace.[Ch]: * insetspecialchar.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * insetthereom.[Ch]: * insettoc.h: * inseturl.h: * insetwrap.[Ch]: make clone() not take a Buffer * arg * insetgraphics.[Ch]: * insetgraphicsParams.[Ch]: always store an absolute path at runtime 2003-06-02 André Pönitz * inseterror.C: * insetgraphics.C: * insetlatexaccent.C: remove duplicated call to metrics() 2003-06-02 John Levon * insettabular.C: fix resize of column width 2003-06-02 John Levon * Makefile.am: * inset.h: * insetparent.h: * insetparent.C: remove insetparent 2003-06-02 André Pönitz * inset.[Ch]: * insetbase.h: * insetbibtex.[Ch]: * insetbutton.[Ch]: * insetcaption.C: * insetcollapsable.[Ch]: * inseterror.[Ch]: * insetert.[Ch]: * insetfootlike.C: * insetgraphics.[Ch]: * insetinclude.[Ch]: * insetlatexaccent.[Ch]: * insetminipage.[Ch]: * insetnewline.[Ch]: * insetquotes.[Ch]: * insetspace.[Ch]: * insetspecialchar.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: unify first drawing phase * inset.[Ch]: * insetbase.h: move validate() to the base 2003-05-31 Angus Leeming * Makefile.am: moved insetwrap.[Ch] into alphabetical order. 2003-05-30 André Pönitz * inset.h: * insetbase.h: * insetbutton.[Ch]: * insetcaption.[Ch]: * insetcollapsable.[Ch]: * inseterror.[Ch]: * insetert.[Ch]: * insetgraphics.[Ch]: * insetinclude.[Ch]: * insetlatexaccent.[Ch]: * insetnewline.[Ch]: * insetquotes.[Ch]: * insetspace.[Ch]: * insetspecialchar.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * updatableinset.[Ch]: unify second drawing phase 2003-05-30 John Levon * insetgraphics.C: fix a bformat 2003-05-29 John Levon * insettabular.C: remove unused bufferOwner() 2003-05-29 Lars Gullik Bjønnes * insettext.C (lockInsetInInset): adjust (getLabelList): use const_iterator, adjust (getInsetFromID): use const_iterator, adjust (addPreview): use const_iterator, adjust * insetwrap.C (clone): remove const_cast * insetnote.C (clone): remove const_cast * insetminipage.C (clone): remove const_cast * insetmarginal.C (clone): remove const_cast * insetfoot.C (clone): remove const_cast * insetfloat.C (clone): remove const_cast * insetert.C (clone): remove const_cast * delete commented same_id functions from a lot of files. 2003-05-28 John Levon * insetcite.C: * insetinclude.C: * insetindex.C: * insetparent.C: * insettoc.C: fix dispatch of mouse release (bug 1143 and others) * insetminipage.C: fix metrics (bug 1144) 2003-05-27 Lars Gullik Bjønnes * insettext.C (saveLyXTextState): adjust (restoreLyXTextState): adjust (init): adjust (lockInset): adjust (unlockInsetInInset): adjust (localDispatch): adjust (getLyXText): adjust * insettabular.C (insertAsciiString): adjust 2003-05-27 André Pönitz * insetbutton.C: * insetcollapsable.C: * inseterror.C: * insetgraphics.C: * insetlatexaccent.C: * insetminipage.C: * insetnewline.C: * insetquotes.C: * insetspace.C: * insetspecialchar.C: * insettabular.C: * insettext.C: dim.w -> dim.wid 2003-05-26 John Levon * insettabular.C: avoid drawing all of a long table if it's not needed. A big speedup 2003-05-26 Lars Gullik Bjønnes * remove same_id from function signatures, adjust 2003-05-24 Lars Gullik Bjønnes * insettext.C (InsetText): adjust (clear): adjust (setParagraphData): separate same_id cases, adjust (appendParagraphs): adjust (appendParagraphs): adjust 2003-05-23 André Pönitz * insetbutton.h: whitespace * insettabular.C: more compact code * updatableinset.C: remove const_cast 2003-05-23 Angus Leeming * insetexternal.C (write): check how many lines are output. (latex): use the "PDFLaTeX" flavour if outputting to pfdlatex and if the template has defined it. 2003-05-23 Angus Leeming * insetquotes (validate): use the new LaTeXFeatures::useBabel() method. 2003-05-23 Angus Leeming * insetfoot.C (latex): * inseturl.C (latex): rename fragile as moving_arg. 2003-05-23 Lars Gullik Bjønnes * inseterror.C (localDispatch): comment out unused var. 2003-05-22 Angus Leeming * inset*.[Ch] (latex): no longer has a free_spacing arg. Data is now passed through the LatexRunParams arg. 2003-05-22 Angus Leeming * inset*.[Ch] (latex): no longer has a fragile arg. Data is now passed through the LatexRunParams arg. * insetquotes.C (latex): accesses use_babel through the LatexRunParams arg rather than through a global var. 2003-05-22 Lars Gullik Bjønnes * insetspecialchar.C (dimension): use a string. 2003-05-22 Angus Leeming * insetbibtex.C (latex): * insetgraphics.C (latex): * insetinclude.C (latex): extract the buffer's 'nice'ness from runparams rather than from the buffer itself. 2003-05-22 Angus Leeming * inset*.[Ch] (latex): passed a LatexRunParams parameter. * insetgraphics.C (latex): actually use it ;-) 2003-05-22 Alfredo Braunstein * insetfloat.C (addToToc): trivial compile fix 2003-05-22 Lars Gullik Bjønnes * insettext.[Ch] (paragraph): delete unused function * insetfloat.C (addToToc): parlist simplfication 2003-05-20 Jürgen Spitzmüller * insetspace.[Ch]: added (new space insets) * Makefile.am: * inset.h: handle new space insets 2003-05-21 Lars Gullik Bjønnes * insetfloat.C (addToToc): adjust 2003-05-21 André Pönitz * insettext.[Ch]: fix drawing bug introduced earlier 2003-05-19 André Pönitz * insetspecialchar.C: fix bug introduced yesterday 2003-05-19 André Pönitz * inset.[Ch]: * insetbutton.[Ch]: * insetcollapsable.[Ch]: * inseterror.[Ch]: * insetert.[Ch]: * insetfoot.[Ch]: * insetgraphics.[Ch]: * insetgraphicsParams.[Ch]: * insetlatexaccent.[Ch]: * insetminipage.[Ch]: * insetnewline.[Ch]: * insetquotes.[Ch]: * insetspecialchar.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: dimensions() instead of ascend/descend/width 2003-05-19 André Pönitz * insetenv.[Ch]: * insettext.C: more insetenv 2003-05-16 André Pönitz * insetcommand.C: * insetminimpage.[Ch]: * insetcollapsable.[Ch]: fix #832 2003-05-16 André Pönitz * inset.[Ch]: * insetbibitem.[Ch]: * insetbibtex.[Ch]: * insetbutton.[Ch]: * insetcite.[Ch]: * insetcollapsable.[Ch]: * insetcommand.[Ch]: * inseterror.[Ch]: * insetert.[Ch]: * insetexternal.[Ch]: * insetfloatlist.[Ch]: * insetgraphics.[Ch]: * insetinclude.[Ch]: * insetindex.[Ch]: * insetlabel.[Ch]: * insetlatexaccent.[Ch]: * insetparent.[Ch]: * insetref.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: * insettoc.[Ch]: * inseturl.[Ch]: * updatableinset.[Ch]: edit() -> LFUN_INSET_EDIT 2003-05-13 André Pönitz * insetbibitem.C: * insetcollapsable.C: * insetert.C: * insetfloat.C: * insetinclude.C: * insetwrap.C: tostr from own header * insetcommand.C: * insetexternal.C: * insetfloat.C: * insetfloat.h: * insetgraphics.C: * insetinclude.C: * insetminipage.C: * insetparent.C: * insettabular.C: * insettext.C: * insetwrap.C: STRCONV 2003-05-12 André Pönitz * insetcaption.C: * insetexternal.C: * insetfloat.C: * insetfloatlist.C: * insetgraphics.C: * insetinclude.C: * insetminipage.C: * insetminipage.C: * insettabular.C: * insettext.C: * insetwwrap.C: boost::format -> bformat all over the place 2003-05-05 André Pönitz * insettext.h: add missing #include 2003-05-07 Lars Gullik Bjønnes * insettext.C (InsetText): parlist cleanup (clear): ditto (edit): ditto (insetUnlock): ditto (lockInset): ditto (lockInsetInInset): ditto (cx): ditto (cix): ditto (getLyXText): ditto (searchBackward): ditto (collapseParagraphs): ditto 2003-05-06 John Levon * insetcaption.C: don't cast wrap inset to InsetFloat * insetfloat.h: * insetfloat.C: remove unneeded type() function 2003-05-05 André Pönitz * inset.h: * insettext.[Ch]: * insettabular.[Ch]: * insetcollapsable.[Ch]: remove unused function firstParagraph() replace getFirstParagraph() by getParagraphs() 2003-05-03 John Levon * insetcollapsable.h: * insetcollapsable.C: * insettabular.h: * insettabular.C: * insettext.h: * insettext.C: * updatableinset.h: * updatableinset.C: remove cursor_visible_, showInsetCursor(), hideInsetCursor(), toggleInsetCursor(), isCursorVisible(). Add getCursor(). Remove explicit cursor hides. 2003-05-02 André Pönitz * insettext.C: remove unneeded &* 2003-04-30 John Levon * insettabular.C: fix edit message 2003-04-30 Lars Gullik Bjønnes * insettext.C (setFont): do not convert iterator -> pointer * insettabular.C (localDispatch): do not convert iterator -> pointer (setFont): ditto (tabularFeatures): ditto 2003-04-29 André Pönitz * inset.h: introduce "haveParagraph" from Lars' parlist-14-b. 2003-04-28 André Pönitz * insettext.[Ch]: part of Lars' Paragraph * -> ParagraphList::iterator Changes 2003-04-25 André Pönitz * insetenv.C: derive from InsetText instead of InsetCollapsable 2003-04-24 Lars Gullik Bjønnes * insetexternal.C (string2params): dont do anything if the string is empty. * insetgraphics.C (string2params): ditto * insetcommand.C (string2params): ditto * insetert.C (string2params): ditto * insetfloat.C (string2params): ditto * insetinclude.C (string2params): ditto * insetminipage.C (string2params): ditto * insettabular.C (string2params): ditto * insetwrap.C (string2params): ditto 2003-04-24 André Pönitz * insetref.C: support for eqref 2003-04-16 Lars Gullik Bjønnes * insetert.C (read): use ParagraphList::iterator. 2003-04-15 Lars Gullik Bjønnes * insetquotes.C (latex): comment some code and add warnings. 2003-04-14 Alfredo Braunstein * insetexternal.C (localDispatch): added a missing DISPATCHED 2003-04-12 John Levon * insetwrap.C (addToToc): fix a crash, conversion from while to for loop forgot to remove the explicit increment 2003-04-10 John Levon * insettabular.C (tabularFeature): make sure to update the dialog when we change something (bug 1036). (getStatus): don't disable some lfuns (bug 939) 2003-04-09 Lars Gullik Bjønnes * insettext.C (saveLyXTextState): adjust (localDispatch): adjust (setFont): adjust (cx): adjust (cix): adjust (cpar): adjust * insettabular.C (localDispatch): adjust (setFont): adjust (tabularFeatures): adjust 2003-04-05 Alfredo Braunstein * insettabular.C (searchForward,searchBackward): fix bug 782 2003-04-07 John Levon * insettabular.C: * insettext.C: clear status message on inset exit 2003-04-03 John Levon * insetcommand.C: return dispatched on DIALOG_UPDATE 2003-04-02 John Levon * insettabular.C: tab lfuns renamed 2003-04-02 Lars Gullik Bjønnes * insettext.C (update): move towards ParagraphList (updateLocal): ditto (edit): ditto (insetUnlock): ditto (lockInset): ditto (lockInsetInInset): ditto (updateInsetInInset): ditto (localDispatch): ditto (docbook): ditto (setFont): ditto (resizeLyXText): ditto (searchBackward): ditto (collapseParagraphs): ditto (addPreview): ditto * insetwrap.C (InsetWrap): adjust (addToToc): adjust and rewrite loop * insettext.[Ch] (paragraph): delete function * insettabular.C (moveNextCell): adjust (movePrevCell): adjust (insertAsciiString): adjust * insetfloat.C (InsetFloat): adjust (addToToc): adjust * insetert.C (InsetERT): adjust (write): adjust, and rewrite loop (latex): adjust, and rewrite loop (linuxdoc): adjust, and rewrite loop (docbook): adjust, and rewrite loop (localDispatch): adjust (get_new_label): adjust 2003-04-01 John Levon From Alfredo Braunstein * insetbutton.h: * insetbutton.C: add localDispatch() * insetcommand.C: return DISPATCHED when edit() called * insettext.C: fix bug 967 2003-04-01 Lars Gullik Bjønnes * insettext.C: adjust 2003-04-01 Lars Gullik Bjønnes * insettext.C (draw): adjust (crow): return a RowList::iterator not a Row* * insetminipage.C (localDispatch): adjust * insetert.C (localDispatch): adjust 2003-03-31 John Levon * insetgraphics.C: * insetgraphicsParams.C: use_gui moved to lyx_gui 2003-03-31 John Levon * insettext.C: Alert fix 2003-03-30 Lars Gullik Bjønnes * insettext.C (ascent): adjust for RowList (descent): ditto (draw): ditto (getLyXText): adjust (toggleSelection): adjust * insetminipage.C (localDispatch): adjust for RowList * insetert.C (localDispatch): adjust for RowList (getMaxWidth): adjust for RowList 2003-03-29 John Levon * insetert.C: Alert cleanup 2003-03-29 John Levon * insettabular.C: Alert fix 2003-03-28 John Levon * insetfloat.C: reset label on INSET_MODIFY 2003-03-28 John Levon * insetgraphicsParams.C: read subcaptionText as a whole line (bug 656) 2003-03-28 John Levon * insettext.C: remove unused prototypes 2003-03-25 Angus Leeming * insetbibitem.C (localDispatch): repaint the view after modifying a bibitem inset in case the maximum InsetBibitem width has changed. 2003-03-25 John Levon * insettext.C: * insettabular.C: LyXText renamings 2003-03-24 John Levon * insettext.C: remove some dead code. Fix bug 972 and related by posting a repaint in updateLocal(), and making the SEL functions set SELECTION. 2003-03-22 John Levon * inset.h: * inset.C: remove no-longer-needed topx_set * insetcollapsable.h: * insetcollapsable.C: remove dead code * insetminipage.C: * insetert.C: rebreak the rows when a possible change in size is made, and reset the cursor (bug 962, bug 965) * insettabular.C: remove topx_set, CHANGED_IN_DRAW * insettext.C: remove CHANGED_IN_DRAW noticing/handling, topx_set. Fix drawing errors for clearInset(). Remove some unnecessary uses of topx, which should die. * updatableinset.C: fix getMaxWidth() so CHANGED_IN_DRAW is no longer needed. Replace it with an ugly hack. 2003-03-20 John Levon * inset.h: * insetcollapsable.h: * insetcollapsable.C: * insetert.h: * insetert.C: * insetminipage.C: * insetminipage.C: * insettabular.h: * insettabular.C: * insettext.h: * insettext.C: remove spurious font parameter from update(). Fix drawing of ERT insets inside insets (bug 966). Remove unused mark_dirty from tabular's updateLocal() 2003-03-19 John Levon * insetfloat.h: * insetfloat.C: * insetinclude.h: * insetinclude.C: * insetminipage.h: * insetminipage.C: * insetwrap.h: * insetwrap.C: remove unused getter/setters 2003-03-19 John Levon * several files: bv->updateInset() doesn't take a bool mark_dirty any more 2003-03-17 Lars Gullik Bjønnes * adjust for BufferView* arg removal from lyxtext. 2003-03-17 John Levon * most files: remove the "cleared" parameter to draw in favour of always clearing. Associated code removal. 2003-03-16 John Levon * insettext.C: remove unused s.refresh 2003-03-13 Angus Leeming * insettext.C (edit): replace Dialogs::updateParagraph with BufferView::dispatch(LFUN_PARAGRAPH_UPDATE). 2003-03-13 André Pönitz * Makefile.am: insert insetenv * insethenv.[Ch]: new files, currently inactive 2003-03-12 John Levon * Makefile.am: * inset.h: * inset.C: * insetert.h: * insetert.C: * insetnewline.h: * insetnewline.C: * insetquotes.C: * insettext.C: use new insetnewline 2003-03-12 John Levon * insettext.C: readToken became readParagraph 2003-03-12 John Levon * insettext.C: use parlist iterator for reading contents 2003-03-12 John Levon * insettext.C: name change to readToken() 2003-03-11 André Pönitz * Makefile.am: insert insethfill * insethfill.[Ch]: new files 2003-03-10 Angus Leeming * mailinset.[Ch] (showDialog, updateDialog): now take a mandatory BufferView * arg. (hideDialog): calls the new static Dialogs::hide() method. * insetbibitem.C (edit): * insetbibtex.C (edit): * insetcite.C (edit): * insetcommand.C (localDispatch): * inseterror.C (d-tor): * insetert.C (showInsetDialog): * insetexternal.C (localDispatch, edit): * insetfloat.C (localDispatch, showInsetDialog): * insetfloatlist.C (edit): * insetgraphics.C (localDispatch, edit): * insetinclude.C (localDispatch, edit): * insetindex.C (edit): * insetlabel.C (edit): * insetminipage.C (localDispatch, showInsetDialog): * insetref.C (edit): * insettabular.C (unlockInsetInInset, lfunMouseRelease, localDispatch, resetPos, showInsetDialog, openLayoutDialog): * insettoc.C (edit): * inseturl.C (edit): * insetwrap.C (localDispatch, showInsetDialog): changes due to the changed MailInset interface. 2003-03-10 Dekel Tsur * insetfloat.h: Set default placement to an empty string. 2003-03-10 Lars Gullik Bjønnes * insettext.C (latex): adjust call to latexParagraphs. 2003-03-10 Angus Leeming * mailinset.C: warn the user if the BufferView has not been cached. 2003-03-10 Angus Leeming * inset.h, insetbase.h: move cache() and view() into InsetBase. * insetcommand.h (inset): * insetert.h (inset): * insetexternal.h (inset): * insetfloat.h (inset): * insetgraphics.h (inset): * insetinclude.h (inset): * insetminipage.h (inset): * insettabular.h (inset): * insetwrap.h (inset): * mailinset.h (inset): return an InsetBase &, not an Inset &. 2003-03-10 Angus Leeming * insetcommand.C (string2params): * insetexternal.C (string2params): * insetfloat.C (string2params): * insetgraphics.C (string2params): * insetinclude.C (string2params): * insetminipage.C (string2params): * insettabular.C (string2params): * insetwrap.C (string2params): cure warning message about missing '\end_inset'. 2003-03-09 Angus Leeming * insettabular.[Ch]: define a new class InsetTabularMailer and use it to communicate with the frontend dialogs. * mailinset.C (hideDialog): only hide the dialog if it is showing the contents of this inset! 2003-03-07 Angus Leeming * inseterror.C (localDispatch): new method; calls edit() on LFUN_MOUSE_RELEASE. 2003-03-07 Angus Leeming * insetbibitem.C (localDispatch): * insetbibtex.C (localDispatch): * insetlabel.C (localDispatch): rewrite as a switch. 2003-03-07 Angus Leeming * insetgraphics.[Ch]: define a new class InsetGraphicsMailer and use it to communicate with the frontend dialogs. 2003-03-07 Angus Leeming * insetexternal.C: remove operator== and operator!= for InsetExternal::Params. They were used only by the old controller scheme. 2003-03-07 Angus Leeming * insetcommand.C (localDispatch): * insetexternal.C (localDispatch): * insetfloat.C (localDispatch): * insetinclude.C (localDispatch): * insetminipage.C (localDispatch): * insetwrap.C (localDispatch): add LFUN_INSET_DIALOG_UPDATE to the switch. 2003-03-07 Angus Leeming * insetcommand.C (string2params): * insetexternal.C (string2params): * insetfloat.C (string2params): * insetinclude.C (string2params): * insetwrap.C (string2params): use LyXLeX more. * insetert.[Ch]: * insetexternal.[Ch]: * insetfloat.[Ch]: * insetinclude.[Ch]: * insetwrap.[Ch]: change Mailer::name_ to be static. * insetminipage.[Ch]: define a new class InsetMinipageMailer and use it to communicate with the frontend dialogs. 2003-03-06 Alfredo Braunstein * insettext.C: * insettabular.C: use LyXText::top_y() instead of LyXText::first_y 2003-03-06 Lars Gullik Bjønnes * insettext.C (updateLocal): un-const function (updateLocal): adjust (collapseParagraphs): un-const function (collapseParagraphs): adjust 2003-03-05 Angus Leeming * insetwrap.[Ch]: define a new class InsetWrapMailer and use it to communicate with the frontend dialogs. 2003-03-05 Angus Leeming * insetcollapsable.C (draw): cache the BufferView. * insetfloat.[Ch]: define a new class InsetFloatMailer and use it to communicate with the frontend dialogs. 2003-03-05 Angus Leeming * insetfloat.[Ch]: move the params into a separate InsetFloatParams struct. 2003-03-05 Angus Leeming * insetcommandparams.[Ch] (getAsString, setFromString): remove. * insetinclude.[Ch]: define a new class InsetIncludeMailer and use it to communicate with the frontend dialogs. 2003-03-05 Angus Leeming * insetexternal.[Ch]: define a new class InsetExternalMailer and use it to communicate with the frontend dialogs. 2003-03-04 Lars Gullik Bjønnes * insettext.C (collapseParagraphs): adjust (appendParagraphs): make it take a Buffer* instead of a BufferParams& as arg. (appendParagraphs): adjust 2003-03-04 Angus Leeming * insetbibitem.C (localDispatch): * insetbibtex.C (localDispatch): * insetcommand.C (localDispatch): * insetert.C (localDispatch): * insetlabel.C (localDispatch): handle LFUN_INSET_MODIFY, not LFUN_INSET_APPLY. 2003-03-04 Lars Gullik Bjønnes * insettext.C (latex): adjust for ParagraphList::iterator 2003-03-03 Lars Gullik Bjønnes * insetbutton.C (view): adjust for boost 1.30.0 * insetcollapsable.C (view): ditto * insetgraphics.C (statusChanged): ditto * insettext.h: move paragraphs to be public. 2003-03-02 Lars Gullik Bjønnes * insetnote.[Ch] (InsetNote): remove unused constructor 2003-02-28 Alfredo Braunstein * insetgraphics.C: added include "format.h" 2003-02-27 Angus Leeming * indexlabel.C: use a real, LyX dialog rather than that nasty Alert thingy. 2003-02-27 Angus Leeming * insetbibitem.C (localDispatch): * insetbibtex.C (localDispatch): * insetcommand.C: * insetert: collapse LFUN_XYZ_APPLY to LFUN_INSET_APPLY. 2003-02-26 Angus Leeming * insetbibitem.[Ch] (localDispatch): * insetbibtex.[Ch] (localDispatch): new method. Modify inset on receipt of LFUN_XYZ_APPLY. * insetcommand.C (localDispatch): act only on receipt of LFUN_XYZ_APPLY. * insetert.C (localDispatch): reformat. add LFUN_XYZ_APPLY to the switch. 2003-02-26 John Levon * insettext.C: use RowPainter * inset.h: make helpers take const * 2003-02-26 Angus Leeming * insetcommand.[Ch] (localDispatch): new method. 2003-02-26 Angus Leeming * insetinclude.C (draw): cache the BufferView* using cache not PreviewImpl::setView 2003-02-26 Alfredo Braunstein * insetgraphics.C (draw) * insetinclude.C (draw): Eliminate also the other argument (owner inset inset) in the call to PreviewImage::image 2003-02-25 Alfredo Braunstein * insetgraphics.C (draw) * insetinclude.C (draw): Eliminate Buferview argument in call to PreviewImage::image 2003-02-25 John Levon * insetgraphicsParams.h: * insetgraphics.C: don't start a load process if the inset is set to NoDisplay (bug #920) 2003-02-22 John Levon * insetfloat.C: * insetwrap.C: TocItem changed API (bug 913) 2003-02-21 Angus Leeming * insetcollapsable.[Ch] (cache, edit): * insetbutton.[Ch] (cache, edit): new methods to cache the BufferView in the draw method. * insetcommand.[Ch]: implement a new class, InsetCommandMailer, to simplify comunication between InsetCommand-derived classes and the Dialogs. * insetbibitem.[Ch]: * insetbibtex.[Ch]: * insetcite.[Ch]: * inseterror.[Ch]: * insetfloatlist.[Ch]: * insetindex.[Ch]: * insetref.[Ch]: * insettoc.[Ch]: * inseturl.[Ch]: small changes to reflect the new interface to the Dialogs code. * mailinset.[Ch]: new files. Base class to InsetCommandMailer and other, similar classes. * Makefile.am: add new files. 2003-02-21 Angus Leeming * updatableinset.h (setView, view): remove. * inset.h (view, cache): to be replaced by these. * insetbib.[Ch]: removed, to be replaced by insetbibitem.[Ch] and insetbibtex.[Ch]: * Makefile.am: replace insetbib.[Ch] with insetbibitem.[Ch] and insetbibtex.[Ch]. * inset.h: change BIBKEY_CODE to BIBITEM_CODE. 2003-02-21 Allan Rae * insetinclude.C (loadIfNeeded): ensure loading also works when child document is under version control. 2003-02-17 André Pönitz * insetbib.[Ch]: Adjust access to bibkeys 2003-02-14 Jean-Marc Lasgouttes * insetquotes.C (dispString): remove use of acute accent for "'" right quote. 2003-02-14 John Levon * insettabular.C: changed method names in tabular.C 2003-02-14 John Levon * inset.h: * inset.C: * insetcollapsable.h: * insetcollapsable.C: * insettabular.h: * insettabular.C: * insettext.h: * insettext.C: remove unused getParFromID() 2003-02-13 John Levon * insettext.h: * insettext.C: remove unused beginningofMainBody() 2003-02-08 John Levon * inset.h: * inset.C: * insetcollapsable.h: * insetcollapsable.C: * insettabular.h: * insettabular.C: * insettext.h: * insettext.C: add nextChange(). Make allowSpellcheck() const. Add markErased(). * insetert.C: ignore deleted text * insettabular.C: make sure to keep change tracking working properly. 2003-01-20 Michael Schmitt * insetert.C: * insetgraphics.C: * insettabular.C: * insettext.C: Use error messages with identical spelling and punctuation 2003-01-12 Michael Schmitt * insetgraphics.C (draw, width): Fix spacing around graphics inset 2002-12-17 Juergen Vigna * insettext.C (localDispatch): hopefully fixed cursor up down movement on leaving other insets. 2003-01-06 Michael Schmitt * insettext.C: fix inconsistent usage of spaces, colons, capitalization, and the like. 2002-12-18 Jean-Marc Lasgouttes * insetgraphics.C (prepareFile): do not remove the extension of the file name if it is not the default extension for the given format (that is, in latex output, remove extension from foo.eps, but not from foo.epsi) 2002-12-17 Alfredo Braunstein * insettext.C (lfunMouseRelease): hackish solution to the "double menu open" bug 2002-12-08 Lars Gullik Bjønnes * insetfloat.C (addToToc): use the floats name not its type * insetwrap.C (addToToc): ditto 2002-12-04 Jean-Marc Lasgouttes * insetnote.C (init): make label font smaller 2002-12-04 John Levon * insetinclude.C: ressurect setting of command name 2002-12-02 Lars Gullik Bjønnes * insetquotes.C (dispString): disambiguate insert call 2002-12-01 Lars Gullik Bjønnes * several files: ws changes 2002-12-01 Lars Gullik Bjønnes * insetquotes.C (dispString): use string::insert for prepending a char. 2002-11-21 Lars Gullik Bjønnes * insetparent.C (getScreenLabel): use boost::format * insetgraphics.C (prepareFile): use boost::format (ascii): ditto * insetfloatlist.C (latex): use boost::format * insetcaption.C (draw): use boost::format 2002-11-21 Dekel Tsur * insettabular.C (tabularFeatures): Support for block alignment in fixed width columns. 2002-11-20 Juergen Vigna * insettabular.C (resetPos): temporary fix for endless loop in this function on a redraw. 2002-11-04 Lars Gullik Bjønnes * insettabular.C (copySelection): STRCONV * insetinclude.C (uniqueID): STRCONV (latexString): ditto * insetgraphics.C: put VersionNumber inside anon namespace (createLatexOptions): STRCONV * insetcommandparams.C: include config.h 2002-10-31 Rob Lahaye * insetgraphicsParams.C (Write): use lyx::float_equal. Write height data correctly. (Read): zero scale when reading height data. 2002-10-30 John Levon * insetfloat.C (addToTOC): recursively traverse all contents looking for captions (fix #568) 2002-10-25 Jean-Marc Lasgouttes * insetexternal.C (doSubstitution): do not try to replace environment variables, this is done when executing the command 2002-10-24 Jean-Marc Lasgouttes * insetexternal.C (doSubstitution): change order of substitution to work around ReplaceEnvironmentPath brokenness 2002-10-24 Rob Lahaye * insetgraphicsParams.h (scale): is now a float, not an unsigned int. * insetgraphicsParams.C (init, Write): associated changes * insetgraphics.C (createLatexOptions): use lyx::float_equal with InsetGraphicsParams::scale. 2002-10-21 John Levon * inset.h: remove unused DISPATCH_RESULT * insettext.C: sgml open/close tag now in sgml namespace 2002-10-21 Angus Leeming * insetgraphics.C (draw): Fix the drawing of an inset with a relative file path subdir/fig.eps when pasting it into a buffer in a different directory. 2002-10-16 John Levon * insetspecialchar.C: remove \\protected_separator parsing 2002-09-25 Juergen Spitzmueller * insetquote.C: fix LaTeX output of quotation marks. 2002-10-14 Juergen Vigna * insettext.C (localDispatch): remove double setUndo in Cut/Delete/ Backspace functions which confused the Undo handling. 2002-10-09 Angus Leeming * insetcite.[Ch] (setLoadingBuffer): new method, invoked by BufferView::dispatch that turns off this optimisation when a new inset is inserted. * insetcite.C (getNatbibLabel): correct logic of when and when not to reload the BibTeX keys. 2002-10-11 André Pönitz * insettext.h: handle LFUN_PRIOR/NEXT 2002-07-30 Juergen Spitzmueller * insetfloat.C: fix bug with float settings (document default != float default). 2002-09-24 Dekel Tsur * insetwrap.C (addToToc): New method. (InsetWrap): Set layout to caption. 2002-09-24 Lars Gullik Bjønnes * Makefile.am (INCLUDES): loose SIGC_INCLUDES 2002-09-16 John Levon * insettabular.h: hasSelection() needs to be public 2002-09-12 Rob Lahaye * insetgraphicsParams.C: use empty string as default for rotateOrigin 2002-09-10 Rob Lahaye * insetgraphicsParams.C: use empty string as default for rotateOrigin 2002-09-11 André Pönitz * insettabular.C: implement LFUN_WORDSEL 2002-09-10 John Levon * insetinclude.h: remove unused param 2002-09-09 John Levon * insetinclude.h: * insetinclude.C: remove noload, default to input 2002-09-29 Martin Vermeer * insetgraphics.C: disfuscated use of ']' in built output string. 2002-09-06 Lars Gullik Bjønnes * remove all INHERIT_LANG and INHERIT_LANGUAGE commented code. 2002-08-29 Juergen Vigna * insettabular.C (lfunMousePress): Pay attention where you set the x/y values as they depend on which inset in the tabular is actually locked. So you surely have to reset them if you (un)lock a inset! 2002-08-29 André Pönitz * insetfootlike.h: rename include guard to ALL CAPS * insettext.C: swap object and first parameter for checkInsetHit calls as this functions has moved from BufferView to LyXText 2002-08-28 Rob Lahaye * insetgraphicsParams.C: remove local displayTranslator and use the one from graphics/GraphicsTypes.h. 2002-08-27 Jean-Marc Lasgouttes * insetfloat.C (wide): add BufferParams parameter * insetfloatlist.C (read): (latex): (getScreenLabel): * insetfloat.C (latex): (floatname): * insetcaption.C (draw): use LyXTextClass::floats() 2002-08-26 Lars Gullik Bjønnes * insetoptarg.h: add std:: qualifier. 2002-08-26 Juergen Vigna * insettext.C (localDispatch): ditto. * insettabular.C (localDispatch): fixed mouse pressing lfuns. 2002-08-25 John Levon * inseturl.C: elide long URLs (bug 404) 2002-08-23 Rob Lahaye * insetgraphics.[Ch]: remove InsetGraphics::readFigInset() remove "Format Version " string from inset header * insetgraphics.C: * insetgraphicsParams.[Ch]: Implement new graphics dialog * insetgraphicsParams.C: keepLyXAspectRatio, width and height are not a member of "grfx::Params" anymore. * insetminipage.C: apply changes to "enum UNIT" in src/lyxlength.h 2002-08-24 John Levon * insetoptarg.h: * insetoptarg.C: ws, pedantry ... 2002-08-21 Lars Gullik Bjønnes * insettext.C (collapseParagraphs): pasteParagraph now in global scope (appendParagraphs): ditto 2002-08-21 Dekel Tsur * insetcite.C (latex): Remove spaces only after commmas. 2002-08-21 Lars Gullik Bjønnes * insettext.C: remove NO_COMPABILITY stuff 2002-08-15 Lars Gullik Bjønnes * insettext.C (edit): use ParagraphList iterators * insetbib.C (bibitemMaxWidth): use ParagraphList iterators (bibitemWidest): ditto 2002-08-14 Lars Gullik Bjønnes * insettext.C: include add using std::for_each (saveLyXTextState): use ParagraphsList::iterator (init): use for_each on paragraphlist iterators (InsetText): remove superflous setting cached_bview to 0 (latex): reformat a bit (ascii): use paragraphlist iterators (validate): use for_each + boost bind (getLabelList): use paragraphlist iterators (deleteLyXText): use for_each + boost::bind (resizeLyXText): ditto (reinitLyXText): ditto (removeNewlines): use paragraphlist iterators (getParFromID): ditto (paragraph): use for_each + boost::bind (getInsetFromID): use paragraphlist iterators (getLabelList): typo fix 2002-08-14 Lars Gullik Bjønnes * insettext.C (read): assign tmp to paragraphs after return from call to parseSingleLyXformat2Token 2002-08-13 Angus Leeming * insetbib.C: * insetcite.C: * inseterror.C: * insetert.C: * insetexternal.C: * insetfloat.C: * insetfloatlist.C: * insetgraphics.C: * insetinclude.C: * insetindex.C: * insetminipage.C: * insetparent.C: * insetref.C: * insettabular.C: * insettext.C: * insettoc.C: * inseturl.C: changes due to the changed LyXView interface that now returns references to member variables not pointers. 2002-08-13 Angus Leeming * inset.h: * insetcollapsable.h: * insetert.h: * insettabular.h: * insettext.h: forward-declare WordLangTuple (selectNextWordToSpellcheck) constify return type. * inset.C: * insetcollapsable.C: * insetert.C: * insettabular.C: * insettext.C: #include "WordLangTuple.h" and rearrange included files. 2002-08-12 Angus Leeming * insetgraphicsParams.C: fix reading of lyxsize_type in 1.2.0 documents. 2002-08-12 Juergen Vigna * insetcollapsable.C (edit): ignore if entered when pressing mouse button 3. 2002-08-12 Lars Gullik Bjønnes * insetbib.C (bibitemMaxWidth): ParagraphList changes (bibitemWidest): ditto * insettext.[Ch]: ditto 2002-08-10 Lars Gullik Bjønnes * insettext.C, insetert.C: use Paragraph::empty where appropriate 2002-08-09 Angus Leeming * insetinclude.C (latexString): remove fudge now that I've found out how to enable LaTeX to find the file using input@path. 2002-08-09 John Levon * insettext.h: * insettext.C: remove unused xpos 2002-08-07 Juergen Vigna * insettabular.C (localDispatch): make delete not put the stuff in the clipboard only do this on a cut operation. * insettext.C (localDispatch): make delete and backspace not put selected stuff to the clipboard. 2002-08-07 André Pönitz * inset.[Ch]: * insetcollapsable.[Ch]: * insetert.[Ch]: * insetparent.[Ch]: * insetref.[Ch]: * insettabular.[Ch]: * insettext.[Ch]: change (kb_action, arg) pair into a FuncRequest 2002-08-06 John Levon * inset.h: * inset.C: * insetcollapsable.h: * insetcollapsable.C: * insetert.h: * insetert.C: * insettabular.h: * insettabular.C: * insettext.h: * insettext.C: use WordLangTuple for spellcheck 2002-08-06 Angus Leeming * insetinclude.C: add a monitor to the previewed image, so that the image is refreshed if the \input-ed file changes. 2002-08-04 John Levon * inset.h: * insetnote.h: s/IGNORE_CODE/NOTE_CODE/ 2002-08-02 Angus Leeming * insetcommandparams.[Ch] (preview): new methods returning and setting a new bool preview_ flag. (read): read this flag. (operator==): add flag to check. * insetinclude.C (write): output new preview() flag. (previewWanted): use this flag. 2002-08-02 Angus Leeming * insetcollapsable.[Ch] (addPreview): * insettabular.[Ch] (addPreview): * insettext.[Ch] (addPreview): new methods. Can now generate previews for insets in insets. 2002-08-02 Angus Leeming * insetcite.C: fix typo. * insetgraphics.C: kill current_view and instead cache the BufferView as a weak_ptr. * insetinclude.C: kill current_view and pass the BufferView to the PreviewedInset so that it can cache it. 2002-08-01 Angus Leeming * inset.h (generatePreview): renamed as addPreview. (generatePreview): new method. Allows code to be moved out of math_nestinset.C and into the new PreviewedInset class. * insetinclude.[Ch] (ascent, descent, width, draw, addPreview): add previews to the inset when \input-ing LaTeX. 2002-07-29 Lars Gullik Bjønnes * several files: strip,frontStrip -> trim,ltrim,rtrim 2002-07-28 Lars Gullik Bjønnes * insetbib.C (latex): modify because of strip changes (getKeys): ditto * insetnote.C (InsetNote): ditto 2002-07-26 Juergen Vigna * insettabular.C (searchForward): check for lastcell if we had a locking inset. 2002-07-25 Juergen Vigna * insettabular.C (insetMotionNotify): Don't update the screen if we didn't do nothing. (searchForward): last cell was not checked. 2002-07-25 Dekel Tsur * insetfloat.C (read, write): Allow default placement (floatPlacement_ is empty). 2002-07-23 Jean-Marc Lasgouttes * insetminipage.h (noFontChange): * insettabular.h (noFontChange): * insetfootlike.h (noFontChange): * insetfloat.h (noFontChange): return true * inset.h (noFontChange): new method, defaulting to false 2002-07-22 Herbert Voss * insetgraphicsParams.[Ch]: support size_type for old docs 2002-07-22 Herbert Voss * insetgraphics.C: * insetgraphicsParams.[Ch]: change size_type to size_kind and other small changes 2002-07-21 Jean-Marc Lasgouttes * insettext.h: do not include "paragraph.h" and "lyxcursor.h" * insetlatexaccent.h: do not include "lyxlex.h" * insetgraphicsParams.h: do not include "lyxlex.h" and "buffer.h" * insetquotes.C: * insetlatexaccent.C: * insetgraphics.C: * insetexternal.C: * insetert.C: * insetbib.C: #include "lyxlex.h" * insetinclude.C: * insetfloat.C: * insetert.C: * insetbib.C: * insettext.C: use BufferParams::getLyXTextClass * insetfloat.C (addToToc): new method. Add to toclist the entries corresponding to Caption layouts (InsetFloat): when creating a new float, set the layout to "Caption" 2002-07-21 Herbert Voss * insetgraphicsParams.C: fet the keepLyXAspectRatio run. Move the image relevant part into graphics/GraphicsImgae.C 2002-07-21 Jean-Marc Lasgouttes * insettoc.C (ascii): * insetfloatlist.C (ascii): change to use the new Toc functions instead of stuff that was in Buffer 2002-07-20 Jean-Marc Lasgouttes * insettext.C (localDispatch): BufferView::Dispatch has been renamed to BufferView::dispatch 2002-07-19 Jean-Marc Lasgouttes * insetgraphicsParams.C (as_grfxParams): use the new keepLyXAspectRatio parameter. Note that this is an adaptation of a 1.2.0 patch, and I do not really know how to adapt it to the new grfx::Cache world. Angus, please could you have a look? 2002-05-01 Herbert Voss * insetgraphicsParams.[Ch]: define a new keepLyXAspectRatio parameter. 2002-07-18 Angus Leeming * insetgraphics.C: clean-up comments (from Herbert). add a new checksum variable to the cache. Use it in PrepareFile. (draw): start monitoring the file for a change. (prepareFile): re-arrange a little to avoid unnecessary steps. 2002-07-17 Angus Leeming * insetgraphics.C (Cache c-tor): bind to the GraphicsLoader through a method rather than to the signal directly. 2002-07-17 John Levon * insettext.C: use view_state_changed, switchKeyMap 2002-07-17 Herbert Voss * insetgraphics.C (prepareFile): keep the extension when exporting to nice file 2002-07-15 Jean-Marc Lasgouttes * insetcite.C (getNatbibLabel): * insetbib.C (getKeys): use ascii_lowercase instead of lowercase 2002-07-15 John Levon * insetgraphics.C: use ->isDrawable() 2002-07-12 Angus Leeming * insetgraphics.C: use the new smart loading capabilities of the image loader. 2002-07-13 Dekel Tsur * insettabular.C (edit): Move into correct cell when entering a tabular in * insettext.C (unlockInsetInInset): Correct cursor behaviour for RTL paragraphs. 2002-07-05 Angus Leeming * inset.h (generatePreview): new virtual method. 2002-07-04 Lars Gullik Bjønnes * insetcommandparams.[Ch] (operator=): move out of class (operator!): move out of class 2002-07-04 André Pönitz * insetcommandparams.[Ch]: new files * insetcommand.[Ch]: move code to insetcommandparams.[Ch] 2002-06-15 Herbert Voss * insetgraphics.C (prepareFile): bugfix; return always files without extension 2002-06-28 Angus Leeming * insetgraphicsParams.[Ch]: forward declare grfx::Params. rename asGParams -> as_grfxParams. * insetgraphics.C: reflect above change. 2002-06-26 Angus Leeming * insetgraphics.h: use boost::scoped_ptr in preference to std::auto_ptr. 2002-06-26 Angus Leeming * insetgraphics.C: moved the image loading stuff into a new class grfx::Loader. Simplifies this file enormously. * insetgraphics.h: no longer #include "graphics/GraphicsTypes.h". * insetgraphicsParams.C: changes aassociated with moving grfx::DisplayType out of grfx::GParams. 2002-06-26 André Pönitz * insetgraphics.C: use os::external_path where necesaary according to a patch from Claus Hentschel) 2002-06-25 Angus Leeming * insetgraphics.[Ch]: The inset now assumes the responsibility for generating a pixmap once the graphics file is loaded into memory. The current_view ugliness that was in grfx::ModifiedImage has been moved here now that grfx::ModifiedImage is no more. 2002-06-24 Lars Gullik Bjønnes * insettext.C: layout as layout 2002-05-28 André Pönitz * insetfloatlist.h: remove source of compiler warning * insetref.C: tiny whitespace 2002-06-15 Herbert Voss * insetgraphics.C: (prepareFile) fix bug with zipped eps-files and take always convert when no userdefined converter was found (latex) small changes in the lyxerr output 2002-06-15 LyX Development team * inset*.[Ch] (docbook): Added new argument to take the pernicious mixed content. Small white spaces clean. 2002-06-14 Angus Leeming * inseetexternal.C: remove the using std::difftime declaration. 2002-06-13 Edwin Leuven * insetquotes.C: change lyxfont::draw to font_metrics::draw 2002-06-12 Vitaly Lipatov * insetquotes.C (draw): fix drawing of double quotes 2002-06-12 John Levon * insettabular.C: s/scrollCB/scrollDocView/ 2002-06-12 John Levon * insettext.C: change of topCursorVisible() prototype 2002-06-12 John Levon * insettext.h: * insettext.C: rename/change of LyXScreen 2002-06-07 Angus Leeming Fixes needed to compile with Compaq cxx 6.5. * insetexternal.C: all c-library variables have been moved into namespace std. Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block. 2002-06-05 Jean-Marc Lasgouttes * insetinclude.C (uniqueID): * insetgraphics.C (uniqueID): renamed from unique_id, since this conflicted with some AIX headers. 2002-05-31 Juergen Vigna * insetert.C (get_new_label): add '...' for multi-paragraph ert insets too (update) new method 2002-05-30 Lars Gullik Bjønnes * insetexternal.C (clone): fix () bug when using new (updateExternal): don't only look for difftime in global scope 2002-05-30 John Levon * insettabular.C: add const 2002-05-29 Jean-Marc Lasgouttes * insetgraphicsParams.C (Read): use lyxlex::eatLine to read the file name, in case there are weird characters like ',' in there. (bug #407) 2002-05-29 Lars Gullik Bjønnes * switch from SigC signals to boost::signals. 2002-05-28 André Pönitz * insets/insetgraphicsParams.[Ch]: put in inset related stuff from src/graphic 2002-05-26 John Levon * inset.C: * inset.h: * insetbib.C: * insetbib.h: * insetcite.h: * insetcite.C: * insetcollapsable.C: * insetcollapsable.h: * inseterror.C: * inseterror.h: * insetert.C: * insetert.h: * insetexternal.C: * insetexternal.h: * insetfloatlist.C: * insetfloatlist.h: * insetgraphics.C: * insetgraphics.h: * insetinclude.C: * insetinclude.h: * insetindex.C: * insetindex.h: * insetlabel.C: * insetlabel.h: * insetparent.C: * insetparent.h: * insetref.C: * insetref.h: * insettabular.C: * insettabular.h: * insettext.C: * insettext.h: * insettoc.C: * insettoc.h: * inseturl.C: * inseturl.h: use mouse_state. Kill insetKeyPress 2002-05-24 John Levon * insetbib.C: * insetbutton.C: * insetcaption.C: * insetcollapsable.C: * inseterror.C: * insetgraphics.C: * insetlatexaccent.C: * insetquotes.C: * insetspecialchar.C: * insettabular.C: * insettext.C: name change for font metrics 2002-05-24 Juergen Vigna * insetgraphics.h: include inset.h first (for LString.h) 2002-05-23 John Levon * insettext.C: screen moved 2002-05-23 John Levon * insetbib.C: * insetcite.C: * inseterror.C: * insetert.C: * insetexternal.C: * insetfloat.C: * insetfloatlist.C: * insetgraphics.C: * insetinclude.C: * insetindex.C: * insetminipage.C: * insetparent.C: * insetref.C: * insettabular.C: * insettext.C: * insettoc.C: * inseturl.C: LyXView moved into frontends/ 2002-05-23 John Levon * inset.C: * insetbutton.C: * insetcaption.C: * insetcollapsable.C: * insetcommand.C: * inseterror.C: * insetgraphics.C: * insetgraphicsParams.C: * insetlatexaccent.C: * insetquotes.C: * insetspecialchar.C: * insettabular.C: * insettext.C: move Painter to frontends/ 2002-05-22 Lars Gullik Bjønnes * insettabular.h: use more specific smart_ptr header. * insettext.h: ditto * insetgraphics.C (InsetGraphics): change call of shared_ptr::reset (draw): ditto 2002-05-15 John Levon * insettext.C: clear selection on paste (bug 393) 2002-05-11 Dekel Tsur * insettext.C (latex): Honor the moving_arg argument. 2002-04-22 Jean-Marc Lasgouttes * insetfoot.C (latex): if a footnote is in a title layout, then it is a \thanks. And then, its contents is a moving argument. 2002-05-14 Juergen Vigna * insetcollapsable.C (InsetCollapsable): forgot to initialize first_after_edit. 2002-05-09 Angus Leeming * Insetcite.C (getNatbibLabel): don't disable natbib label support when using options "Full author list" or "Upper case". 2002-05-14 Herbert Voss * insetgraphics.C (prepareFile): allow files with same name in different dirs (readFigInset): set the flags from old figinset in the right manner (findTargetFormat): more comments 2002-05-14 Juergen Vigna * insettext.C (edit): tell checkAndActivateInset() that we don't have a button press. (checkAndActivateInset): if button < 0 we don't have a button press on the inset and os we won't call edit on it if it's not a Highly editable inset (then we have to enter it). 2002-05-13 Juergen Vigna * insetcollapsable.C (insetButtonRelease): returned wrong return value. 2002-05-09 Juergen Vigna * insetcollapsable.C (edit): first_after_edit should only be set to true if we enter this inset and it was collapsed so we open it up. This is needed to reclose it after a search/replace or spellcheck function opened it and was negative. 2002-05-09 Dekel Tsur * insetfloat.C (latex): Return correct value. 2002-05-04 Herbert Voss * InsetgraphicsParams.C (read): fix bug with WH 2002-05-05 Dekel Tsur * insetfloat.C (latex): More sensible latex output (fix the problem with endfloat). 2002-05-02 José Matos * insetgraphics.C (validate): acess params as everyone else. 2002-05-03 Juergen Vigna * insettabular.C (fitInsetCursor): recalculate the cursor position if I request it. 2002-05-01 Angus Leeming * InsetgraphicsParams.[Ch]: whitespace. 2002-04-28 Dekel Tsur * insetfloatlist.C (getScreenLabel): Fix crash in the case where float type do not exist. 2002-04-28 Herbert Voss * insetgraphics.C (latex): fix bug with missing file-extension. LaTeX still allows a missing "eps" or "ps". 2002-04-26 Angus Leeming * insetfloat.C (c-tor, wide): translate the name of the float. 2002-04-22 Angus Leeming * insetcite.[Ch]: take Herbert's patch to give WYSIWYG citation labels when using natbib and make it work efficiently. Must emphasise that the real work is Herbert's. 2002-04-23 Herbert Voss * insetgraphic.C (prepareFile): fix bug with overwriting and deleting an existing *.eps-file in the doc-dir 2002-04-23 Juergen Vigna * insettabular.C (drawCellSelection): fix off by 1 error. 2002-04-22 Juergen Vigna * insettabular.C (setFont): rewoke full selection if it was asked, after we changed all we had to change. * insettext.C (insetUnlock): code was uninitialized in some situations. 2002-04-19 Herbert Voss * insetgraphic.C (prepareFile): return filename without extension if we only export without compiling 2002-04-19 Juergen Vigna * insettext.C (draw): call a fullRebreak on the row where we had a change and reset the cursor and selection-cursors. * insettabular.C (insetUnlock): (insetButtonPress): call an update before setting the_locking_inset = 0 as otherwise we don't repaint! (update): reset the cursor position when we changed dimensions as otherwise our cursor may be on the wrong spot. 2002-04-18 Juergen Vigna * insettabular.C (localDispatch): repaint the cell if it was unlocked. (unlockInsetInInset): set the_locking_inset to 0 only AFTER we made the redraw otherwise we won't redraw. * insettext.C (draw): fixed the setting of LyXText::first_y it was not really right before, but I only discovered this with the last changes to Page up/down. 2002-04-17 Juergen Vigna * insettext.C (checkAndActivateInset): simplified as we now have the edit(bv, bool) call. * insettext.h: changed behind variables to front variables to be equal to the one in the edit call (as it is for that they are used). 2002-04-16 Angus Leeming * insetnote.h (ascii): overide the InsetCollapsable::ascii method to not output anything at all! 2002-04-16 Juergen Vigna * insettabular.C (insetButtonPress): (insetUnlock): call a redraw on unlocking the cell inset. * insettext.C (insetButtonPress): same as below. (lockInset): new function to set initial values when inset should be locked. (insetButtonPress): use above function. (insetUnlock): don't force a repaint only set the updateStatus. The outside world should repaint if it thinks it should be done! * insettabular.C (insetButtonPress): init values if not set as locked as we are locked if someone presses on us and don't call the edit() call of the InsetText to lock it do it as BufferView does it! * inset.h (insetInInsetY): make func const and return an int. * insettext.C: * insettabular.C: * insetcollapsable.C: adapt the above changed function. 2002-04-15 Juergen Vigna * insettext.C (getCursorPos): return relative position as to be able to give them directly to the edit() call. (edit): we have to set also x_fix as it is not set inside the setCursorFromCoordinates call! (insetMotionNotify): ditto. 2002-04-16 Angus Leeming * insetbib.C (getKeys): strip leading '\t's from the line too. With thanks to Henry Pfister . 2002-04-12 Juergen Vigna * insettext.h: added cix() helper function and use it where appropriate 2002-04-12 Jean-Marc Lasgouttes * insetgraphics.C (prepareFile): fix bug when graphics is a relative path 2002-04-12 Juergen Vigna * insettext.C (insertInset): remove unneeded code! (updateLocal): fitCursor() fixes. (collapseParagraphs): fix a possible problem when having a selection and collapsing the paragraphs. 2002-04-08 Herbert Voss * insetgraphic.C (write): write the rotating angle as a float as is. test only for != 0.0 2002-04-11 Juergen Vigna * insettext.C: new function ciy() and use it for setting inset_y. * insetert.C (draw): fix the x return for collapsed version. 2002-04-07 Herbert Voss * insetgraphic.C (readFigInset): fix bug with subcaption and rotating 2002-04-08 Herbert Voss * insetgraphicsparam.C: forgot special option and delete old 1.2.0 stuff 2002-04-05 Juergen Vigna * insettext.C (localDispatch): make a CURSOR update if we inserted a character. 2002-04-04 Jean-Marc Lasgouttes * insetfloatlist.C (getScreenLabel): (latex): use Floating::listName (validate): new method 2002-04-03 José Matos * insetlabel.C (docbook): the anchor is an empty element in docbook. * insetfoot.[Ch] (docbook): added forgotten method. 2002-04-03 Juergen Vigna * insettext.C (insetButtonPress): fix insetButtonPress events the same way as in Bufferview_pimpl. 2002-04-03 Allan Rae * insetgraphics.C (latex): one % too many makes living on the bleeding edge fun with less than 30 minutes to a meeting with a PhD supervisor. 2002-03-28 Herbert Voss * insetgraphic.C (latex): simplify the code for the latex output when the file doesn't exist 2002-03-29 Juergen Vigna * insettext.C (updateLocal): fixes to fitCursor calls when locking/ unlocking inset. * insettabular.C (edit): call fitCursor(). * insettext.C (insetButtonPress): change behaviour of no_selection to the one in the BufferView selection_possible and fix the spurious selection bug with it. (localDispatch): revoke selection on BREAK... functions. 2002-03-28 Jean-Marc Lasgouttes * insetfloatlist.C (getScreenLabel): translate the GUI label. 2002-03-28 Juergen Vigna * insettabular.C (insetAllowed): return true as default value otherwise we're not able to insert insets inside paragraphs of an not locked insettext! 2002-03-27 Herbert Voss * insetgraphicsparam.C: change c%, p% to col%, page% 2002-03-27 Jean-Marc Lasgouttes * insetspecialchar.C (isLineSeparator): disable the nice code to allow linebreaks after hyphenation and menu separators. 2002-03-26 Herbert Voss * insetgraphics.C (figinsetRead): set the right lyxview 2002-03-26 Angus Leeming * insetgraphicsParams.C (latexify): use \textbackslash in preference to $\backslash$ and pass a "string const &" to the function. (prepareFile, latex): use Path rather than MakeAbsPath. 2002-03-26 Angus Leeming * insetgraphicsParams.C (Read): revert Herbert's fix and apply the proper fix to the graphics cache. (latex): "really" nice output if the file is not found ;-) 2002-03-26 Juergen Vigna * insettext.C (setText): added a LyXFont param and call reinitLyXText() (collapseParagraphs): fixed inserting of separator ' ' * insettabular.C (insertAsciiString): only check for buffer lenght not if we have \t or \n inside the buffer as if we don't have we only have 1 cell and that's it! * insetert.C (close): don't collapse if inlined. 2002-03-25 Herbert Voss * insetgraphicsParams.C (Read): prevent LyX from hanging if the graphics file does not exist. 2002-03-25 Angus Leeming * insetgraphics.C (prepareFile): ensure that the file has an absolute path when preparing export. * insetgraphicsParams.[Ch] (Write): no longer passed Buffer *, as we no longer MakeRelPath. 2002-03-22 Angus Leeming * insetgraphics.[Ch] (c-tor, setParams, updateInset): passed filepath. Used to determine the absolute path to the graphics file in the graphics cache and only in the graphics cache. (readInsetGraphics, readFigInset) : no longer passed buffer. Do not make graphics file name absolute if it is stored as a relative path. * insetgraphicsParams.[Ch] (Read): no longer passed buffer. Do not make graphics file name absolute if it is stored as a relative path. * insettext.C (edit): emit an updateParagraph signal on entering a text inset. Needs to be emitted when leaving the inset also. 2002-03-21 Lars Gullik Bjønnes * all files: ws cleanup * Makefile.am: remove ld -r stuff 2002-03-21 Juergen Vigna * insettext.C (appendParagraphs): new function added to append the paragraphs to this insets paragraphs. 2002-03-20 Lars Gullik Bjønnes * Makefile.am: special rules if partial linking 2002-03-19 Juergen Vigna * insetgraphics.C (draw): fixed the setting of CHANGED_IN_DRAW! 2002-03-18 Angus Leeming * insetgraphics.C: Clean up Baruch's comments a little. (c-tor): remove code setting id_, as it's set in the Inset c-tor. 2002-03-14 John Levon * insettabular.C: * insettheorem.C: wrap warnings * insetgraphics.C: improve messages, move cached_status_ setting to safer place 2002-03-18 Juergen Vigna * insettabular.C (unlockInsetInInset): removed unneeded showCursor calls. (localDispatch): ditto * insettext.C (edit): removed unneeded showCursor calls. (localDispatch): ditto. 2002-03-13 Jean-Marc Lasgouttes * insetgraphics.h: remove display() method. 2002-03-11 Juergen Vigna * insetgraphics.C (draw): hack to fix the redrawing bug. (draw): seems this fixes #268 (force redraw of row if we changed). * insettext.C (updateInsetInInset): fixed for updates in insets inside this inset text (don't know why I missed this earlier). 2002-03-08 Juergen Vigna * insettabular.C (updateLocal): do a FULL update if we're not locked and only a CELL update is asked. * insettext.C (updateInsetInInset): update insets inside inset also if it isn't inside the_locking_inset. * insettabular.C (updateInsetInInset): ditto. 2002-03-06 Jean-Marc Lasgouttes * insetexternal.C (doSubstitution): check whether we are using a temp dir for defining $$FPath 2002-03-07 Angus Leeming * insettabular.C: * insettext.C: remove #include "WorkArea.h". 2002-03-06 Juergen Vigna * insettext.C (draw): fixed frame redrawing. (clear): forgot to set the inset_owner of the paragraph. * insetert.C (status): pay attention the bv can be 0 here! (getMaxWidth): add the default leftMargin 2002-03-06 Lars Gullik Bjønnes * insetert.C (getMaxWidth): make w unsigned int. 2002-03-05 Juergen Vigna * insetert.C (status): change behaviour of Inlined. (getMaxWidth): added for new inlined behaviour. 2002-03-05 José Abílio Oliveira Matos * insetnote.h (linuxdoc, docbook): add empty methods. * insetinclude.C (validate): fix a case where buffer->niceFile was used before being initialized. 2002-03-05 Juergen Vigna * insettext.C (insetButtonPress): don't call exit on a InsetButtonPress only that one in the inset. Should be enough. (updateLocal): set the selection cursor always if we don't have a selection to be sure it's set! * insettabular.C (insetButtonPress): don't hit a sub inset 2 times. 2002-03-04 Lars Gullik Bjønnes * insettext.C (clear): a gross hack to set layout on a newly created paragraph. 2002-03-04 Juergen Vigna * insettabular.C (localDispatch): inserted handling of LFUN_FILE_INSERT_ASCII_PARA and LFUN_FILE_INSERT_ASCII. (insertAsciiString): new helper function. 2002-03-04 Jose Abilio Oliveira Matos * insetinclude.C (linuxdoc, docbook): deal correctly with the niceFile argument. 2002-03-03 Lars Gullik Bjønnes * insettext.C (InsetText): initalize newly created par with default layout. add bufferparams parameter first -> first_y * insetcaption.[Ch] (InsetCaption): add BufferParams parameter * insetcollapsable.[Ch] (InsetCollapsable): ditto * insetert.[Ch] (InsetERT): ditto * insetfloat.[Ch] (InsetFloat): ditto * insetfoot.[Ch] (InsetFoot): ditto * insetfootlike.[Ch] (InsetFootLike): ditto * insetmarginal.[Ch] (InsetMarginal): ditto * insetminipage.[Ch] (InsetMinipage): ditto * insetnote.[Ch] (InsetNote): ditto * insettabular.[Ch] (InsetTabular): ditto + adjust for tabular changes 2002-03-02 Lars Gullik Bjønnes * insettext.C: layout as string * insetinclude.C: layout as string * insetert.C: layout as string * insetbib.C: layout as string 2002-02-28 Angus Leeming * insetert.C: * insettabular.C: remove #include "lyx_gui_misc.h". 2002-02-26 John Levon * Makefile.am: * figinset.h: * figinset.C: * inset.h: remove figinset, yahoo ! 2002-02-28 Angus Leeming * insetgraphics.C (c-tors): initialise parent classes explicitly in copy c-tor and initialise member variables in the correct order. 2002-02-28 Juergen Vigna * insettabular.C (localDispatch): clear selection on PgUp/Down. 2002-02-28 Jean-Marc Lasgouttes * inset.h: ... and add a better one here. * insetcommand.C (insetButtonRelease): remove that one which was a bit broken... 2002-02-27 Jean-Marc Lasgouttes * insetcommand.C (insetButtonRelease): ... and move it here. * inseturl.h: remove insetButtonRelease from there... 2002-02-26 Juergen Vigna * inseturl.h: Added a insetButtonRelease call returning true as prove of concept. * insetlabel.C (edit): Fixed wrong update handling after change I leave in the wrong code for the one who wrote it to remove and have a look what he did wrong. * insettabular.C (localDispatch): force a SELECTION update if we had a selection and we passed the event down to the inset (fix #213) (localDispatch): handle font changing stuff when we have a cell selection so that the selection is not rewoked. I don't really like this fix, but it's the only way I see to do it right now. 2002-02-22 Juergen Vigna * insettext.C (insetUnlock): set the cursor to the second paragraph if available and if the first one is empty (fix #191). 2002-02-20 Juergen Vigna * insettext.C (getDrawFont): implemented this function to call the one of the owner if present as the owner normally knows what to do with us. * insetert.C: implement getDrawFont() function and comment out all the crap for setting a special latex font inside this inset. (InsetERT): added a Lanugage parameter to this constructor. * inset.h: added function getDrawFont(LyXFont & font) to be able to change the font for being drawn on screen (used only in InsetERT for now). * insettabular.C (draw): clear the parts around a cellinset ALWAYS and also above (was missing). (updateLocal): don't remove the cell selection if we have one this should be done where we really want to remove it. 2002-02-20 José Matos * insetinclude.h: include_label made string const. * insetinclude.C (InsetInclude): moved include_label initialization. (linuxdoc): (docbook): (validate): fix support for temporary directory, for docbook and linuxdoc. * insetgraphics.h : new private member, graphic_label, that holds the entity name that defines the graphics location (SGML). * insetgraphics.C (unique_id): new function to give a unique label for graphic. (docbook): (validate): the file locatation is given by an entity reference. 2002-02-18 Herbert Voss * insetgraphics.C: use [Debug::GRAPHICS] for lyxerr 2002-02-18 Angus Leeming * insetexternal.C Changes due to the renaming of support/syscall.[Ch] as support/systemcall.[Ch] and of class Systemcalls as class SystemCall. 2002-02-18 José Matos * insetinclude.C (validate): some code only applies to latex buffers, it was made conditional. 2002-02-12 Herbert Voss * insetgraphics.C: (prepareFile) do not check at this time if the file is present. 2002-02-12 Herbert Voss * insetgraphics.C: latex(), return the correct newlines 2002-02-13 José Matos * inseturl.C (docbook): escape & in url. 2002-02-13 Jean-Marc Lasgouttes * insetspecialchar.C (isLineSeparator): line breaking is allowed after HYPHENATION and MENU_SEPARATOR * inset.h (isLineSeparator): new method, returns false by default. 2002-02-12 Jean-Marc Lasgouttes * insetert.C (status): do not update the text inset, but the ERT inset. 2002-02-11 John Levon * insetnote.C: use notebg for background 2002-02-08 Herbert Voss * insetgraphic.C: * insetgraphicsParams.[Ch]: adding new Option noUnzip to prevent LyX from unzipping when this should be handled by latex vis the graphic.cfg. clean up the code 2002-02-08 Herbert Voss * insetgraphic.C: prepareFile(): fix bug when file doesn't exists, than return filename with extension 2002-02-06 Herbert Voss * insetgraphic.C: prepareFile(): don't convert the file, when it's not viewed in LyX. Saves a lot of time when opening a document! 2002-02-05 Herbert Voss * insetgraphic.C: * insetgraphicsParams.[Ch]: some cosmetic changes to latex output and adding a rotate bool similiar to subcaption 2002-02-04 Herbert Voss * insetgraphic.C: * insetgraphicsParams.[Ch]: add a LyXView-scale to have a similiar view to the LaTeX one. Get zipped files work. 2002-02-04 Angus Leeming * insetgraphicsParams.C (init): set display to DEFAULT. No longer #include "lyxrc.h". 2002-02-04 Angus Leeming * insetgraphics.C (readFigInset): comment out the "zippedFile" stuff for now (so that the code compiles). 2002-02-02 Herbert Voss * insetgraphic.C: delete inVariant() and some minor changes * insetgraphicsParams.[C]: 2002-02-01 Angus Leeming * insetgraphics.C (updateInset): if params.display == DEFAULT, interogate lyxrc.display_graphics before diaplaying the graphic. * insetgraphicsParams.[Ch]: respect the new DEFAULT state of InsetGraphicsParams::DisplayType. 2002-01-31 Herbert Voss * insetgraphic.C: (readfigInset) set display to pref-default 2002-01-30 Herbert Voss * insetgraphic.C: get the filetyp from it's contents * insetgraphicparams.C: add token scale and lyxrc.display when creating a new inset 2002-01-30 Angus Leeming * figinset.C: added using std::ios directive. 2002-01-30 Jean-Marc Lasgouttes * figinset.C (runqueue): open translation file in binary mode (for cygwin). 2002-01-27 Herbert Voss * insetgraphic.[Ch]: mostly newritten to support graphicx with all options and to be sure that the old figinsets are correct converted. * insetgraphicParams.[Ch]: a lot of chamges to have a clean data- structure and to support all lengths as LyXLength. The Parameter structure changed again, but reading of "old" 1.2 graphic insets is no problem. 2002-01-20 Dekel Tsur * insetert.h (forceDefaultParagraphs): Added 2002-01-20 Jean-Marc Lasgouttes * insettabular.C (getMaxWidth): (forceDefaultParagraphs): use Tabular::GetCellFromInset 2002-01-19 Jean-Marc Lasgouttes * insettabular.C (getMaxWidthOfCell): adapt to the new definition of LyXLength::inPixels * inset.C (latexTextWidth): * insetminipage.C (latexTextWidth): new method, which implements the equivalent of the LaTeX macro \textwidth * insetminipage.C (getMaxWidth): use latexTextWidth 2002-01-18 Juergen Vigna * inset.C (getMaxWidth): try to fix fluctuation of collapsable insets. 2002-01-17 Jean-Marc Lasgouttes * insettabular.C (getMaxWidthOfCell): use LyXLength::inPixels * insetminipage.[Ch]: change width_ and height_ to be LyXLength instead of string 2002-01-17 Juergen Vigna * insettabular.C (lockInsetInInset): same change as in insettext. * insettext.C (draw): width() function was called without setting the right top_x which could lead to wrong insetWidth setting! (lockInsetInInset): call edit instead of calling lockInset if we have to lock an inset inside! (edit): we have to also tell the inset that we have to redraw the frame on an edit call if this inset draws a frame only if locked. 2002-01-16 Jean-Marc Lasgouttes * insetbib.C (getFiles): uncomment Path variable. 2002-01-16 Juergen Vigna * insettabular.C (forceDefaultParagraphs): fixed bug returning value of wrong cell. 2002-01-16 Allan Rae * insetinclude.C (docbook): someone forgot a ";" 2002-01-16 José Matos * figinset.C (docbook): removed a old place holder "@". * insetgraphics.C (docbook): remove the file sufix if graphic is eps. * insetinclude.C (linuxdoc): if include is verbatim, then export the ascii text version, clearly guarded inside a CDATA section. (docbook): in docbook 4, inlinegraphics is empty. * insettabular.C (linuxdoc): export the ascii version of the table inside a CDATA section. 2002-01-14 Jean-Marc Lasgouttes * insetparent.C (InsetParent): * insetgraphicsParams.C (Write): (Read): * insetgraphics.C (prepareFile): (readFigInset): (docbook): * insetexternal.C (executeCommand): (doSubstitution): use Buffer::filePath * insetbib.C (getFiles): add a #warning for Angus * insetgraphics.C: Add a remark about how filenames should be considered to be relative to buffer (but absolute is still allowed) (draw): do not try to get status if lyxrc.use_gui is false 2002-01-14 Angus Leeming * inset.[Ch]: * insetcollapsable.[Ch]: * insettabular.[Ch] (searchForward, searchBackward): change the bool const & params to bool. * insetminipage.[Ch] (width, height): renamed as pageWidth, pageHeight to avoid the name clash with InsetCollapsable's methods of the same names but different functionality. 2002-01-14 Angus Leeming * insettext.C (ascii): use lyx::count rather than countChar. 2002-01-14 John Levon * insettabular.C: return early for the LFUN_*BUF[SEL] funcs too 2002-01-13 Jean-Marc Lasgouttes * insetgraphics.C (updateInset): do not try to render image if lyxrc.use_gui is false (bug #104) * insetinclude.C (loadIfNeeded): do not call bufferlist.readFile if file does not exist * figinset.C (browseFile): add shortcuts to directory buttons * insettext.C (updateLocal): update menubar and toolbar here too. 2002-01-13 Allan Rae * insettabular.C (InsetTabular): Both constructors now initialise all class variables. 2002-01-11 Juergen Vigna * insettext.C (insetButtonPress): set the_locking_inset to 0. 2002-01-11 Jean-Marc Lasgouttes * insettabular.C (getStatus): add forgotten brace around multiline if statement. 2002-01-09 Jean-Marc Lasgouttes * insetfloat.C (validate): require "float" instead of "floats". 2002-01-08 Martin Vermeer * insettabular.C (getStatus): use FuncStatus 2002-01-08 Juergen Vigna * insettabular.C (insetButtonRelease): now this should work too correctly. * insetminipage.C (getMaxWidth): fixed for minipage inside insets and if the width is a percentage. * inset.h: added isChar() function and implemented this for insetspecialchar insetquotes and insetlatexaccent. added forceDefaultParagraphs() and implemented it for insettabular. 2002-01-07 Juergen Vigna * insettext.C (getLyXText): Fixed this function. An insert into the map is only done if we REALLY have a new BufferView. 2002-01-07 Martin Vermeer * insettext.C: fix bug illustrated by attachment #37 of bug #59 2002-01-05 John Levon * insetinclude.C: fix use of FileInfo 2002-01-07 Juergen Vigna * insettabular.C (draw): fixed clearing of cell around inset. 2002-01-05 Juergen Vigna * insettext.C (draw): move the calls so that insetWidth/Asc/Desc variables are updated. * insettabular.C (resetPos): set always the inset_y as it may be needed in another function. (searchBackward): don't draw while searching. 2002-01-04 Juergen Vigna * insettext.C (lockInsetInInset): forgot to set a cursor. 2002-01-02 Juergen Vigna * insettext.C (insertInset): make the correct undo informations on inserting new insets. 2001-12-31 John Levon * insettabular.C: correct single-cell select vertically 2001-12-27 Juergen Vigna * insettabular.C (ascii): export as tab-separated-values if the function was not called from export (f.ex.: clipboard). * insetcollapsable.h: added default support for ascii, linuxdoc and docbook export (the insettext is exported by default!) * insettabular.C (copySelection): suff the clipboard with the tabular data in a tab separated format, seems more naturals then with all the formating. 2001-12-24 Juergen Vigna * insettext.C (insetMotionNotify): added a mouse_x & mouse_y position to check for REAL mouseMotion. 2001-12-20 Juergen Vigna * inset.C (cursor): return the owners cursor if available instead of always only the bv->text->cursor. * insettabular.C (checkLongtableSpecial): works now. 2001-12-19 Juergen Vigna * insettabular.C (tabularFeatures): fix the row setting of ltt as this has to be always row + 1 as 0 means not selected! (checkLongtableSpecial): added (tabularFeatures): better longtable options support * insettext.C (resizeLyXText): reinit the text always also on a empty insettext! 2001-12-18 Juergen Vigna * insettext.C (updateInsetInInset): look if we have to autocollapse paragraps and return if the update is requested for ourself. * insetert.C (status): update the insettext not myself as that is what we need. * insetcollapsable.C (updateInsetInInset): always call the InsetText's function only return if the update was requested with myself. * insettext.C (insetButtonPress): fixed stupid bug. (various functions): pay attention that lt is cleared BEFORE calling updateLocal() and try to use it in the right manner (don't use it if it's not really neccessary!) (collapseParagraphs): insert a blank between collapsing paragraphs if neccessary (not already there!). 2001-12-18 Lars Gullik Bjønnes * insettabular.C: move includes around a bit, add a couple of consts. * insettext.[Ch]: move includes around a bit, other ws changes and small stuff. 2001-12-17 Jean-Marc Lasgouttes * insettext.C (insetButtonRelease): fix compile problem 2001-12-17 Juergen Vigna * insettext.C (insetButtonPress): set the selection cursor! (insetButtonPress): clear the selection (and set with that the selection.cursor) if we only hit an inset! * insetert.C (read): removed piece of compatibility code only needed for 1.2.0. * insettabular.C (insetButtonRelease): fixed so that sub-dialogs can be opened. * insetcollapsable.C (insetButtonRelease): changed so that it can open eventual existing popup dialogs on mousebutton==3. * insetfloat.C (insetButtonRelease): removed not needed anymore! * insetminipage.C (insetButtonRelease): removed not needed anymore! * inset.C (insetButtonRelease): return a bool for telling the outer world that we opened a dialog. 2001-12-07 Juergen Vigna * insettext.C (paragraph): remove the deleteing of paragraphs as it was a WRONG move! 2001-12-06 John Levon * insettabular.h: * insettabular.C: use new setSelection(). Allow selection of single cells. 2001-12-12 Jean-Marc Lasgouttes * insetquotes.C (latex): fix to use the local language setting at the point where the inset is inserted (different macros for different french packages) 2001-12-11 Jean-Marc Lasgouttes * inset.h: add par_owner_ member variable and parOwner setter/accessor. 2001-12-10 Jean-Marc Lasgouttes * insettabular.C (everywhere): adapt because widths are now real widths and not strings * insettext.C (draw): re-introduce the calls to width(), ascent() and descent() to initialize the caching variables. 2001-12-09 Jean-Marc Lasgouttes * insettext.C (draw): (drawFrame): use insetWidth instead of last_width * insettext.h: remove variable last_width (insetWidth is exactly the same) and last_height (computed but never used!) 2001-12-10 Allan Rae * insettabular.C (localDispatch): cleanup unlockInsetInInset calls 2001-12-05 John Levon * insettext.C (insetAllowed): add comment 2001-12-05 Juergen Vigna * insettext.C (insetAllowed): fixed for the case that we directly ask the insettext from its LyXText. (paragraph): fixed the crash when assigning the par->next() from the EmptyParagraphMechanism! 2001-12-05 Lars Gullik Bjønnes * insetbib.C: * insettabular.C: * insettext.C: change "while(" to "while (" 2001-12-04 Juergen Vigna * insetert.C (edit): handle Inlined status. * insettext.C (insertInset): trying John's fix for the trailing cursor * insetert.C (insetButtonPress): added to handle inlined status (insetMotionNotify): ditto. * insettext.C (clearInset): changed Painter & in BufferView * param, to be able to call ascent,descent methods. 2001-12-03 Juergen Vigna * insettext.C (updateInsetInInset): use lt variable to forbid changes of LyXText in an update call. (updateInsetInInset): fixed updating of non locked insets! 2001-12-01 John Levon * insettabular.C: capture some more functions to prevent selection drawing problems. Bug #451274 2001-12-01 John Levon * insetgraphics.C: * insetgraphicsParams.C: fix inverted sense of float_equal 2001-11-30 Juergen Vigna * insettabular.C (InsetTabular): use the save_id flag to create also the tabular with the same id's. * insettext.C (setParagraphData): added a same_id function for undo to set the same paragraph id's as of the paragraph we are setting. 2001-11-30 José Matos * inseturl.[Ch]: * insettoc.[Ch]: DocBook -> docbook. 2001-11-29 André Pönitz * inseterror.C: * insettext.C: further reduction of header dependencies by using lyx::layout_type and lyx::textclass_type from support/types.h 2001-11-29 Juergen Vigna * insettext.C: inserted a reinitLyXText function everywhere I delete the paragraphs! This should fixe the crashes we had. Also use the new function firstRow() instead of getRowNearY(dummy_y) (paragraph): set the InsetOwner() of the new paragraphs! 2001-11-28 André Pönitz * insetnote.C: add pos initialization that I removed without knowing what I did. 2001-11-28 Juergen Vigna * insettabular.C (resetPos): hack to not crash with infinite paints. * insettabular.h: insert missing function allowSpellcheck()! * insetcollapsable.C (draw): fixed wrong width of collapsed inset! 2001-11-04 John Levon * insetfloatlist.h: * insetfloatlist.C: derive from InsetCommand so gui can use it easily 2001-11-26 André Pönitz * insettext.[Ch]: * insetert.C: * insetnote.C: reduce header dependencies, introduce type for positions 2001-11-23 John Levon * various: update for Alert.h 2001-11-22 John Levon * inset.h: fix comment * insettext.C: use par->isInset() 2001-11-22 Allan Rae * insetcollapsable.h: * inset.h: Changes to checkInsertChar() behaviour. Now return value indicates whether chars can be inserted. 2001-11-11 Michael A. Koziarski * various: updated to use the new LaTeXFeatures 2001-11-14 José Matos * insetspecialchar.C (linuxdoc): (docbook): don't give a name to a unused variable. * insettext.C (docbook): removed unused variable. 2001-11-13 Herbert Voss * insetgraphic.C: fix scale bug 2001-11-13 Jean-Marc Lasgouttes * inset.h (isSpace): (isLetter): new virtual methods. * insetspecialchar.C (isSpace): (isLetter): implement here. 2001-11-04 John Levon * inset.h: new inline helpers * insettext.C: use new helpers 2001-11-07 José Matos * insettext.C (docbook): full support for paragraphs inside insettext. 2001-11-06 José Matos * insetindex.C: added header file for std::ostream. 2001-11-03 José Matos * insetindex.C: added using std::ostream that I forgot yesterday. 2001-11-02 Ben Guillon * insetindex.h (docbook): * insetindex.C (docbook): added support for docbook export. 2001-11-02 José Matos * insetcaption.C(docbook): added support for docbook export. 2001-11-02 Dekel Tsur * insetexternal.C (updateExternal): Do not run update command if result file exists and is up to date. * ExternalTemplate.C (readFormat): Support the updateresult token. 2001-10-31 Kayvan A. Sylvan * insetexternal.C (doSubstitution): Fix filepath ($$FPath in external_templates) to use the buffer->fileName() but only if previewing. Generating a TeX file should make FPath return "". 2001-10-30 John Levon * insetert.h: * insetert.C: fix some problems 2001-10-30 Kayvan A. Sylvan * insetexternal.C (doSubstitution): Added $$FPath token to list of usable substitutions in external inset templates. 2001-10-24 Juergen Vigna * insettabular.C: use new ltType struct for setting longtable header and footers also new UNSET enums. 2001-10-24 José Matos * insettabular.C (linuxdoc): Now exports the ascii's table version. (docbook): If the table is not inside a float then wrap it inside .... 2001-10-23 José Matos * insetref.C (docbook): removed / terminator to conform SGML. * insetspecialchar.C (linuxdoc): (docbook): Added support for special chars, more than ascii export. 2001-10-22 Juergen Vigna * insettext.C (checkInsertChar): added for REALLY checking the font of the inserted char in the right inset! 2001-10-19 Juergen Vigna * inset.h: added method allowSpellcheck() so that insets who do not have anything to spellcheck can tell and so they are over-jumped. Implemented for InsetText and co. 2001-10-18 Juergen Vigna * inset.C (getMaxWidth): use LyXText::workWidth(BufferView, Inset *). 2001-10-15 José Matos * insetert.C: allow export for docbook and linuxdoc 2001-10-07 Adrien Rebollo * insetquotes.C (dispString): handles latin3 and latin4 quotes 2001-10-05 Jean-Marc Lasgouttes * insetquotes.C (dispString): fix handling of latin9 quotes 2001-10-03 Juergen Vigna * insetert.C: ditto * insetcollapsable.C: change updateInset calls to not tell BV that we have changed status. 2001-10-01 Jean-Marc Lasgouttes * insettabular.C (deletable): make const 2001-09-28 Dekel Tsur * insetert.C (latex): Fix the returned value 2001-09-24 Angus Leeming * insetert.[Ch] (selectNextWordToSpellcheck): new method. Returns string(), so nothing in an ERT inset is spellchecked. * insetgraphics.C (draw): print the filename if not displaying the image. (width): make sure that the width and draw methods are consistent. (updateInset): don't even load the image into cache if not displaying it. 2001-09-21 Angus Leeming * various files (selectNextWord): renamed as selectNextWordToSpellcheck. * insetgraphics.C (draw): remove the previous change. Right place is in imageLoaderXPM.C. (draw): don't display the image if params.display == NONE. 2001-09-18 Angus Leeming * figinset.C (runqueue): * insetgraphics.C (draw): set background colour of inset from background to the user-configurable graphicsbg. 2001-09-07 Jean-Marc Lasgouttes * insetquotes.C (InsetQuotes): when trying to decide the side of the quote, choose `left' only after a space or '(' 2001-09-04 José Matos * figinset.C * figinset.h * insetcaption.C * insetcaption.h * insetcollapsable.h * insetcommand.C * insetcommand.h * inseterror.h * insetert.C * insetert.h * insetexternal.C * insetexternal.h * insetfloat.C * insetfloat.h * insetfloatlist.h * insetgraphics.C * insetgraphics.h * inset.h * insetinclude.C * insetinclude.h * insetlabel.C * insetlabel.h * insetlatexaccent.C * insetlatexaccent.h * insetquotes.C * insetquotes.h * insetref.C * insetref.h * insetspecialchar.C * insetspecialchar.h * insettabular.C * insettabular.h * insettext.C * insettext.C (docbook): rename docBook method to docbook. 2001-09-02 Dekel Tsur * inset.h (getFirstParagraph): New virtual method. 2001-08-20 Herbert Voss * insetbib.C: added a option bibtotoc which is from "BIB to TOC" in the the bibtex-database-gui for inserting a line \addcontentsline... If no style is given than there is no tex-output. 2001-08-18 Angus Leeming * insetbib.[Ch] (getFiles): new method, returning the BibTeX database files as a vector. (getKeys): use it. 2001-08-18 Dekel Tsur * insetert.C (latex): Fix output for multiple paragraphs. (write): New code for writing paragraph data. (read): Set font after reading the inset. (localDispatch): Call set_latex_font() for more cases. * insetnote.h: Add empty validate method. * insetert.h: Ditto * insetnote.C (InsetNote): Set language to the language of the document. 2001-08-16 Juergen Vigna * insettext.C: implemented the new FINISHED states. * insettabular.C: ditto * inset.h: added more FINISHED states for cursor right,up,down 2001-08-16 John Levon * insetfloatlist.C: use "FloatName List" 2001-08-14 Juergen Vigna * insetert.C (edit): forgot to set status_ in edit calls! 2001-08-14 Dekel Tsur * insettext.C: Compilation fix 2001-08-13 Juergen Vigna * inset.C (getMaxWidth): fixed bug of returning the wrong max width. * insetcollapsable.C (edit): don't recollapse an already open inset. * insettext.C: fixed problem when reinitializing LyXText by not doing it while lt is in use and post this to the next possible time in getLyXText(). (searchForward): fixed not unlocking of inset if nothing found. (edit): set cursor behind right (was set -1 pos). * insetert.C (InsetERT): init status_ also in the 3rd constructor. * insettabular.C (tabularFeatures): fixed fix where deleting the last row didn't get the right actcell! 2001-08-11 Dekel Tsur * insettext.C (localDispatch): Change language only when the inset becomes empty. 2001-08-10 Juergen Vigna * insettabular.C (selectNextWordInt): use the front using edit call. * insetcollapsable.C (getMaxWidth): rename inset to in to not have the parameter overwrite class variable inset. * inset.C (getMaxWidth): fix the setting of the minwidth = 10. * insettext.C (saveLyXTextState): check for invalid cursor-par. (reinitLyXText): remove wrong_cursor bool as not needed anymore! * insettabular.C (calculate_dimensions_of_cells): let's try to call update only for fixed with cells. (resetPos): try to fix the lockup on spellchecking or s&r. * insettext.C (update): comment this out as it seems first wrong and second not needed anymore! (some functions): call reinitLyXText() only in update() in all other positions set only need_update = INIT. 2001-08-08 Juergen Vigna * insettabular.C (setPos): fixed wrong actrow < rows() check. * insettext.C (insetUnlock): remove double-space on inset unlock. * insetcollapsable.C (draw): fix returned x when label > inset-width. * insettabular.C (update): fixed cursor positon after an insert. (insetAllowed): do not allow to insert insets when not inside the inset! (draw): clear below an inset too as it could have changed height. * inset.C (getMaxWidth): fixed width for inset in inset. * insettext.C (update): small fix. * insettabular.C (tabularFeatures): added selection support to DELETE_ROW/DELETE_COLUMN. 2001-08-07 Juergen Vigna * inset.C (getMaxWidth): recoded and all it's implementations! * insettext.C (init,setParagraph+constructors): cleanups (reinitLyXText): fixed problem with wrong cursor when all paragraphs are new and I want do a save/restore of the cursor position which is not possible anymore. * insetcollapsable.C (searchBackward): recollapse inset if not found. (searchBackward): ditto (selectNextWord): ditto 2001-08-07 Angus Leeming * insetlatexaccent.C (checkContents): Add some debug messages 2001-08-07 Juergen Vigna * insetert.C (read): don't use InsetCollapsable::read as we don't write the collapsed status anymore only the status. (write): ditto. 2001-08-06 Juergen Vigna * insetert.C (set_latex_font): use LyXText's setFont directly. * insettext.C (drawFrame): fixed one time more the right position and size of the frame! * insetert.C (~InsetERT): hide the dialog. (showInsetDialog): added implementation (open): ditto (close): ditto (status): new function for the status of the ERT inset (3-state). (write): output also the status of the inset for readback! (read): readback the status if available otherwise use collapsed_. * insettext.C (edit): small fix of setting the position, which could have gone < 0. * insetert.C (width): implement this function for inlined viewing. Added minimum width of 10 pixels! * insetminipage.C (InsetMinipage): just change the colors a bit so that border/background is a bit more visible. We will remove this anyway for 1.2.0! * insettext.C (textWidth): add a 'bool fordraw' parameter and use this function for getting the important widths for drawing in various functions and in LyXText. (draw): fixed up a bit (frame drawing/clearing) 2001-08-03 Lars Gullik Bjønnes * inset.C (convertFont): delete method. not used. 2001-08-03 Juergen Vigna * insettext.C (setFont): don't call for a draw update if we're just changing the cursor font! 2001-08-02 Juergen Vigna * insettext.C (draw): clear the background with the right color if needed. Update myself if x&max-width changed and return without doing anything. Let the update code handle the right stuff. * insetminipage.C (getMaxWidth): fixed returning of maxwidth when inside another inset. 2001-08-01 Juergen Vigna * insetcollapsable.C (update): added an in_update bool so we avoid reentering. * insettabular.C (update): added an in_update bool so we avoid reentering. * insettext.C (insetButtonPress): hopefully fixed setselection/clear selection problem. (update): added an in_update bool so we avoid reentering. * insettabular.C (localDispatch): clear col/row selection when doing something else inside an inset. * insettext.C (getLyXText): fixed bug when requesting a recursive insettext! 2001-08-01 Angus Leeming * insetcite.C (latex): Paranoia check. Make sure that there is no whitespace between the citation keys. 2001-07-31 Juergen Vigna * inset.h (nodraw): make the set function also const so that this can be called from inside other const functions. * insetcollapsable.h: removed inline variable and moved it over to the only user InsetERT. * insetcollapsable.C (insetButtonRelease): fixed uncollpasing the inset opening immediately therein lying insets dialogs! * insetert.C (localDispatch): set the font also if we don't have any chars in this paragraph, otherwise if we delete all of em and start writing we have the wrong font. (inlined): added (draw): implemented for inline support (insetButtonRelease): ditto. 2001-07-30 Juergen Vigna * insettext.C (reinitLyXText): new function to reinit the insets text after lot's of paragraph changes. Use this instead of the cache.clear() which is VERY dangerous. * insetfloat.C (insetButtonRelease): we should only show the dialog if we press on the label otherwise we have problems to open mouse button 3 dialogs inside this float (f.ex. of a tabular!) 2001-07-30 Lars Gullik Bjønnes * insetert.C: change back to "ERT" * insetfloat.C: handliign of RMB on label added. 2001-07-30 Jean-Marc Lasgouttes * insetgraphicsParams.C: #include LOstream.h here. * insetfoot.h: remove InsetFoot:: qualifier. 2001-07-29 Baruch Even * ChangeLog: Hiding time travel evidence. * insetgraphicsParams.h: * insetgraphicsParams.C: * insetgraphics.C: Added horizontal scale option, it actually scales both directions since it keeps image proportions. * insetgraphics.C: Fixed EPS detection to be non-hacky. 2001-07-29 Baruch Even * insetgraphics.C (decideOutputImageFormat): when doing postscript output convert PNG/GIF/JPG to EPS, assume the rest are EPS already. HACKY! Will need to add an EPS detection routine like old InsetFig does! 2001-07-29 Baruch Even * insetgraphics.C: Added EPSI to be an alias of EPS. 2001-07-29 Baruch Even * insetgraphics.C: Change GRAPHICS to Graphics. Changed image conversion rules (documented at the beginning of file). 2001-07-28 Angus Leeming * insetert.C (get_new_label): int -> Paragraph::size_type to get std::min working. * insetgraphics.C: added a using std::endl directive. * insetcommand.h (getScreenLabel): removed pure virtual function, as it duplicates that in InsetButton. * insetbib.[Ch] (getScreenLabel): * insetbutton.[Ch] (getScreenLabel): * insetcite.[Ch] (getScreenLabel): * insetert.[Ch] (getScreenLabel): * insetexternal.[Ch] (getScreenLabel): * insetfloatlist.[Ch] (getScreenLabel): * insetinclude.[Ch] (getScreenLabel): * insetindex.[Ch] (getScreenLabel): * insetlabel.h (getScreenLabel): * insetparent.[Ch] (getScreenLabel): * insetref.[Ch] (getScreenLabel): * insettoc.[Ch] (getScreenLabel): * inseturl.[Ch] (getScreenLabel): passed a Buffer const * parameter. * insetcite.C (getScreenLabel): use this Buffer parameter in creating the label. (validate): remove check on "cite" when using natbib. 2001-07-26 Baruch Even * insetgraphics.C (draw): changed casting to be in one place rather than all over the function. * insetgraphics.h: * insetgraphics.C (read): Added compatibility reads of InsetFig. * insetgraphicsParams.h: * insetgraphicsParams.C: * insetgraphics.C: Removed inline option and changed rotateAngle to float. 2001-07-28 Kayvan A. Sylvan * insetfoot.C (validate): Added method to ensure that the right bit of LaTeX is emitted. * insetfoot.h: Added validate method to set the correct LaTeXFeatures bit for the special footnote code. 2001-07-26 Yves Bastide * insetquotes.C (dispString): display the right ISO8859-{1,9,15} quotes 2001-07-27 Juergen Vigna * inset.h: remove not used font variable in parameter. removed checkInsertChar in UpdatableInset as it was equal to the one in Inset and so not needed. * insetert.C (checkInsertChar): implementation of function checkInsertChar. * inset.h: added new function checkInsertChar. * various files: added c-tor and clone() function. * insetcollapsable.h: removed clone function here as this should be only realized in REAL insets and added it to all collapsable insets! (with the copy-constructor). 2001-07-26 Lars Gullik Bjønnes * insetminipage.C (read): handle missing parameters more gracefully * insetcollapsable.C (read): handel missing collapsed more gracefully 2001-07-25 Lars Gullik Bjønnes * insetfloat.C (read): handle missing parameters. * insettext.C (read): handle old latex end_inset * insetert.C (setButtonLabel): new method (init): use it, to set the dynamic label correctly (read): use it * Makefile.am (EXTRA_DIST): add files that is not part or the binary here. * insetcollapsable.h: remove autocollapsable (no users), remove draw_label, change_label_with_text and companion code. Remove args from some methods. * insetert.[Ch]: move here instead (only user) * inset.h: rename private variable name to name_, make selectNextWord return a const string. make getInsetName return a string const &. Remove bool from open, add close. * Makefile.am: don't compile insetlist, insetsection and insettheorem 2001-07-24 Juergen Vigna * insetert.C (InsetERT): put init after the paragraph initialization, as otherwise we don't set the draw_label right. * insetcollapsable.C (insetMotionNotify): fixed opening/closing the insets with the mouse without having strange selections. (edit): if the inset was collapsed and we open it here then put the cursor always at the beginning of the inset. (get_new_label): 15 instead of 10 max chars in the label. * insetert.C (localDispatch): added and handle various stuff we need to handle here (font setting on paragraph break, not permitted layout setting, etc.). * inset.h: added default copy-consturctor and implemented this in various insets with the change to use this in the clone function! 2001-07-24 Jean-Marc Lasgouttes * insetminipage.C (InsetMinipage): set background color to red :) 2001-07-23 Jean-Marc Lasgouttes * insettext.C (insetUnlock): only set update to CLEAR_FRAME if draw frame mode is LOCKED. * insetcollapsable.C (edit): (insetButtonRelease): set update status to full when opening inset. * insettext.C (clearInset): * insettabular.C (draw): * insetlatexaccent.C (draw): honor background color. * inset.h: new member background_color_, initialized to LColor::inherit. * inset.C (backgroundColor): new method. (setBackgroundColor): new method. * insetert.C (init): new method, called by the ctors. (InsetERT): when inserting contents, make sure the font is ALL_INHERIT. * insetnote.C (InsetNote): when inserting content, remove trailing newline (init): set background color to LColor::note 2001-07-24 Lars Gullik Bjønnes * insetcollapsable.C: adjust * insetbutton.C: adjust 2001-07-23 Juergen Vigna * insetcollapsable.h: removed widthCollapsed variable, LyXFont parameter on the _collapsed function (was not needed) and call always width_collapsed(). * insetert.C (InsetERT): use setLabel with "true" flag. * insetcollapsable.C: modified various functions to set the draw_label string right in any condition. (setLabel): added a bool parameter to set change_label_with_text. * insetcollapsable.h: added draw_label string which is set to the actual drawn label-string, while label is the original static label of this collapsable inset. Added bool change_label_with_text to set if we want that the label changes to the start of the InsetText's text when collabpsed. You can set this flag with the setLabel funciton. Added bool inlined for inlined collapsable insets, but not handled yet. * insetcollapsable.C (get_new_label): added should get a new label from the InsetText beginning (for now 10 chars). 2001-07-21 Yves Bastide * insetquotes.C (latex): fix the handling of french double quotes when not using the french pachage. 2001-07-22 Jean-Marc Lasgouttes * insetcollapsable.h: make WidthCollapsed mutable. * insetindex.C (lyxCode): InsetIndex returns INDEX_CODE, InsetPrintIndex returns INDEX_PRINT_CODE. * inset.h: add INDEX_PRINT_CODE * insetcollapsable.C (draw): init widthCollapsed if necessary (width): ditto. * insetquotes.C (width): use the local language, not the document language. (draw): ditto. (dispString): add additional spacing for all french languages, like fr_CA. (validate): make it work when there is no default language * insetspecialchar.h: rename kind to kind_; add kind() accessor. * insetnote.C (init): new method, called by the constructors (InsetNote): new constructor with contents passed as a string 2001-07-21 Jean-Marc Lasgouttes * insetfootlike.C (insetAllowed): disallow float in footlike. * insetert.C (InsetERT): add collapsed argument to the constrctor with contents. 2001-07-20 Jean-Marc Lasgouttes * insetindex.h: shut off warning 2001-07-20 Juergen Vigna * insetcollapsable.C (update): recoded hopefully works now! 2001-07-19 Juergen Vigna * most files: implemented the below new introduced function. * inset.h: added new edit(BufferView *, bool front) method to be able to enter an inset from the front/back without knowing x/y positions and baselines inside the inset. So I just can tell the inset activate me and set the cursor on the front/back of yourself. 2001-07-18 Juergen Vigna * insetcollapsable.C (edit): fixed hopefully the y parameter which is given to the InsetText. (insetButtonPress): ditto (insetButtonRelease): ditto (insetMotionNotify): ditto 2001-07-20 Jean-Marc Lasgouttes * insetspecialchar.[Ch]: change HYPHENATION_BREAK to LIGATURE_BREAK, since the name is so stupid. 2001-07-20 Angus Leeming * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses the default InsetCollapsable methods. I.e., it can insert anything. (write) output the name of the inset, not some silly hack for compatability with the old InsetInfo. * insetinfo.[Ch]: removed. * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is now collapsable, but functionality is otherwise identical to InsetInfo. * Makefile.am: removed insetinfo.[Ch]. Added insetnote.[Ch]. 2001-07-19 Jean-Marc Lasgouttes * insetspecialchar.[Ch]: add support for HYPHENATION_BREAK. some reformatting * insetquotes.C: general cleanup (dispString): add spaces inside french double quotes. (latex): ditto. Moreover, treat first the case where the frenchb or french options have been given. 2001-07-19 Angus Leeming * insetcite.[Ch] (latex, validate): new methods, required for natbib support. 2001-07-19 Dekel Tsur * figinset.C (RegisterFigure): Print debug message only when current_view is available. 2001-07-18 Jean-Marc Lasgouttes * many files: update to match the change below * inset.h (insetAllowed): renamed from insertInsetAllowed; implement the version which takes an inset here. * insetcollapsable.[Ch]: implement open and isOpen * inset.h: remove insertInsetAllowed from Inset (open): new method, to open or close an inset (isOpen): returns the status of an inset (isCollapsable, colapse): removed 2001-07-13 Yves Bastide * insetquotes.C (dispString): display french guillemets when using ISO8859-15. 2001-07-18 Jean-Marc Lasgouttes * insetcollapsable.h: remove bogus return statements 2001-07-18 Juergen Vigna * insettabular.C (selectNextWord): fixed spellchecking for the first cell of a tabular (wasn't entered!) (getLyXText): changed to enter automatically insettext and return it's LyXText if we're locked. 2001-07-17 Juergen Vigna * various files: implemented the below functions. * inset.h: added functions - virtual string selectNextWord(BufferView *, float & value) const; - virtual void selectSelectedWord(BufferView *) { return; } - virtual void toggleSelection(BufferView *, bool /*kill_selection*/) needed for spellchecking correctly! 2001-07-16 Lars Gullik Bjønnes * insetert.C (latex): write out all paragraphs. 2001-07-17 Baruch Even * insetgraphics.C (draw): Removed unneeded casts. 2001-07-16 Juergen Vigna * insettext.C (update): fixed small oversight (reset lt to 0). 2001-07-14 Baruch Even * insetgraphics.h: * insetgraphics.C: Added a copy c-tor and handled the same_id case. 2001-07-13 Angus Leeming Consistent use of Lsstream.h: * figinset.C: removed using std::ostringstream directive. * insetgraphics.C (createLatexOptions): * insetinclude.C (unique_id): std::ostringstream -> ostringstream. * insettext.C (localDispatch): std::istringstream -> istringstream. 2001-07-13 Juergen Vigna * insetfloat.C (insertInsetAllowed): added missing const_cast. * insetcollapsable.C (getLockingInset): ditto. 2001-07-12 Juergen Vigna * insetcollapsable.h: added implementation of new function for collapsable status. * various files: added implementation of new insertInsetAllowed-func and redone the function a bit more. * inset.h: added isCollapsable(), bool collapsed(), collapsed(BufferView *, bool) and insertInsetAllowed(Inset::Code). * insetfloat.C (insertInsetAllowed): make a bit more checks. * insettext.C (getLyXText): use 'lt' to assure we're not erasing the LyXText which is marked for removal while we're using it! * insettext.h: added private LyXText * lt to use it to assure we are not deleting our LyXText while we're using it! 2001-07-11 Juergen Vigna * insettext.C (insertInset): check if we are before the inset after inserting it! This check IS needed. Remove the Undo-Call as it is called in LyXText::insertInset! * insettext.h: added struct InnerCache. * insettext.C (deleteLyXText): insert a new InnerCache mechanism so that we ONLY delete the LyXText in the getLyXText() routine. So we are sure we don't delete LyXText while someone is working with it! 2001-07-12 Lars Gullik Bjønnes * insetexternal.C: (*it). -> it-> * insettext.C: ditto 2001-07-11 Jean-Marc Lasgouttes * insetcollapsable.C (edit): always open collapsed insets (even if they are not autocollapsable) * insetcommand.C (operator=): simplify. 2001-07-10 Lars Gullik Bjønnes * insetert.C (latex): handle META_NEWLINE 2001-07-09 Juergen Vigna * insetert.h: a normal InsetText can insert insets, but we won't. * inset.h: return default "false" on insertInsetAllowed and implement this function where a returnvalue != "false" is needed. 2001-07-08 Lars Gullik Bjønnes * insetert.C (InsetERT): new contructor 2001-07-06 Juergen Vigna * a lot of files: added implementation of the below new functions and the change to clone(). Also the call of the new undo-functions where needed. * inset.h: added an inset_id, added functions getParFromID, getInsetFromID, firstParagraph, cursor and id functions, added bool same_ids to clone function. 2001-07-05 Lars Gullik Bjønnes * insettext.[hC]: make cached_text a shared_ptr, make Cache be a map of BufferView * and shared_ptr 2001-07-05 Juergen Vigna * insettext.C (clear): deleted also the cache not only LyXText. (setParagraphData): ditto. 2001-07-04 Lars Gullik Bjønnes * insetfloat.C (latex): let the specific placement take presedence if set, otherwise choose document placement if set, otherwise just use float default placement. 2001-07-03 Lars Gullik Bjønnes * insettext.C (localDispatch): call CutAndPaste::'s static method directly. 2001-07-03 Jean-Marc Lasgouttes * insetbib.C: no meed to include forms.h here. 2001-07-03 Angus Leeming * insettext.C: added using std::make_pair directive. 2001-07-03 Lars Gullik Bjønnes * insettext.C (getLyXText): avoid multiple lookups, and simplify slightly (deleteLyXText): ditto (resizeLyXText): ditto 2001-07-02 Juergen Vigna * insettext.C (getLyXText): introduce a cache in getLyXText so that following calls are only returned the right pointer without the over head to search in the map. (various funcs): reset the cached_bview variable as this signs that the cache is not valid anymore. 2001-06-29 Jean-Marc Lasgouttes * insettabular.C (clone): do not copy the LyXTabular twice 2001-06-29 Lars Gullik Bjønnes * insettext.h (TEXT): delete method 2001-06-29 Jean-Marc Lasgouttes * insetmarginal.C (latex): * insetfoot.C (latex): fix spacing of notes in LaTeX * insettext.C (localDispatch): use .c_str() on istringstream constructor argument. 2001-06-29 John Levon * insettoc.h: * insettoc.C: * inseturl.h: * inseturl.C: fix method names in these to begin with small char too, so they inherit 2001-06-28 Juergen Vigna * insettext.C (setFont): fixed font settings using toggleFree() instead of setFont(). 2001-06-28 Lars Gullik Bjønnes * Change a lot of method names to begin with a small char. Changes to a lot of files because of this. 2001-06-27 Lars Gullik Bjønnes * insetfloatlist.C (Write): std:: qualify ostream (Latex): ditto 2001-06-26 The LyX Project * figinset.C: * inset.C: * insetgraphics.C: send debug output to Debug::INFO instead of Debug::ANY. 2001-06-26 The LyX Project * insettabular.h: * insettabular.C (getStatus): update to use func_status 2001-06-26 ben * insetref.C (DocBook): added support for cross-references without a name. 2001-06-26 The LyX Project * insetref.C: * insetref.h: * insetlabel.C: * insetlabel.h: removed escape method and moved it to support/lstrings.h. 2001-06-26 Lars Gullik Bjønnes * insettabular.C (getMaxWidth): do the speedup in a different way, remove dead code 2001-06-24 The LyX Project * insettabular.C (getMaxWidth): We cache a mapping from inset to cell in order to speed this method up. 2001-06-24 The LyX Project * insettext.C: Optimized InsetText::draw or something. 2001-06-23 The LyX Project * insettext.C (LocalDispatch): fixed inserting of 'normal chars' 2001-06-23 Lars Gullik Bjønnes * inset.h: name change from lyxinset.h 2001-06-22 Dekel Tsur * insetfloat.C (Validate): Add a call to InsetCollapsable::Validate 2001-06-14 Juergen Vigna * insettext.C (draw): removed warnings. 2001-06-13 Juergen Vigna * insettabular.C (nodraw): only go down the tree if we don't have that flag set otherwise it's obvious that we don't want to draw. (LocalDispatch): do also an update if we have an undispached result. 2001-06-19 Angus Leeming * insetcite.C: * insetgraphicsParams.C: * insettext.C: removed // -*- C++ -*- as first line. 2001-06-13 Jean-Marc Lasgouttes * lyxinset.h (resizeLyXText): shut off warning about unused parameter "force" 2001-06-07 Juergen Vigna * insettext.C (resizeLyXText): honor the new force flag. * lyxinset.h: add 'bool force' parameter to resizeLyXText(...) * insettabular.C (deleteLyXText): new function 2001-06-02 John Levon * insettheorem.C: * insetminipage.C: * insetlist.C: * insetfootlike.C: * insetfloat.C: * insetert.C: * insetcollapsable.C: * insetcaption.C: LColor tidy 2001-06-01 Lars Gullik Bjønnes * figinset.C: fix typo 2001-06-01 Juergen Vigna * insettabular.C (resetPos): small hack so that scroll is not set to 0 when we are in the last column of a tabular. This is a problem we have because of constats 20 offset on both directions, so this can cause on the limit an endless loop. * insettext.C (SetFont): forgot that we can have locking insets ;) 2001-05-31 Juergen Vigna * insettabular.C (LocalDispatch): small fix for LFUN_TAB. 2001-05-31 Jean-Marc Lasgouttes * figinset.C: add using std:: directive for the C functions which need that. 2001-05-31 Lars Gullik Bjønnes * insetfloat.C (Write): write out wide info (Read): read the wide info (Latex): use the wide info when creating latex. * insettext.C: adjust * insetgraphics.[Ch] (statusMessage): change to return string (width): adjust (draw): adjust * figinset.C (runqueue): add std:: (Recompute): ditto 2001-05-28 Jean-Marc Lasgouttes * insetcite.C (Ascii): add std:: qualifier 2001-05-28 Juergen Vigna * insettext.C (resizeLyXText): clear LyXText ONLY if we don't have a endless-width inset (maxWidth < 0). (Edit): change language only if not equal. * insettabular.C (resetPos): call UpdateLocal only on REAL scroll! * insettext.C (draw): fixed draw/clear of InsetText-Frame 2001-05-16 Juergen Vigna * insettext.C (selectAll): added (clearSelection): added * insettabular.C (SetFont): now we may set a font on a whole selection! (getSelection): added helper function. 2001-05-27 Dekel Tsur * insetcite.C (Ascii): Add method. 2001-05-16 Ruurd Reitsma * figinset.C: * insetbib.C: fix path for OS/2 & Win32 2001-05-10 Lars Gullik Bjønnes * insetfoot.C (Latex): don't use % after footnote. 2001-05-08 Lars Gullik Bjønnes * insettext.C (Read): use clear (SetParagraphData): use LyXParagraph copy constructor instead of clone 2001-05-04 Jean-Marc Lasgouttes * insetfloatlist.h: add a bunch of std:: qualifiers. 2001-05-04 Lars Gullik Bjønnes * lyxinset.h: remve LOF_CODE, LOT_CODE, LOA_CODE, add FLOAT_LIST_CODE, renumber code list. * insettoc.C (getScreenLabel): remove support for float lists (LyxCode): ditto (Ascii): ditto * insetfloatlist.[Ch]: new files * Makefile.am (libinsets_la_SOURCES): add insetfloatlist.[Ch] 2001-04-27 Angus Leeming * insettabular.C (LocalDispatch): * insettext.C (LocalDispatch): getClipboard() is now a BufferView method 2001-05-03 Lars Gullik Bjønnes * insettext.C: remvoe !NEW_INSETS cruft * insettabular.C: remove !NEW_INSETS cruft * insetcollapsable.h: remove !NEW_INSETS cruft * insetbib.C: remove !NEW_INSETS cruft 2001-04-27 Lars Gullik Bjønnes * insettoc.C: hack to make listof algorithm work 2001-04-20 Juergen Vigna * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0. 2001-04-18 Jean-Marc Lasgouttes * insetquotes.C (Latex): improve the guard against unwanted !` and ?` ligatures. This should really be done in another place (to catch all this ligatures at low-level). 2001-04-17 Lars Gullik Bjønnes * insettext.C (init): remvoe leftovers from cursor_visible change (draw): use c++ cast (LocalDispatch): dispatch LFUN_MESSAGE * insettabular.C (InsetTabular): remove leftovers from cursor_visible, and scoped_ptr changes (draw): use c++ cast * insetcollapsable.C (draw): use c++ cast * ExternalTemplate.h: inherit privaely from noncopyable * insetcommand.h: ditto * insetinclude.h: ditto 2001-04-16 Allan Rae * insettoc.C (Ascii): * insettext.C (draw): * insettabular.C (setPos): * insetminipage.C (Read): * insetfloat.C (placement): * insetcaption.C (Ascii, DocBook): * figinset.C (runqueue): #warning triggers an error on Sun CC 6.0 as an unrecognised preprocessor directive. So ensure they're wrapped. 2001-04-06 John Levon * insetexternal.h: * insetexternal.C: set view on Clone. Add _ to private members. 2001-04-06 Lars Gullik Bjønnes * insettext.C (InsetText): fix new (InsetText): reindent some, simplify deletion of par list (clear): simplify deletion of par list, fix new (SetParagraphData): simplify deletion of par list * insettabular.[Ch] (getLabelList): implement new method 2001-04-05 Jean-Marc Lasgouttes * lyxinset.h: do not include gettext.h... * inset.C: * insetcaption.C: * insetexternal.C: * insetgraphics.C: * insetindex.C: * insetlabel.C: * insetlatexaccent.C: * insetminipage.C: * insetquotes.C: * insettabular.C: * inseturl.C: ... and do it here instead 2001-04-05 Lars Gullik Bjønnes * insetcollapsable.[Ch] (getLabelList): add std:: on vector * insettext.[Ch] (getLabelList): add std:: on vector * insetcollapsable.[Ch] (getLabelList): implement * insettext.[Ch] (getLabelList): implement * insettext.h: reindent * insettabular.h: make tabular a scoped_ptr * insettext.C (init): adjust for cursor_visible (ToggleInsetCursor): constify asc and desc, font, adjust for cursor_visible (ShowInsetCursor): constify asc and desc, font, adjust for cursor_visible (HideInsetCursor): adjust for cursor_visible * insettabular.C: reindent some (InsetTabular): adjust for scoped_ptr and cursor_visible (InsetTabular): ditto (~InsetTabular): delete delete (Clone): adjust for scoped_ptr (Read): constify old_format, adjust for scoped_ptr, move init of token (draw): constify tx, localize loop vars. some other localization of variables, remove double initilizatons. * insetfoot.C: remove using std::ostream, add ostream where needed 2001-04-04 Lars Gullik Bjønnes * lyxinset.h: some reindentaion, use initializer list for constructro. UpdatableInset: make cursor_visible a private var add public isCursorVisible(), add protected toggleCursorVisible() and proctected setCursorVisible(bool), make scroll call the Inset::scroll * insettoc.C: remvoe using decl (getScreenLabel): make cmdname donst (LyxCode): ditto (Ascii): ditto (Ascii): don't use endl * insetfootlike.C: remove using decl at file scope and add std:: where needed * insetmarginal.C: ditto * insetfoot.C: some reformatting * insetfloat.C (InsetButtonRelease): adjust the hit area * insetert.C (SetFont): some reformatting * insetcollapsable.C: some reformatting and constification (Clone): comment out. * insetcollapsable.h: some reformatting (Clone): comment out. * inset.C: reindent (scroll): simplify 2001-03-30 Juergen Vigna * insetcollapsable.h: changen *inset to be a InsetText inset. * some files: changed to reflect the above change. 2001-03-29 Angus Leeming * insetexternal.[Ch]: renamed InsetExternal::InsetExternalParams as InsetExternal::Params. Added operator==() and operator!=() for the Params struct. 2001-03-29 Juergen Vigna * lyxinset.h: changed parameter of getMaxWidth from Painter & to BufferView *. * insetminipage.C: removed widthp_ and all it's functions and changed to use new %-lengths of LyXLength. 2001-03-28 Angus Leeming * figinset.[Ch]: changed headers lyx.h, form1.h -> figure_form.h. 2001-03-27 Angus Leeming * insetgraphicsParams.C (operator!=): new function, needed by the ControlGraphics class. 2001-03-28 Juergen Vigna * insettext.C (InsetButtonPress): only enter !inset if button == 2 (checkAndActivateInset): don't use the values returned from call to bv->checkInsetHit. * insetminipage.C (Clone): set special minipage values. * insetcollapsable.C (draw): changed to draw the button in the upper left corner outside the textinset. (ascent): changed because of different drawing (descent): ditto (width): ditto (Edit): ditto (InsetButtonPress): ditto (InsetButtonRelease): ditto (InsetMotionNotify): ditto 2001-03-27 Dekel Tsur * figinset.C (GetPSSizes): Fix for the case when filename doesn't contain a suffix. (Clone): ditto 2001-03-26 Juergen Vigna * lyxinset.h: added ShowInsetDialog() function in UpdatableInset. * insettext.C (ShowInsetDialog): implemented above function. * insettabular.C (ShowInsetDialog): ditto * insetminipage.C (ShowInsetDialog): ditto 2001-03-23 Angus Leeming * insetinclude.[Ch]: rename InsetInclude::InsetIncludeParams as InsetInclude::Params. Don't store a buffer * in Params. Store the master file name instead. 2001-03-23 Juergen Vigna * insetcollapsable.C (InsetMotionNotify): (InsetButtonRelease): (InsetButtonPress): fixed y-offset (minipages). * insettext.C (draw): force a FULL update if cleared == true. * insetcollapsable.C (draw): Lars forgotten entry for changing this routine to draw the minipages on its position-flag. (InsetInInsetY): give back the right y position, because of minipage position-flag. 2001-03-23 José Abílio Matos * insetfloat.h * insetfloat.C (DocBook): docbook export code. 2001-03-22 Juergen Vigna * insetminipage.C (getMaxWidth): added function to set the drawing width! (Read): should work now! * insetcollapsable.C (InsetCollapsable): default is now NOT collapsed if we create a new inset. 2001-03-20 Angus Leeming * figinset.C (fl_set_preemptive_callback): moved definition outside of namespace anon. 2001-03-20 Lars Gullik Bjønnes * insetminipage.C (Read): prepare for reading of minipage arguments. 2001-03-18 Baruch Even * insetgraphics.C: Minor cleanups of the comments and code. 2001-03-17 Lars Gullik Bjønnes * insetminipage.C (InsetMinipage): default to not collapsed 2001-03-16 Juergen Vigna * insetminipage.C (width): modified with to be a string (widthp): added widthp (for % width) support functions. (InsetButtonRelease): added to open the options dialog on button==3. (~InsetMinipage): added to hide the dialog. * insetminipage.h: added hideDialog signal 2001-03-15 Lars Gullik Bjønnes * insetminipage.h: change the order or Position to match LyXParagraph::MINIPAGE_ALIGNMENT * several files: remvoe CXX_WORKING_NAMESPACES * ExternalTemplate.h: noncopyable is in namespace boost * insetinclude.h: ditto * insetcommand.h: ditto 2001-03-14 Angus Leeming * insettext.C (Edit): #else# -> #else. * insettoc.C: added using directive. 2001-03-14 Lars Gullik Bjønnes * insetminipage.h: add pos, inner_pos, width and height. + getters and setters for all of them. 2001-03-13 Dekel Tsur * insetinclude.C (Latex): Do not exit when the textclass of the included file differ from the textclass of the parent file. 2001-03-12 Angus Leeming * ExternalTemplate.C (read): the reading of external insets now checks for \end_inset and removes it form the input stream. 2001-03-09 John Levon * ExternalTemplate.h: * ExternalTemplate.C: * insetexternal.h: * insetexternal.C: move form to GUII 2001-03-12 John Levon * insetinclude.h: * insetinclude.C: add InsetIncludeParams, use composition rather than derivation of InsetCommand 2001-03-12 Lars Gullik Bjønnes * insettoc.C (Ascii): use the Buffer typedefs 2001-03-11 Lars Gullik Bjønnes * insettoc.C (Ascii): implement for dynamic number of lists * insetcaption.[Ch]: update from new_insets branch * insetfloat.[Ch]: ditto 2001-03-06 John Levon * insetexternal.C: * figinset.C: use new File Dialog 2001-03-06 Lars Gullik Bjønnes * insettext.C: changes becuase of ParagraphParameters. 2001-02-28 Baruch Even * insetgraphics.C (updateInset): Changed due to the change in GraphicsCache. 2001-02-26 Juergen Vigna * insettext.C (SetFont): Set Undo only if we have selection (as it is handled in LyXText). 2001-02-23 Juergen Vigna * insettext.C (draw): some small repainting fixes. (LocalDispatch): put the sel_cursor stuff after the insert of chars. * inset.C (LocalDispatch): changed action to be a kb_action (as it should be) and not an int. * insettabular.C (LocalDispatch): ditto * insettext.C (LocalDispatch): ditto * insetcollapsable.C (LocalDispatch): ditto 2001-02-22 Juergen Vigna * insettabular.C (LocalDispatch): return DISPATCHED if we cannot DISPATCH it and we don't have a locking_inset. 2001-02-21 Baruch Even * insetgraphics.[Ch]: Changed to use boost::shared_ptr instead of GraphicsCacheItem *. 2001-02-22 Jean-Marc Lasgouttes * insetcollapsable.C (getLyXText): add const qualifier to second parameter. 2001-02-22 Juergen Vigna * insettext.C (getLyXText): honor the recursive parameter. (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it. * inset.C (getLyXText): added bool recursive parameter. * insettext.C (SetUpdateStatus): or the update codes. (draw): check need_update with &. (InsetButtonPress): set no_selection to not put a selection when entering an inset and it is redraws in another spot. * insettext.h: made need_update an int. 2001-02-20 Baruch Even * insetgraphics.h: * insetgraphisc.C: Changed to use better semantics when loading images for inline view. Now it doesn't keep the pixmap itself but it's holder. 2001-02-19 Angus Leeming * insetcommand.h: * inseterror.h: * insetgraphics.C: change name of "hide" signal to "hideDialog", consistent with InsetTabular. 2001-02-19 Juergen Vigna * insettabular.C (LocalDispatch): implement PAGE up/down. * insettext.C (draw): clear all of it on need_update==INIT too! * insettabular.C (InsetUnlock): always clear the selection. * inset.C (scroll): normally we only want to scroll the inset until it is fully visible so if top_x + offset > 20 then just set scx to 0. 2001-02-14 Juergen Vigna * insettabular.C (LocalDispatch): remove x_fix as it is not used. (resetPos): fixed scroll behaviour. (LocalDispatch): do an update if moving cursor inside a table cell requests a scroll of the tabular. 2001-02-16 Lars Gullik Bjønnes * insettext.C (textWidth): constify local var * insettabular.C: small cleanup. * insetfoot.C (Latex): constify local var * insetcollapsable.C: small cleanup. * figinset.C (runqueue): use compare instead of strcmp 2001-02-14 Lars Gullik Bjønnes * insettext.C: * insetinfo.C: remove cruft 2001-02-14 Juergen Vigna * insettext.C (SetUpdateStatus): added a BufferView * parameter. 2001-02-13 Juergen Vigna * insettext.C (InsertInset): don't move left (is this right?) * insettabular.C (LocalDispatch): use of the no_draw variable * insettabular.h: new no_draw variable to stop redraw * insettabular.C (TabularFeatures): fixed update for alignment change 2001-02-12 John Levon * insetinclude.C: * insetbib.h: * insetbib.C: move dialogs to frontends/ 2001-02-10 Dekel Tsur * insettext.C (LocalDispatch): Restore the language if the inset becomes empty. 2001-02-09 Dekel Tsur * insettext.C (moveRightIntern): Update the selection cursor. (moveLeftIntern): Ditto. 2001-02-09 Jean-Marc Lasgouttes * Makefile.am: remove BoundingBox.h * BoundingBox.h: removed 2001-02-08 Dekel Tsur * insettext.C (LocalDispatch): Update selection cursor when moving cursor to the right. (moveRightIntern): Call to CursorRight with 2 argument eqaul to false. (moveLeftIntern): Ditto. 2001-02-05 Baruch Even * insetgraphics.C: Updated automatic image conversion, it now goes into temporary directory instead of with the image itself. 2001-01-21 Baruch Even * insetgraphics.C: Added Docbook support. Added Automatic image conversion to EPS or PNG when needed (support bitmap graphics). 2000-11-02 Baruch Even * insetgraphics.C: * insetgraphiscParams.C: Some cleaning up, changing from std::endl to '\n' and removal of commented out code. 2001-01-31 Dekel Tsur * insetbib.C (callback): Update citations if the key has changed. 2001-01-31 Dekel Tsur * insetbib.C (InsetBibKey): Better computation of default key. (getScreenLabel) Show both the key and the label. (getBibLabel): New method. (callback): Force a redraw if the inset have been changed. 2001-01-26 Dekel Tsur * insetref.C (getType, getName): Move methods from src/frontends/xforms/FormRef.C. 2001-01-12 Dekel Tsur * insettabular.C: Various improvements (use only one dummy position). 2001-01-25 Dekel Tsur * insetbib.C (bibitemWidest): Use lyxfont::width instead of par->bibkey->width. This fixes the crashes when running without gui or when having included documents. 2001-01-22 Dekel Tsur * insetcommand.C (getAsString, setFromString): Cleanup. 2001-01-21 Dekel Tsur * insetref.C: Add the array InsetRef::types that contains information about all supported reference types. 2001-01-19 Jean-Marc Lasgouttes * lyxinset.h: remove trailing comma in enum. 2001-01-17 John Levon * insettext.C: kill LyXBell.