2001-03-23 José Abílio Matos * buffer.C: removed bitset usage. PAR_TAG moved to an anonymous name space. (tag_name): new funtion, also in the anonymous namespace. (SimpleLinuxDocOnePar): replaced all the references to bitset by PAR_TAG. (makeDocBookFile): clean code. Completed transition from string arrays to string vectors. (SimpleDocBookOnePar): code clean. 2001-03-23 Lars Gullik Bjønnes * tabular.C: add some comments. 2001-03-22 Juergen Vigna * buffer.C (parseSingleLyXformat2Token): redone the minipage compatibility read a bit and fixed bug with minipage in different depth. 2001-03-21 José Abílio Matos * buffer.C (pop_tag): removed. (push_tag): removed. (makeLinuxDocFile): cleaner C++ code, declarations near usage point, array replaced with vector. Added support for CDATA sections. (SimpleLinuxDocOnePar): ditto. Paragraph tags are correctly handled, at any nest level. (makeDocBookFile): XML conformant declaration of CDATA section, fixed bug related to in the first paragraph char. (sgmlOpenTag): exclude empty tags. (sgmlCloseTag): ditto. * buffer.h (pop_tag): removed. (push_tag): removed. 2001-03-20 Angus Leeming * language.h (Languages): added size_type and size(). 2001-03-20 Lars Gullik Bjønnes * buffer.C (parseSingleLyXformat2Token): Try to give a bit better response on compability reading of minipages. One probliem is that the old usage of minipages was «flertydig» * several files here and in subdirs: don't use static at file scope use anon namespaces instead. 2001-03-19 Kayvan A. Sylvan * paragraph.C (TeXEnvironment): Added \n to \end{environment} LaTeX output. This is necessary for Literate document processing. 2001-03-17 Lars Gullik Bjønnes * buffer.C: insert hfill when needed. * tabular.C (l_getline): use string::erase, small whitespace change. * BufferView_pimpl.C: try the anon namespace. * WorkArea.C: ditto 2001-03-16 Juergen Vigna * BufferView_pimpl.C (workAreaButtonRelease): return only on button==2 otherwise it won't open options-dialogs. * buffer.C: honor pextraWidth(p) on converting minipages. * tabular.C (l_getline): changed the functions to strip trailing \r. 2001-03-16 Angus Leeming * BufferView_pimpl.C: * minibuffer..C: added "using SigC::slot" declaration. 2001-03-16 Lars Gullik Bjønnes * lyxlex_pimpl.h: noncopyable is in namespace boost. * text2.C: ditto * text.C: ditto * paragraph.C: ditto * lyxtext.h: NO_PEXTRA * buffer.C: NO_PEXTRA_REALLY, NO_PEXTRA * ParagraphParameters.C (clear): NO_PEXTRA_REALLY * ParameterStruct.h: ditto * ParagraphParameters.h: ditto * lyxparagraph.h: ditto 2001-03-15 Lars Gullik Bjønnes * buffer.C: add compability for minipage alignment. (latexParagraphs): remove unwanted pextra check. * several files: remove CXX_WORKING_NAMESPACES * buffer.C (pop_tag): tie is in namespace boost * BufferView.h: noncopyable is in namespace boost * lyxlex.h: ditto * lyx_main.h: ditto * lyx_gui.h: ditto * layout.h: ditto * lastfiles.h: ditto * bufferlist.h: ditto * ShareContainer.h: ditto * LyXView.h: ditto * LyXAction.h: ditto * LaTeX.h: ditto 2001-03-14 Angus Leeming * Merging changes from BRANCH_MVC back into HEAD. * Makefile.am: added controllers/libcontrollers.la to lyx_DEPENDENCIES 2001-03-15 John Levon * BufferView_pimpl.C: change from intl.C * combox.h: * combox.C: * Makefile.am: move combox.* * form1.h: * form1.C: * lyx_gui.C: * intl.h: * intl.C: remove dialog (covered by prefs) 2001-03-14 Angus Leeming * lyxfunc.C (Dispatch): removed redundant break statement. 2001-03-14 Juergen Vigna * tabular.C (l_getline): pay attention on \r\n (from Windows-files) 2001-03-14 Lars Gullik Bjønnes * buffer.C: add hack to fix compability reading of minipages. 2001-03-13 Dekel Tsur * buffer.C (getLists): Cleanup. 2001-03-13 Jean-Marc Lasgouttes * lyxfont.C (update): don't honor toggleall on font size. 2001-03-13 John Levon * bmtable.c: * bmtable.h: * Makefile.am: moved to frontends/xforms/ * lyx_gui_misc.C: * lyxfunc.C: * BufferView_pimpl.C: changes for moved mathpanel 2001-03-12 John Levon * gettext.h: fix gettext_init() in --disable-nls 2001-03-12 Jean-Marc Lasgouttes * LaTeXFeatures.C (getMacros): add a .c_str() when using sstream. 2001-03-09 John Levon * lyx.C: * lyx.h: strip external form 2001-03-12 John Levon * BufferView_pimpl.C: add comment, destroySplash() 2001-03-12 John Levon * BufferView_pimpl.C: * LyXAction.C: * buffer.C: * commandtags.h: * lyxfunc.C: use re-worked insetinclude 2001-03-12 Lars Gullik Bjønnes * buffer.C: add using std::stringstream. * lyx_cb.C: readd using std::ios. * buffer.C: add using std::map. * BufferView_pimpl.C: add using std::vector. * ShareContainer.h: add std:: to swap. * buffer.h: add some typedefs * buffer.C (getLists): use them (getLists): renamed from getTocList. add a counter for the different float types and use it in the generated string. (getLists): use the same counter for the NEW_INSETS and the "non" NEW_INSETS * lyx_cb.h: remove unused items, includes, using etc. * ShareContainer.h: remove some commented code, add more comments and "documentation". 2001-03-11 Lars Gullik Bjønnes * buffer.C (getTocList): make the list also when NEW_INSETS is defined. * buffer.h: remove TocType * buffer.C (getTocList): change to return a map >, implement for dynamic number of list. * CutAndPaste.[Ch] (checkPastePossible): remove unused arg * text2.C (PasteSelection): adjust * CutAndPaste.C (pasteSelection): adjust * FloatList.C (FloatList): update from the new_insets branch. * Floating.[Ch]: ditto * LaTeXFeatures.C: ditto * buffer.C: ditto * lyxlex_pimpl.C: ditto * paragraph.C (Last): remove when NEW_INSETS is defined. * other file: changes because of the above. 2001-03-09 Lars Gullik Bjønnes * lyxparagraph.h: rename next to next_, previous to previous_, make them private for NEW_INSETS. Rename Next() to next(), Previous() to previous(). * other files: changes because of the above. 2001-03-08 Dekel Tsur * BufferView.h: * lyxparagraph.h: Add '#include "LString.h"' to fix compilation problem. 2001-03-08 Jean-Marc Lasgouttes * main.C (main): pass lyx_localedir to gettext_init(). * gettext.h: remove locale_init and gettext_init macros * gettext.C (locale_init): new function (gettext_init): new function * lyx_gui.C (LyXGUI): use locale_init() instead of explicit setlocale(). 2001-03-07 Edwin Leuven * Moved credits to frontends: * credits.[Ch]: removed * credits_form.[Ch]: removed * lyx_gui_misc.C: remove credits stuff * Makefile.am: 2001-03-07 Lars Gullik Bjønnes * lyx_main.C: make toplevel_keymap a boost::scoped_ptr. * kbmap.[Ch]: make kb_key::table a boost::shared_ptr, remove unneeded destructor. * intl.[Ch] (Intl): free the fd_form_keymap, make the fd_form_keymap a standalone pointer again. * ColorHandler.[Ch]: make lyxColorHandler a boost::scoped_ptr 2001-03-06 John Levon * Makefile.am: * filedlg.h: * filedlg.C: * LyXAction.C: * ToolbarDefaults.C: * bufferlist.C: * commandtags.h: * form1.C: * form1.h: * lyx_cb.C: * lyx_cb.h: * lyxfunc.h: * lyxfunc.C: * BufferView_pimpl.C: use new file dialog in GUII * lyx_cb.h: * lyx_cb.C: remove LayoutsCB to Toolbar 2001-03-07 Jean-Marc Lasgouttes * ShareContainer.h (get): add std:: qualifier 2001-03-06 Jean-Marc Lasgouttes * ShareContainer.h: define a proper ShareContainer::value_type type (and use typename to please compaq cxx) 2001-03-06 Lars Gullik Bjønnes * lyxparagraph.h: move serveral local vars to ParameterStruct/ParagraphParameters., use ShareContainer in FontTable., make vars in FontTable private and add getter and setter. * paragraph.C: changes because of the above. * lyxfont.h: remove copy constructor and copy assignment. (the default ones is ok), move number inside FontBits. move inlines to lyxfont.C * lyxfont.C: add number to initializaton of statics, move several inlines here. constify several local vars. some whitespace cleanup. Dont hide outerscope variables. * Spacing.h: add two new constructors to match the set methods. * ShareContainer.h: new file, will perhaps be moved to support * ParameterStruct.h: new file * ParagraphParameters.h: new file * ParagraphParameters.C: new file * Makefile.am (lyx_SOURCES): add ParagraphParameters.C, ParagraphParameters.h, ParameterStruct.h and ShareContainer.h * BufferView_pimpl.C: ParagraphParameter changes. * buffer.C: Likewise. * bufferview_funcs.C: Likewise. * text.C: Likewise. * text2.C: Likewise. 2001-03-06 Jean-Marc Lasgouttes * lyxfind.C (LyXReplace): do not redefine default argument in implementation. (IsStringInText): ditto (SearchForward): ditto (SearchBackward): ditto 2001-03-06 Juergen Vigna * lyxfind.C (IsStringInText): put parentes around expressions. 2001-03-05 Edwin Leuven * lyxfind.[Ch]: find stuff moved out of text2.C/lyxtext.h 2001-02-23 John Levon * lyx_main.C: add ISO_Left_Tab as bind synonym for Tab * stl_string_fwd.h: add comment * lyx_gui_misc.C: killed ALWAYS_CLOSE_MATH_PANELS * tabular.h: * tabular.C: remove unused DocBook methods * intl.C: * language.C: * paragraph.C: * buffer.C: killed DO_USE_DEFAULT_LANGUAGE 2001-03-01 Jean-Marc Lasgouttes * lyx_gui.C: do not include language.h. * bufferview_funcs.C (ToggleAndShow): do not provide optional arguments in function implementation. 2001-02-28 Lars Gullik Bjønnes * BufferView_pimpl.C: add 2001-02-27 Lars Gullik Bjønnes * BufferView_pimpl.C: add using std::find_if 2001-02-27 José Matos * LaTeXFeatures.C (getIncludedFiles): call to BasePath replaced by OnlyPath. 2001-02-11 José Matos * buffer.C (makeDocBookFile): command styles now have a parameter as "title" by default. 2001-02-23 Edwin Leuven * layout_forms.[Ch]: removed * lyx_cb.[Ch]: out character * lyx_gui.C: out character * lyx_gui_misc.C: out character * bufferview_funcs.C: : out character, added toggleall as parameter in ToggleAndShow 2001-02-26 Dekel Tsur * lyxfunc.C (getStatus): Fix the LFUN_EXPORT case. * text2.C (SetCurrentFont): Disable number property at boundary. 2001-02-26 Juergen Vigna * lyxfunc.C (getStatus): added a string argument override function so that this is correctly called from LyXFunc::Dispatch if it contains a do_not_use_argument which is used! (Dispatch): added check for "custom" export and call appropriate func. 2001-02-23 Dekel Tsur * lyxrc.C: Add language_command_local, language_use_babel and language_global_options. * lyxfont.C (latexWriteStartChanges): Use language_command_local. * buffer.C (makeLaTeXFile): Use language_use_babel and language_global_options. 2001-02-23 Juergen Vigna * lyxfunc.C (Dispatch): removed the whole part of the switch statement which works with LyXText and putted it inside BufferView. Here now we only call for that part the BufferView::Dispatch() function. * BufferView.C (Dispatch): added. * BufferView_pimpl.C (Dispatch): added! Here are now all dispatch functions which needs to use a LyXText over from LyXFunc. (MenuInsertLyXFile): added (getInsetByCode): added (moveCursorUpdate): added (static TEXT): added 2001-02-22 Juergen Vigna * BufferView_pimpl.C (update): call a status update to see if LyXText needs it. 2001-02-20 Lars Gullik Bjønnes * vc-backend.C (revert): implement for CVS (getLog): implement for CVS 2001-02-20 Juergen Vigna * text2.C (ClearSelection): added BufferView param for inset_owner call * lyxfunc.C (TEXT): added this function and use it instead of directly owner->view()-text of getLyXText(). 2001-02-20 Edwin Leuven * src/layout_forms.C: out preamble * src/layout_forms.h: out preamble * src/lyx_cb.C: out preamble * src/lyx_cb.h: out preamble * src/lyx_gui.C: out preamble * src/lyx_gui_misc.C: out preamble * src/lyxfunc.C: connect with guii preamble 2001-02-19 Angus Leeming * src/buffer.h: tiny clean-ups to allow compilation with DEC cxx. 2001-02-17 Dekel Tsur * LaTeX.C (run): Do not use 'scanres & RERUN' when deciding whether to run bibtex. 2001-02-16 Dekel Tsur * Makefile.am (lyx_SOURCES): Remove BackStack.h 2001-02-16 Lars Gullik Bjønnes * Makefile.am (lyx_SOURCES): removed bibforms.h * vspace.h: doxygen * text.C (GetVisibleRow): make several local vars const * tabular.C: small cleanup. * lyxserver.C (callback): use compare instead of strncmp * lyxparagraph.h: remove all code dep. on HAVE_ROPE, move inclass inlines to after class or to paragraph.C * lyxfont.h: remove friend operator!= * converter.h: move friend bool operator< to non friend and after class def. * combox.h: small cleanup * buffer.h: doxygen, remove unused constructor, move inclas inlies to inlines after class def. * buffer.C (pop_tag): use string operations instead of strcmp * bmtable.c: doxygen, small cleanup * LaTeX.h: remove friend operator== 2001-02-14 Lars Gullik Bjønnes * screen.C: * lyxrc.[Ch]: * lyxfunc.C: * lyxfont.[Ch]: * lyx_cb.C: * intl.[Ch]: * commandtags.h: * buffer.C: * WorkArea.[Ch]: * LyXAction.C: * BufferView_pimpl.C: * BufferView.[Ch]: remove cruft 2001-02-14 Juergen Vigna * lyxfunc.C: removed #if 0 unused code * lyxfunc.C (Dispatch): make LFUN_QUOTE work for InsetText. * BufferView_pimpl.C (update): set updatestatus of inset if needed. * text2.C (SetSelection): added a BufferView * parameter 2001-02-13 Juergen Vigna * lyxfunc.C (Dispatch): fixed protected blank problem. * BufferView2.C (protectedBlank): added LyxText * parameter. * tabular.C (AppendRow): forgot to set row_info of newly added row. (AppendColumn): same as above for column_info. * lyxfunc.C (Dispatch): supported some more functions in InsetText. (moveCursorUpdate): use a LyXText param for support of InsetText. * BufferView_pimpl.C (doubleClick): added support for InsetText. (tripleClick): ditto * lyxfunc.C (LFUN_APPENDIX): changed to use "text" pointer. * BufferView_pimpl.C (update): added LyXText param to honor insets. * bufferview_funcs.C (ToggleAndShow): fixed for text in insets. * text2.C (SetSelection): set correct update status if inset_owner (ToggleFree): ditto 2001-02-12 Lars Gullik Bjønnes * tabular.C: remove some commented code. 2001-02-12 John Levon * BufferView_pimpl.C: call hideSplash() * LyXAction.C: make buffer-child-insert use LFUN_CHILD_CREATE * include_form.h: * bibforms.h: remove * lyxfunc.C: * src/commandtags.h: LFUN_CHILDINSERT -> LFUN_CHILD_INSERT, add LFUN_CHILD_CREATE * counters.h: fix tiny typo * lyx_cb.C: * lyx.h: * lyx_gui.C: * lyx.C: move splash to frontends/xforms/ * lyx_gui_misc.C: move Include and Bibform to frontends * lyxvc.h: clarify comment * vspace.C: tiny housekeeping 2001-02-10 Dekel Tsur * text.C (PrepareToPrint): RTL Fix. * paragraph.C (GetUChar): New method. (String): Use GetUChar. * buffer.C (asciiParagraph): Use GetUChar. 2001-02-09 Dekel Tsur * text.C (GetVisibleRow): Fix selection drawing for RTL text in tables. 2001-02-09 John Levon * buffer.h: * buffer.C: rename to getLogName(), handle build log / latex log nicely 2001-02-09 Jean-Marc Lasgouttes * MenuBackend.C: * MenuBackend.h: remove support for reference menuitem type. 2001-02-07 John Levon * BufferView_pimpl.C: housekeeping * BufferView_pimpl.h: * LyXView.h: * Makefile.am: * Timeout.C: * Timeout.h: * minibuffer.h: move Timeout GUI-I 2001-02-07 Dekel Tsur * lyxrc.C (read): Update converters data-structures. 2001-02-07 Lars Gullik Bjønnes * LaTeX.h (operator!=): add operator != for Aux_Info 2001-02-06 John Levon * Makefile.am: remove LaTeXLog.C, log_form.[Ch] * LaTeXLog.C: deleted, useful code moved to Buffer * buffer.h: * buffer.C: new function getLatexLogName() * lyx_gui_misc.C: * lyx_gui.C: * lyxvc.C: * lyxvc.h: * lyxfunc.C: use frontends for LaTeX and VC logs 2001-02-06 Jean-Marc Lasgouttes * LaTeX.h: yet another std:: that Allan forgot. * Variables.C (set): renamed from isset(), because this clashes with some HP-UX macros (grr). 2001-02-06 Allan Rae * LaTeX.h: Another bug fix. Missing std:: this time. 2001-02-04 Allan Rae * paragraph.C (TeXOnePar): Partial fix for the '\n' generation in floats problem. I've left it commented out because it's not quite correct. It should also test that the current object is a table or figure inset. But I haven't gotten around to figuring out how to do that. I *think* it'll be something like: "table" == inset.type() * LaTeX.h (operator==): Aux_Info should have a friend that returns a bool. 2001-02-02 Dekel Tsur * LaTeX.C (scanAuxFile): A rewrite of this method. It now returns all the citation/databases/styles in the auxilary file. (run): Rerun latex if there was a babel language error. 2001-02-01 Dekel Tsur * text.C (Backspace): Preserve the font when changing newline char with a space. (BreakParagraph): If the cursor is before a space, delete the space. * lyx_cb.C (QuitLyX): Do not save files when running with no gui. 2001-01-31 Dekel Tsur * BufferView2.C (ChangeInsets): Renamed from ChangeRefs. Accept a new argument (code). (ChangeCitationsIfUnique): New method. * paragraph.C (GetPositionOfInset): Handle bibkey. 2001-01-29 Jean-Marc Lasgouttes * BufferView_pimpl.h: change type of Position::par_pos to LyXParagraph::size_type. 2001-01-29 Dekel Tsur * BufferView_pimpl.C (savePosition, restorePosition): Write messages to minibuffer. 2001-01-28 José Matos * buffer.C (makeDocBookFile): adds support for document language. A silly restriction on the name of LatexCommand types where removed. Added support for CDATA sections, allows to chars unescaped, used among others in code, to avoid escape < and >. 2001-01-27 Dekel Tsur * BufferView_pimpl.C (savePosition, restorePosition): Use a vector of saved positions instrad of a stack. Furthermore, a position is stored using paragraph id/paragraph position. * commandtags.h: Add LFUN_BOOKMARK_SAVE and LFUN_BOOKMARK_GOTO. Remove LFUN_REF_BACK. 2001-01-27 Dekel Tsur * converter.C (dvipdfm_options): New method. 2001-01-26 Dekel Tsur * vspace.C (isValidLength): Fix for empty input string. 2001-01-26 Jean-Marc Lasgouttes * LyXAction.C (init): change description of LFUN_FIGURE to "Insert Graphics" 2001-01-25 Jean-Marc Lasgouttes * LaTeX.C: add using directive 2001-01-24 Dekel Tsur * MenuBackend.C (expand): Fix the sorting of the formats. 2001-01-24 John Levon * lyx_main.C: tiny error message fix 2001-01-24 Jean-Marc Lasgouttes * lyx_gui.C (LyXGUI): force the LC_NUMERIC locale to "C" after calling fl_initialize(). This fixes the problem with ',' as decimal separator in text files. 2001-01-24 Dekel Tsur * trans.C (process): Fix the keymap bug. 2001-01-23 Dekel Tsur * LaTeX.C (scanAuxFiles): New method. Provides support for multiple bibliographies (when using the bibtopic/bibunits pacakges). (scanLogFile) Scan for "run BibTeX" messages. * buffer.C (makeLaTeXFile): Do not load the ae package when using OT1 font encoding. Also, load the aecompl package if the ae package is loaded. * tex-strings.C: Add "ae" to tex_fonts[] (from Matej Cepl). 2001-01-22 Jean-Marc Lasgouttes * texrow.C (increasePos): turn two error messages into debug messages. 2001-01-20 Dekel Tsur * LaTeX.C (scanAux): Handle the \@input macro. (runBibTeX): Use scanAux(). * language.C (latex_options_): New field. * LaTeXFeatures.C (getMacros): Add language macros. * buffer.C (makeLaTeXFile): Small fix. 2001-01-19 Jean-Marc Lasgouttes * lyxfunc.C: fix the name of the inset for LFUN_CHILDINSERT * text2.C: add a using directive. 2000-01-17 John Levon * BufferView2.C: * lyx_gui_misc.h: * lyxfr1.C: * lyxfunc.C: kill LyXBell. 2001-01-17 Dekel Tsur * text.C (IsBoundary): Remove the error message * WorkArea.C (work_area_handler): Decrease keyboard purge threshold. * lyxrc.C (setDefaults): Correct initialization value for font_norm_type. 2001-01-15 Dekel Tsur * BufferView2.C (gotoInset): New method. Replaces gotoNote() and gotoError(). * text2.C (GotoNextInset): New method. Replaces GotoNextError() and GotoNextNote(). * src/LyXAction.C: Added reference-next. * text.C (InsertChar): Use contains instead of strchr. * lyx_cb.C (MenuInsertLabel): Enable default value code. 2001-01-13 Dekel Tsur * paragraph.C (SimpleTeXOnePar) Put \protect before paragraph alignment commands (when needed). * text.C (InsertChar): Add ':' to number separator chars.