X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ChangeLog;h=cf1f3e095743f4237966e738ab29ceddee483983;hb=db0716f6669599f9b6293f77223cd017810295ca;hp=a6aefa1d366b16052c8e0822083819323197d8f5;hpb=d3fc8a3e29a23696d456e44ba7bb2bef23bbbe60;p=lyx.git diff --git a/ChangeLog b/ChangeLog index a6aefa1d36..cf1f3e0957 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,1231 @@ +2000-03-20 Jean-Marc Lasgouttes + + * src/LColor.C: made the command inset background a bit lighter. + +2000-03-20 Hartmut Goebel + + * lib/layouts/stdstruct.inc: split into stdtitle.inc and + stdstruct.inc. Koma-Script added some title elements which + otherwise have been listed below "bibliography". This split allows + adding title elements to where they belong. + + * lib/layouts/scrclass.inc: changed to include stdtitle.inc, then + define the additional tilte elements and then include + stdstruct.inc. + + * many other layout files: changed to include stdtitle.inc just + before stdstruct.inc. + +2000-03-18 Dekel Tsur + + * src/buffer.C: (save) Added the option to store all backup files + in a single directory + + * src/lyxrc.[Ch]: Added variable \backupdir_path + + * lib/lyxrc.example: Added descriptions of recently added variables + + * src/insets/insetbib.[Ch]: Fixed few bugs (crash when editing a + bibtex inset, not closing the bibtex popup when deleting the inset) + +2000-03-17 Jean-Marc Lasgouttes + + * src/lyx_cb.C: add a couple using directives. + +2000-03-17 José Abílio Matos + * src/lyx_cb.C (RunLinuxDoc) Removed the flag==-1 option for linuxdoc + import based on the filename. + + * src/bufferlist.C () Removed the call to RunLinuxDoc where a linuxdoc + file would be imported at start, if the filename where of a sgml file. + + * src/support/filetools.C (IsSGMLfilename) Removed, no longer needed. + + * src/support/filetools.h (IsSGMLfilename) Removed, no longer needed. + +2000-03-16 Dekel Tsur + * src/lyxfont.h Replaced the member variable bits.direction by the + member variable lang. Made many changes in other files. + This allows having a multi-lingual document + + * src/lyxfunc.C, src/lyx_cb.C Added a new command "language " + that change the current language to . + Removed the command "font-rtl" + + * src/buffer.C Changed LYX_FORMAT to 2.16 (as I changed the file + format for Hebrew documents) + + * src/lyxrc.C, src/lyxfunc.C Added a new lyxrc command "auto_mathmode" + When auto_mathmode is "true", pressing a digit key in normal mode + will cause entering into mathmode. + If auto_mathmode is "rtl" then this behavior will be active only + when writing right-to-left text. + + * src/text2.C (InsertStringA) The string is inserted using the + current font. + + * src/paragraph.C (GetEndLabel) Gives a correct result for + footnote paragraphs. + + * src/paragraph.C (PreviousBeforeFootnote) Fixed a small bug + +2000-03-16 Lars Gullik Bjønnes + + * src/text.C (Backspace): move RemoveParagraph and RemoveRow in + front of PasteParagraph. Never insert a ' '. This should at least + fix some cause for the segfaults that we have been experiencing, + it also fixes backspace behaviour slightly. (Phu!) + + * src/support/lstrings.C (compare_no_case): some change to make it + compile with gcc 2.95.2 and stdlibc++-v3 + + * src/text2.C (MeltFootnoteEnvironment): change type o + first_footnote_par_is_not_empty to bool. + + * src/lyxparagraph.h: make text private. Changes in other files + because of this. + (fitToSize): new function + (setContentsFromPar): new function + (clearContents): new function + (SetChar): new function + + * src/paragraph.C (readSimpleWholeFile): deleted. + + * src/lyx_cb.C (InsertAsciiFile): don't use a LyXParagraph to hold + the file, just use a simple string instead. Also read the file in + a more maintainable manner. + + * src/text2.C (InsertStringA): deleted. + (InsertStringB): deleted. + +2000-03-15 Lars Gullik Bjønnes + + * src/text2.C (DeleteEmptyParagraphMechanism): don't run, + RedoParagraphs from the doublespace handling part, just set status + to NEED_MORE_REFRESH. Also don't update cursor position (should be + done, but perhaps not like this.) + +2000-03-14 Jean-Marc Lasgouttes + + * src/text2.C (InsertStringA): don't forget to insert a META_INSET + character when inserting an inset. + +2000-03-12 Lars Gullik Bjønnes + + * src/bufferparams.C (readLanguage): now takes "default" into + consideration. + + * src/lyx_main.C (LyX): remove the setup of lyxrc. (new) + also initialize the toplevel_keymap with the default bindings from + lyxrc. + + * src/buffer.C (Buffer): remove lyxrc from the parameters. + + * all files using lyxrc: have lyxrc as a real variable and not a + pointer. remove all extern LyXRC * lyxrc. The equiv to this is + done in lyxrc.h. + + * src/lyxrc.C: remove double call to defaultKeyBindings + + * src/toolbar.[Ch]: Let the ToolbarDefaults handle the reading of + toolbar defauls using lyxlex. Remove enums, structs, functions + related to this. + + * src/lyxrc.h: use ToolbarDefaults instead of Toolbar for storing + toolbar defaults. Also store default keybindings in a map. + + * src/ToolbarDefaults.[Ch]: New file. This class is used for + storing the toolbar defaults without any xforms dependencies. + + * src/insets/figinset.C: patch posted to list by Andre Poenitz + applied. Changed to use iterators. + +2000-03-11 Kayvan A. Sylvan + + * development/lyx.spec.in: Fix to ``unset LINGUAS'' line for + systems that don't have LINGUAS set to begin with. + +2000-03-10 Lars Gullik Bjønnes + + * src/text2.C (DeleteEmptyParagraphMechanism): small fix posted to + the list by Dekel Tsur. + +2000-03-10 Jean-Marc Lasgouttes + + * src/insets/insetgraphics.C (GraphicxCB): declare with "C" linkage. + * src/insets/form_graphics.C: ditto. + + * src/insets/inseturl.C (Latex): the free_spc argument is not used. + +2000-03-10 Lars Gullik Bjønnes + + * src/bufferparams.C (readLanguage): use the new language map + + * src/intl.C (InitKeyMapper): use the new language map + + * src/lyx_gui.C (create_forms): use the new language map + + * src/language.[Ch]: New files. Used for holding the information + about each language. Now! Use this new language map enhance it and + make it really usable for our needs. + +2000-03-09 Dekel Tsur + + * screen.C (ShowCursor): Removed duplicate code. + (ShowManualCursor): Support for 3 cursor shapes: Bar (default), + L (LTR text in RTL document), and reversed-L (RTL text in LTR document) + + * src/text.C (NextBreakPoint,Fill): Moved declaration of left_margin + + * src/lyxtext.h + * src/text.C Added TransformChar method. Used for rendering Arabic + text correctly (change the glyphs of the letter according to the + position in the word) + + * src/buffer.C + * src/paragraph.C + * src/lyxrc.h + * src/lyxrc.C Added lyxrc command {language_command_begin, + language_command_end,language_command_ltr,language_command_rtl, + language_package} which allows the use of either arabtex or Omega + for Arabic + + * src/lyx_gui.C (init) + * src/lyxrc.h + * src/lyxrc.C Added lyxrc command screen_font_encoding_menu. Allows + to use encoding for menu fonts which is different than the encoding + for screen fonts + + * src/buffer.C (makeLaTeXFile): If params.language = "default", + do not load the babel package. + To write an English document with Hebrew/Arabic, change the document + language to "english". + + * src/text2.C (SetCounter): Fixed appendix labels for Hebrew document + (alphaCounter): changed to return char + (loweralphaCounter, hebrewCounter, romanCounter): New functions + + * lib/lyxrc.example Added examples for Hebrew/Arabic + + * src/layout.h + * src/layout.C Added layout command endlabeltype + + * src/paragraph.C Added GetEndLabel(),LastPhysicalPar() const + + * src/text.C (GetVisibleRow): Draw a box at the end of proof layout + +2000-03-10 Lars Gullik Bjønnes + + * src/mathed/math_delim.C (search_deco): return a + math_deco_struct* instead of index. + +2000-03-09 Lars Gullik Bjønnes + + * All files with a USE_OSTREAM_ONLY within: removed all code that + was unused when USE_OSTREAM_ONLY is defined. + + * src/support/lyxalgo.h (sorted): rewrote to use plain '<' instead + of any less. Removed header and using. + + * src/text.C (GetVisibleRow): draw the string "Page Break + (top/bottom)" on screen when drawing a pagebreak line. + +2000-03-09 Jean-Marc Lasgouttes + + * lib/doc/LaTeXConfig.lyx.in: add description of textclass llncs. + + * src/mathed/math_macro.C (draw): do some cast magic. + (Metrics): ditto. + + * src/mathed/math_defs.h: change byte* argument to byte const*. + + * src/mathed/formulamacro.[Ch]: add free_spc to Latex() method. + + * src/insets/insetfoot.[Ch]: Clone() always returns an Inset* (well I + know it is right to return InsetFoot* too, but cxx does not like + it...). + + * src/insets/insetcollapsable.[Ch] (Clone): make const. + + * development/lyx.spec.in: unset LINGUAS to avoid i18n problems. + + * src/mathed/math_delim.C: change == to proper assignment. + +2000-03-09 Juergen Vigna + + * src/insets/insettext.C (setPos): fixed various cursor positioning + problems (via mouse and cursor-keys) + (LocalDispatch): added posibility to add a Ctrl-Enter inside a text + inset (still a small display problem but it works ;) + + * src/insets/insetcollapsable.C (draw): added button_top_y and + button_bottom_y to have correct values for clicking on the inset. + + * src/support/lyxalgo.h: commented out 'using std::less' + +2000-03-08 Juergen Vigna + + * src/insets/insetcollapsable.C (InsetButtonRelease): Now a + Button-Release event closes as it is alos the Release-Event + which opens it. + + * src/lyxfunc.C (Dispatch): forgot a break in the LFUN_INSET_ERT + +2000-03-07 Kayvan A. Sylvan + + * lib/layouts/literate-scrap.inc: Fixed initial comment. Now we + can add multiple spaces in Scrap (literate programming) styles... + which, by the way, is how I got hooked on LyX to begin with. + + * src/mathed/formula.C (Write): Added dummy variable to an + inset::Latex() call. + (Latex): Add free_spacing boolean to inset::Latex() + + * src/mathed/formula.h (Latex): Added free_spacing boolean arg. + + * src/insets/lyxinset.h: Changed definition of the inset::Latex() + virtual function to include the free_spacing boolean from + the containing paragraph's style. + + * src/insets/inseturl.C, src/insets/inseturl.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insettext.C, src/insets/insettext.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetspecialchar.C, src/insets/insetspecialchar.h (Latex): + Added free_spacing boolean and made sure that if in a free_spacing + paragraph, that we output normal space if there is a protected space. + + * src/insets/insetref.C, src/insets/insetref.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetquotes.C, src/insets/insetquotes.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetparent.C, src/insets/insetparent.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetlatexaccent.C, src/insets/insetlatexaccent.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetlatex.C, src/insets/insetlatex.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetlabel.C, src/insets/insetlabel.h (Latex): Added + free_spacing boolean arg to match inset.h + + * src/insets/insetinfo.C, src/insets/insetinfo.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetinclude.C, src/insets/insetinclude.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetgraphics.C, src/insets/insetgraphics.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/inseterror.C, src/insets/inseterror.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetcommand.C, src/insets/insetcommand.h (Latex): + Added free_spacing boolean arg to match inset.h + + * src/insets/insetbib.C, src/insets/insetbib.h (Latex): Added + free_spacing boolean arg to match inset.h + + * src/insets/figinset.C, src/insets/figinset.h (Latex): Added + free_spacing boolean arg to match inset.h + + * src/text2.C (DeleteEmptyParagraphMechanism): Fix this to + ignore free_spacing paragraphs. The user's spaces are left + alone. + + * src/text.C (InsertChar): Fixed the free_spacing layout + attribute behavior. Now, if free_spacing is set, you can + add multiple spaces in a paragraph with impunity (and they + get output verbatim). + (SelectSelectedWord): Added dummy argument to inset::Latex() + call. + + * src/paragraph.C (TeXOnePar): Added dummy args to inset::Latex(...) + calls. + + * src/lyxfunc.C (Dispatch): Hard-spaces input in free_spacing + paragraph layouts now only input a simple space instead. + Special character insets don't make any sense in free-spacing + paragraphs. + + * src/buffer.C (parseSingleLyXformat2Token): Code to convert + hard-spaces in the *input* file to simple spaces if the layout + is free-spacing. This converts old files which had to have + hard-spaces in free-spacing layouts where a simple space was + preferrable. + (writeFileAscii): Added free_spacing check to pass to the newly + reworked inset::Latex(...) methods. The inset::Latex() code + ensures that hard-spaces in free-spacing paragraphs get output + as spaces (rather than "~"). + +2000-03-09 Lars Gullik Bjønnes + + * src/mathed/math_delim.C (draw): draw the empty placeholder + delims with a onoffdash line. + (struct math_deco_compare): struct that holds the "functors" used + for the sort and the binary search in math_deco_table. + (class init_deco_table): class used for initial sort of the + math_deco_table. + (search_deco): use lower_bound to do a binary search in the + math_deco_table. + +2000-03-08 Lars Gullik Bjønnes + + * src/lyxrc.C: a small secret thingie... + + * src/lyxlex.C (printTable): changed to take a ostream as paramter + and to not flush the stream as often as it used to. + + * src/support/lyxalgo.h: new file + (sorted): template function used for checking if a sequence is + sorted or not. Two versions with and without user supplied + compare. Uses same compare as std::sort. + + * src/lyxlex.C (LyXLex): check if the table is sorted, if not sort + it and give warning on lyxerr. + (pushTable): ditto + (struct compare_tags): struct with function operators used for + checking if sorted, sorting and lower_bound. + (search_kw): use lower_bound instead of manually implemented + binary search. + +2000-03-08 Jean-Marc Lasgouttes + + * src/insets/insetcollapsable.h: fix Clone() declaration. + * src/insets/insetfoot.h: ditto. + + * src/insets/lyxinset.h: remove an extra comma at the end of enum. + +2000-03-08 Juergen Vigna + + * src/insets/lyxinset.h: added owner call which tells us if + this inset is inside another inset. Changed also the return-type + of Editable to an enum so it tells clearer what the return-value is. + + * src/insets/insettext.C (computeTextRows): fixed computing of + textinsets which split automatically on more rows. + + * src/insets/insetert.[Ch]: changed this to be of BaseType + InsetCollapsable. + + * src/insets/insetfoot.[Ch]: added footnote inset + + * src/insets/insetcollapsable.[Ch]: added this BaseClass for + collapsable insets (like footnote, ert, ...) + +2000-03-08 Lars Gullik Bjønnes + + * src/lyxdraw.h: remvoe file + + * src/lyxdraw.C: remove file + + * src/insets/insettext.C: added . + +2000-03-07 Lars Gullik Bjønnes + + * src/mathed/math_panel.C (delim_cb): case MM_OK use string stream + (matrix_cb): case MM_OK use string stream + + * src/mathed/formula.C (LocalDispatch): case LFUN_SETXY use string + stream. + + * src/mathed/math_macro.C (draw): use string stream + (Metrics): use string stream + + * src/paragraph.C (TeXFootnote): for case LyXParagraph::FIG, write + directly to the ostream. + + * src/vspace.C (asString): use string stream. + (asString): use string stream + (asLatexString): use string stream + + * src/lyx_cb.C (UpdateLayoutDocument): use string stream for + setting Spacing::Other. + + * src/LaTeXFeatures.C (getPackages): use string stream instead of + sprintf when creating the stretch vale. + + * src/text2.C (alphaCounter): changed to return a string and to + not use a static variable internally. Also fixed a one-off bug. + (SetCounter): changed the drawing of the labels to use string + streams instead of sprintf. + + * src/support/lyxmanip.h: rewrite the newlineanDepth ostream + manipulator to use a scheme that does not require library support. + This is also the way it is done in the new GNU libstdc++. Should + work with DEC cxx now. + +2000-03-06 Lars Gullik Bjønnes + + * src/mathed/math_inset.h (Write(ostream & os): add a space at the + end. This fixes a bug. + + * src/mathed (all files concerned with file writing): apply the + USE_OSTREAM_ONLY changes to mathed too. + + * src/support/DebugStream.h: make the constructor explicit. + + * src/lyxfont.C (latexWriteStartChanges): small bug related to + count and ostream squashed. + +2000-03-06 Jean-Marc Lasgouttes + + * src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h. + + * src/buffer.C (makeLaTeXFile): add a .c_str(), since + ostringstream uses STL strings, and we might not. + + * src/insets/insetspecialchar.C: add using directive. + * src/insets/insettext.C: ditto. + +2000-03-06 Lars Gullik Bjønnes + + * lib/layouts/seminar.layout: feeble attempt at a layout for + seminar.cls, far from completet and could really use some looking + at from people used to write layout files. + + * src/support/lyxmanip.h (newlineAndDepth): ostream manipulator to + use instead of the AddNewlineAndDepth funtion in lyx_cb.C. This is + a lot nicer and works nicely with ostreams. + + * src/mathed/formula.C (draw): a slightly different solution that + the one posted to the list, but I think this one works too. (font + size wrong in headers.) + + * src/insets/insettext.C (computeTextRows): some fiddling on + Jürgens turf, added some comments that he should read. + + * src/lyxrc.C: remove all traces of RC_NOMENUACCELERATORS, never + used and it gave compiler warnings. + RC_SHOW_BANNER + "\\show_banner" added, also to reading and + writing of lyxrc. + + * src/lyx_gui.C (create_forms): do the right thing when + show_banner is true/false. + + * src/lyx_cb.C (TimerCB): no need to close or do anything if + show_banner is false. + + * most file writing files: Now use iostreams to do almost all of + the writing. Also instead of passing string &, we now use + stringstreams. mathed output is still not adapted to iostreams. + This change can be turned off by commenting out all the occurences + of the "#define USE_OSTREAM_ONLY 1" lines. + + * src/WorkArea.C (createPixmap): don't output debug messages. + (WorkArea): don't output debug messages. + + * lib/lyxrc.example: added a comment about the new variable + \show_banner + + * development/Code_rules/Rules: Added some more commente about how + to build class interfaces and on how better encapsulation can be + achieved. + +2000-03-03 Juergen Vigna + + * src/insets/insetert.C (InsetERT): Now ERT-insets break row + automatically with the width of the LyX-Window + + * src/insets/insettext.C (computeTextRows): fixed update bug in + displaying text-insets (scrollvalues where not initialized!) + +2000-03-02 Lars Gullik Bjønnes + + * src/mathed/math_utils.C (MathedLookupBOP): using only res->id == + id in the check of the result from lower_bound is not enough since + lower_bound can return last too, and then res->id will not be a + valid construct. + + * all insets and some code that use them: I have conditionalized + removed the Latex(string & out, ...) this means that only the + Latex(ostream &, ...) will be used. This is a work in progress to + move towards using streams for all output of files. + + * src/text.C (GetColumnNearX): initialize LyXParagraph::size_type + c to 0. + +2000-03-02 Jean-Marc Lasgouttes + + * src/mathed/math_utils.C (MathedLookupBOP): fix the search + routine (this fixes bug where greek letters were surrounded by too + much white space). + + * src/support/filetools.C (findtexfile): change a bit the search + algorithm, to fix bug introduced in 1.1.4. Note that --format is + no longer passed to kpsewhich, we may have to change that later. + + * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent + warning options to avoid problems with X header files (from Angus + Leeming). + * acinclude.m4: regenerated. + +2000-03-02 Juergen Vigna + + * src/insets/insettext.C (WriteParagraphData): Using the + par->writeFile() function for writing paragraph-data. + (Read): Using buffer->parseSingleLyXformat2Token()-function + for parsing paragraph data! + + * src/buffer.C (readLyXformat2): removed all parse data and using + the new parseSingleLyXformat2Token()-function. + (parseSingleLyXformat2Token): added this function to parse (read) + lyx-file-format (this is called also from text-insets now!) + +2000-03-01 Lars Gullik Bjønnes + + * src/paragraph.C (BeginningOfMainBody): initialize previous_char + and temp. + + * src/lyxfunc.C (Dispatch(LFUN_MENUSEARCH)): Do the Search dialog + directly instead of going through a func. One very bad thing: a + static LyXFindReplace, but I don't know where to place it. + + * src/lyxfr1.C (GetCurrentSelectionAsString): rewritten to use a + string instead of char[]. Also changed to static. + (GetSelectionOrWordAtCursor): changed to static inline + (SetSelectionOverLenChars): ditto. + + * src/lyxfr0.[Ch] src/lyxfr1.[Ch]: rewrite to get rid of + current_view and global variables. both classes has changed names + and LyXFindReplace is not inherited from SearchForm. + + * src/lyx_gui_misc.C (CloseAllBufferRelatedPopups): remove the + fl_form_search form. + + * src/lyx_gui.C (create_forms): removed the fl_form_search form. + +2000-03-01 Jean-Marc Lasgouttes + + * lib/bind/*.bind: make sure 'buffer-previous' function is not + bound (from Kayvan). + + * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h. + + * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address. + +2000-03-01 Lars Gullik Bjønnes + + * some things that I should comment but the local pub says head to + swirly... + + * comment out all code that belongs to the Roff code for Ascii + export of tables. (this is unused) + + * src/LyXView.C: use correct type for global variable + current_layout. (LyXTextClass::size_type) + + * some code to get the new insetgraphics closer to working I'd be + grateful for any help. + + * src/BufferView2.C (insertInset): use the return type of + NumberOfLayout properly. (also changes in other files) + + * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to + this as a test. I want to know what breaks because of this. + + * src/BufferView.[Ch] (tripleClick): name change from trippleClick. + +2000-02-29 Lars Gullik Bjønnes + + * lib/layouts/stdlists.inc: changed the lyxlist latex definition + to use a \makebox in the label, this allows proper justification + with out using protected spaces or multiple hfills. Now it is + "label" for left justified, "\hfill label\hfill" for center, and + "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5 + should be changed accordingly. + +2000-02-28 Jean-Marc Lasgouttes + + * src/lyxtext.h: change SetLayout() to take a + LyXTextClass::size_type instead of a char (when there is more than + 127 layouts in a class); also change type of copylayouttype. + * src/text2.C (SetLayout): ditto. + * src/LyXView.C (updateLayoutChoice): ditto. + + * src/LaTeX.C (scanLogFile): errors where the line number was not + given just after the '!'-line were ignored (from Dekel Tsur). + + * lib/lyxrc.example: fix description of \date_insert_format + + * lib/layouts/llncs.layout: new layout, contributed by Martin + Vermeer. + +2000-02-25 Lars Gullik Bjønnes + + * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc + 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in + cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C, + insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C, + BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C, + paragraph.C, text.C, text2.C) + +2000-02-25 Jean-Marc Lasgouttes + + * src/insets/insettext.C (LocalDispatch): remove extra break + statement. + + * src/insets/insetert.[Ch] (Clone): change return value to Inset* + * src/insets/insettext.[Ch] (Clone): change return value to Inset* + + * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier + * src/insets/insettext.[Ch] (GetCursorPos): ditto + + * src/insets/insetbib.h: move InsetBibkey::Holder and + InsetCitation::Holder in public space. + +2000-02-25 Lars Gullik Bjønnes + + * src/insets/insettext.h: small change to get the new files from + Juergen to compile (use "string", not "class string"). + + * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string + const & as parameter to LocalDispatch, use LyXFont const & as + paramter to some other func. This also had impacto on lyxinsets.h + and the two mathed insets. + +2000-02-24 Juergen Vigna + + * src/buffer.C: + * src/commandtags.h: + * src/LyXAction.C: + * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT + + * src/BufferView.h + * src/BufferView.C + * src/BufferView2.C: added/updated code for various inset-functions + + * src/insets/insetert.[Ch]: added implementation of InsetERT + + * src/insets/insettext.[Ch]: added implementation of InsetText + + * src/insets/inset.C (Edit): added "unsigned int button" parameter + (draw): added preliminary code for inset scrolling not finshed yet + + * src/insets/inset.C (LocalDispatch): changed arg parameter to string + as it is in lyxfunc.C now + + * src/insets/lyxinset.h: Added functions for text-insets + +2000-02-22 Lars Gullik Bjønnes + + * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into + BufferView and reimplement the list as a queue put inside its own + class. + + * src/bufferlist.[Ch] (updateInset): remove func, not needed. + + * several files: use the new interface to the "updateinsetlist" + + * src/WorkArea.C (work_area_handler): call BufferView::doubleClick + on doubleclick. + (work_area_handler): call BufferView::trippleClick on trippleclick. + + * src/BufferView.C (doubleClick): new function, selects word on + doubleclick. + (trippleClick): new function, selects line on trippleclick. + +2000-02-22 Allan Rae + + * lib/bind/xemacs.bind: buffer-previous not supported + +2000-02-21 Jean-Marc Lasgouttes + + * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods + as const. + +2000-02-20 Lars Gullik Bjønnes + + * src/bufferlist.C: get rid of current_view from this file + + * src/spellchecker.C: get rid of current_view from this file + + * src/vspace.C: get rid of current_view from this file + (inPixels): added BufferView parameter for this func + (asLatexCommand): added a BufferParams for this func + + * src/text.C src/text2.C: get rid of current_view from these + files. + + * src/lyxfont.C (getFontDirection): move this function here from + text.C + + * src/bufferparams.C (getDocumentDirection): move this function + here from text.C + + * src/paragraph.C (getParDirection): move this function here from + text.C + (getLetterDirection): ditto + +2000-02-18 Lars Gullik Bjønnes + + * WorkArea, Painter, LyXScreen: Fixed the crash that occured on + resize due to wrong pixmap beeing used. Also took the opurtunity + to make the LyXScreen stateless on regard to WorkArea and some + general cleanup in the same files. + +2000-02-17 Lars Gullik Bjønnes + + * src/Makefile.am: add missing direction.h + + * src/PainterBase.h: made the width functions const. + + * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some + missing ones. + + * src/insets/insetcommand.C (draw): draw Editable as buttons. + + * src/insets/insetlatexaccent.C (draw): make the accents draw + better, at present this will only work well with iso8859-1. + + * several files: remove the old drawing code, now we use the new + painter only. + + * several files: remove support for mono_video, reverse_video and + fast selection. + +2000-02-17 Juergen Vigna + + * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to + int ** as we have to return the pointer, otherwise we have only + NULL pointers in the returning function. + +2000-02-16 Jean-Marc Lasgouttes + + * src/LaTeX.C (operator()): quote file name when running latex. + +2000-02-15 Lars Gullik Bjønnes + + * src/toolbar.C (set): use fl_set_object_helper for the tooltop + (bubble tip), this removes our special handling of this. + + * Remove all code that is unused now that we have the new + workarea. (Code that are not active when NEW_WA is defined.) + + * Make the uses of XSync not conditionalized on define USE_XSYNC. + +2000-02-15 Jean-Marc Lasgouttes + + * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a + nonexisting layout; correctly redirect obsoleted layouts. + + * lib/lyxrc.example: document \view_dvi_paper_option + + * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option + variable. + + * src/lyx_cb.C (RunScript): handle $$FName for command names. + (PreviewDVI): handle the view_dvi_paper_option variable. + [Both from Roland Krause] + +2000-02-14 Lars Gullik Bjønnes + + * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int, + char const *, int, LyXFont) + (text(int, int, string, LyXFont)): ditto + + * src/text.C (InsertCharInTable): attempt to fix the double-space + feature in tables too. + (BackspaceInTable): ditto. + (GetVisibleRow): make bottom pagebreak line be a onoff line. + +2000-02-11 Lars Gullik Bjønnes + + * src/text2.C (owner): only complain if owner_ is set and bv != 0 + + * src/BufferView.C (resizeCurrentBuffer): set the owner of the + newly found text in textcache to this. + (buffer): set the owner of the text put into the textcache to 0 + + * src/insets/figinset.C (draw): fixed the drawing of figures with + the new Painter. + + * src/text.C src/mathed/math_cursor.C: nailed and fixed the + drawing of mathframe, hfills, protected space, table lines. I have + now no outstanding drawing problems with the new Painter code. + +2000-02-11 Jean-Marc Lasgouttes + + * src/PainterBase.C (ellipse, circle): do not specify the default + arguments. + + * src/LColor.h: add using directive. + + * src/Painter.[Ch]: change return type of methods from Painter& to + PainterBase&. Add a using directive. + + * src/WorkArea.C: wrap xforms callbacks in C functions + C_WorkArea_xxx. + + * lib/layouts/foils.layout: font fix and simplifications from Carl + Ollivier-Gooch. + +2000-02-10 Lars Gullik Bjønnes + + * a lot of files: The Painter, LColor and WorkArea from the old + devel branch has been ported to lyx-devel. Some new files and a + lot of #ifdeffed code. The new workarea is enabled by default, but + if you want to test the new Painter and LColor you have to compile + with USE_PAINTER defined (do this in config.h f.ex.) There are + still some rought edges, and I'd like some help to clear those + out. It looks stable (loads and displays the Userguide very well). + + +2000-02-10 Jean-Marc Lasgouttes + + * src/buffer.C (pop_tag): revert to the previous implementation + (use a global variable for both loops). + + * lib/kbd/iso8859-1.cdef: fix definition for \"{e}. + + * src/lyxrc.C (LyXRC): change slightly default date format. + + * src/paragraph.C (TeXOnePar): Generate a correct latex file when + there is an English text with a footnote that starts with a Hebrew + paragraph, or vice versa. + (TeXFootnote): ditto. + + * src/text.C (LeftMargin): allow for negative values for + parindent. Thanks to Philip Lehman for testing + this out. + + * src/lyx_gui.C (create_forms): add iso88595 as a possible choice + for input encoding (cyrillic) + +2000-02-08 Jean-Marc Lasgouttes + + * src/lyx_gui.C (create_forms): make combo box taller (from Dekel + Tsur). + + * src/toolbar.C (set): ditto + * src/insets/insetbib.C (create_form_citation_form): ditto + + * lib/CREDITS: added Dekel Tsur. + + * lib/kbd/hebrew.kmap, lib/kbd/null.kmap, + lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new + hebrew supports files from Dekel Tsur. + + * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen + + + * src/lyxrc.C: put \date_insert_format at the right place. + + * src/buffer.C (makeLaTeXFile): fix the handling of + BufferParams::sides when writing out latex files. + + * src/BufferView2.C: add a "using" directive. + + * src/support/lyxsum.C (sum): when we use lyxstring, + ostringstream::str needs an additional .c_str(). + +2000-02-07 Lars Gullik Bjønnes + + * src/support/filetools.C (ChangeExtension): patch from Etienne + applied. + + * src/TextCache.C (show): remove const_cast and make second + parameter non-const LyXText *. + + * src/TextCache.h: use non const LyXText in show. + + * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work + with hebrew. + +2000-02-04 Lars Gullik Bjønnes + + * src/support/lyxsum.C: rework to be more flexible. + + * several places: don't check if a pointer is 0 if you are going + to delete it. + + * src/text.C: remove some dead code. + + * src/insets/figinset.C: remove some dead code + + * src/buffer.C: move the BufferView funcs to BufferView2.C + remove all support for insetlatexdel + remove support for oldpapersize stuff + made some member funcs const + + * src/kbmap.C: use a std::list to store the bindings in. + + * src/BufferView2.C: new file + + * src/kbsequence.[Ch]: new files + + * src/LyXAction.C + others: remove all trace of buffer-previous + + * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we + only have one copy in the binary of this table. + + * hebrew patch: moved some functions from LyXText to more + appropriate places. (LyXParagraph, BufferParams, LyXFont) + + * several files: remove support for XForms older than 0.88 + whitespace changes. + remove some #if 0 #endif code + + * src/TextCache.[Ch]: new file. Holds the textcache. + + * src/BufferView.C: changes to use the new TextCache interface. + (waitForX): remove the now unused code. + + * src/BackStack.h: remove some commented code + + * lib/bind/emacs.bind: remove binding for buffer-previous + +2000-02-03 Lars Gullik Bjønnes + + * applied the hebrew patch. + + * src/lyxrow.h: make sure that all Row variables are initialized. + + * src/text2.C (TextHandleUndo): comment out a delete, this might + introduce a memory leak, but should also help us to not try to + read freed memory. We need to look at this one. + + * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0 + (LyXParagraph): initalize footnotekind. + + * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug + forgot this when applying the patch. Please heed the warnings. + + * src/BufferView.C (buffer): a fix for the buffer-reload problem + (aka. reformat problem) + + * src/bufferlist.C (exists): made const, and use const_iterator + (isLoaded): new func. + (release): use std::find to find the correct buffer. + + * src/bufferlist.h: made getState a const func. + made empty a const func. + made exists a const func. + new func: isLoaded + +2000-02-01 Juergen Vigna + + * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert + + * po/it.po: updated a bit the italian po file and also changed the + 'file nuovo' for newfile to 'filenuovo' without a space, this did + annoy me a lot :) + + * src/lyxrc.C (LyXRC): added support for a default insert_date_format + for the new insert_date command. + + * src/lyxfunc.C (Dispatch): added support for a insert_date function + from jdblair, to insert a date into the current text conforming to + a strftime format (for now only considering the locale-set and not + the document-language). + +2000-01-28 Jean-Marc Lasgouttes + + * src/lyxfont.C (textWidth): hopefully better fix for the Array + Bounds Read error seen by purify. The problem was that islower is + a macros which takes an unsigned char and uses it as an index for + in array of characters properties (and is thus subject to the + above error). + (drawText): ditto. + + * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set + correctly the paper sides radio buttons. + (UpdateDocumentButtons): ditto. + +2000-01-27 Lars Gullik Bjønnes + + * src/kbmap.C (getsym + others): change to return unsigned int, + returning a long can give problems on 64 bit systems. (I assume + that int is 32bit on 64bit systems) + +2000-01-27 Jean-Marc Lasgouttes + + * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by + LyXLookupString to be zero-terminated. Really fixes problems seen + by purify, I think. + +2000-01-27 Lars Gullik Bjønnes + + * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to + write a (char*)0 to the lyxerr stream. + + * src/lastfiles.C: move algorithm before the using statemets. + +2000-01-26 Jean-Marc Lasgouttes + + * src/lastfiles.C: move using directives in global scope (egcs 1.x + complains otherwise). + * src/table.C: ditto + + * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data + directory. + + * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable + that I removed earlier... It is really needed. + + * lib/examples/multicol.lyx: new file, splitted from Extended.lyx. + +2000-01-25 Jean-Marc Lasgouttes + + * INSTALL: update xforms home page URL. + + * lib/configure.m4: fix a bug with unreadable layout files. + + * src/table.C (calculate_width_of_column): add "using std::max" + directive. + +2000-01-25 Lars Gullik Bjønnes + + * several files: marked several lines with "DEL LINE", this is + lines that can be deleted without changing anything. + if () // DEL LINE /* this line is _never_ needed. Delete + checks this anyway */ + delete + + * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY + + * src/DepTable.C (update): add a "+" at the end when the checksum + is different. (debugging string only) + + * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused + the next inset to not be displayed. This should also fix the list + of labels in the "Insert Crossreference" dialog. + +2000-01-24 Lars Gullik Bjønnes + + * src/support/LSubstring.C (LSubstring): set pos to string::npos + when regex was not found. + + * src/support/lstrings.C (lowercase): use handcoded transform always. + (uppercase): ditto + + * src/text.C (Delete): fixed the crash. cursor.par->prev and + old_cursor.par->prev could be 0. + + * several files: changed post inc/dec to pre inc/dec + + * src/lastfiles.C (writeFile): use ostream_iterator and copy to + write the lastfiles to file. + + * src/BufferView.C (buffer): only show TextCache info when debugging + (buffer): ditto + (resizeCurrentBuffer): ditto + (workAreaExpose): ditto + + * lib/kbd/iso8859-7.cdef: changed to new quoting scheme + + * lib/kbd/iso8859-2.cdef: changed to new quoting scheme + + * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT + a bit better by removing the special case for \i and \j. + +2000-01-24 Jean-Marc Lasgouttes + + * src/lyx_main.C (easyParse): remove test for bad comand line + options, since this broke all xforms-related parsing. + + * src/kbmap.C (getsym): set return type to unsigned long, as + declared in header. On an alpha, long is _not_ the same as int. + + * src/support/LOstream.h: add a "using std::flush;" + + * src/insets/figinset.C: ditto. + +2000-01-21 Lars Gullik Bjønnes + + * src/bufferlist.C (write): use blinding fast file copy instead of + "a char at a time", now we are doing it the C++ way. + + * src/insets/figinset.C: get rid of struct pidwaitpit, use a + std::list instead. + (addpidwait): reflect move to std::list + (sigchldchecker): ditto + + * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5 + version also. + + * src/paragraph.C (FirstPhysicalPar): remove assert and comment + that obviously was wrong... + + * src/lyxfont.C (textWidth): have c as char c[2] instead of char + c, this avoids warnings with purify and islower. + + * src/insets/figinset.C: rename struct queue to struct + queue_element and rewrite to use a std::queue. gsqueue is now a + std::queue + (runqueue): reflect move to std::queue + (addwait): ditto + + * src/support/lstrings.h (tostr): specialize for bool, otherwise + we would get "1" "0" instead of "true" "false. Also make the tostr + functions inline. + +2000-01-21 Juergen Vigna + + * src/buffer.C (writeFileAscii): Disabled code for special groff + handling of tabulars till I fix this in table.C + +2000-01-21 Jean-Marc Lasgouttes + + * src/support/mkdir.C (mkdir): change second argument of mkdir to + unsigned long int. + * src/support/lyxlib.h: ditto. + +2000-01-20 Lars Gullik Bjønnes + + * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i' + and 'j' look better. This might fix the "macron" bug that has been + observed. + + * src/support/lstrings.[Ch] (tostr): reimplement all the tostr + functions as one template function. Delete the old versions. + + * src/support/lyxsum.C: move using std::ifstream inside + MODERN_STL_STREAMS + + * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C + and putenv.C + + * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used + + * src/mathed/formula.C: delete #include "bufferlist.h" never used + + * src/insets/figinset.C (InitFigures): use new instead of malloc + to allocate memory for figures and bitmaps. + (DoneFigures): use delete[] instead of free to deallocate memory + for figures and bitmaps. + (runqueue): use new to allocate + (getfigdata): use new/delete[] instead of malloc/free + (RegisterFigure): ditto + + * some files: moved some declarations closer to first use, small + whitespace changes use preincrement instead of postincrement where + it does not make a difference. + + * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a + step on the way to use stl::containers for key maps. + + * src/bufferlist.h: add a typedef for const_iterator and const + versions of begin and end. + + * src/bufferlist.[Ch]: change name of member variable _state to + state_. (avoid reserved names) + (makePup): removed + (getFileNames): returns the filenames of the buffers in a vector. + + * configure.in (ALL_LINGUAS): added ro + + * src/support/putenv.C: new file + + * src/support/mkdir.C: new file + 2000-01-20 Allan Rae * lib/layouts/IEEEtran.layout: Added several theorem environments @@ -8,6 +1236,16 @@ * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites (except for those in footnotes of course) +2000-01-19 Lars Gullik Bjønnes + + * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction. + + * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use + std::sort and std::lower_bound instead of qsort and handwritten + binarysearch. + (struct compara): struct that holds the functors used by std::sort + and std::lower_bound in MathedLookupBOP. + 2000-01-19 Jean-Marc Lasgouttes * src/support/LAssert.h: do not do partial specialization. We do