Commit Graph

47 Commits

Author SHA1 Message Date
Angus Leeming
754d59b4a1 Create a new support function lyx::count to use in place of std::count.
Remove countChar as lyx::count superceeds it.
Use the new function.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3372 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-14 13:04:06 +00:00
Lars Gullik Bjønnes
33a28bdc9c Add string << operators for the other streams as well, and removes
c_str() all places where it is not needed anymore.
(I also add config.h to several files that was missing it)
+ added s string constructor to math_symbolinset

I also change some "while(" to "while ("

mmm ... yes ... I add a "zero()" function to LyXLength... an "empty()"
function did not seem appropriate. changed a couple of places that
checked on length.value() != 0.0.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3149 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 08:04:20 +00:00
Lars Gullik Bjønnes
76ef051b1c LyX Drinkers United: patch 2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2144 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-27 14:10:35 +00:00
Lars Gullik Bjønnes
d1182f17da LyX Drinkers Union: patch 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2141 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-25 00:06:33 +00:00
Jean-Marc Lasgouttes
07ea5f51f0 compilation fixes for compaq cxx + small things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2079 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-01 10:53:24 +00:00
Lars Gullik Bjønnes
f1d829a185 adjust to be able to complile with gcc 3.0, put selection vars into own struct, remove some C string funcs in favour of lstrings ones
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2074 a592a061-630c-0410-9148-cb99ea01b6c8
2001-05-31 02:23:46 +00:00
Lars Gullik Bjønnes
83acbbd523 update copyright year
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2072 a592a061-630c-0410-9148-cb99ea01b6c8
2001-05-30 13:53:44 +00:00
Lars Gullik Bjønnes
2b63437db2 small fix for gcc 3.0, use std::transform in lstrings, implement chars-transpose
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1955 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-25 19:33:52 +00:00
Lars Gullik Bjønnes
47910a7a67 move more support functions into namespace lyx, small other changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1949 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-24 15:25:26 +00:00
Dekel Tsur
75f555e7c0 - Add support for ae package
- Fix for compilers with broken string::find_last_not_of


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1370 a592a061-630c-0410-9148-cb99ea01b6c8
2001-01-23 12:53:05 +00:00
Dekel Tsur
f7a3d05a23 Use contains() instead of strchr().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1336 a592a061-630c-0410-9148-cb99ea01b6c8
2001-01-15 14:05:45 +00:00
Jean-Marc Lasgouttes
6ed000436b Small things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1277 a592a061-630c-0410-9148-cb99ea01b6c8
2000-12-13 13:30:36 +00:00
Lars Gullik Bjønnes
4abaf6ab91 several small patches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1271 a592a061-630c-0410-9148-cb99ea01b6c8
2000-12-10 05:20:36 +00:00
Lars Gullik Bjønnes
893fe4da80 more fixes read ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1267 a592a061-630c-0410-9148-cb99ea01b6c8
2000-12-06 22:24:17 +00:00
Jean-Marc Lasgouttes
577fca3be7 The big KDE reorg + fi l10n update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1255 a592a061-630c-0410-9148-cb99ea01b6c8
2000-12-04 17:18:01 +00:00
Lars Gullik Bjønnes
676e29b916 fix parse error in FormPreferences, make LyX be able to compile with gcc 2.97, use mktemp if mkstemp is not available
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1218 a592a061-630c-0410-9148-cb99ea01b6c8
2000-11-15 03:22:08 +00:00
Jean-Marc Lasgouttes
9c798989d9 Patch from Yves to check whether C functions are defined in std:: namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1209 a592a061-630c-0410-9148-cb99ea01b6c8
2000-11-10 12:33:01 +00:00
Lars Gullik Bjønnes
adaef99e60 some formatting changes some simplifications and removal of dead code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1198 a592a061-630c-0410-9148-cb99ea01b6c8
2000-11-04 10:00:12 +00:00
Jean-Marc Lasgouttes
bdbce4e178 Fix some INFO reports from compaq cxx in support/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1139 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-18 14:07:29 +00:00
Lars Gullik Bjønnes
e7401bd8f2 use more std::functors add some of my own, some change to fl_display etc. read the change log...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1102 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-11 21:06:43 +00:00
Lars Gullik Bjønnes
da003742d9 small patch from Dekel, begin introducing the real boost framework, get rid of the parts of boost that were located in support (block and utility)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1063 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-02 00:55:02 +00:00
Lars Gullik Bjønnes
d6665cba42 get rid of dead code, some new functions constify variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1041 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-26 13:54:57 +00:00
Lars Gullik Bjønnes
f4b8943ebb some nicer code...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@952 a592a061-630c-0410-9148-cb99ea01b6c8
2000-08-03 21:17:52 +00:00
Lars Gullik Bjønnes
4d3288c95b more NEW_INSETS changes, define NEW_MANUBAR as default some other changes, read ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@915 a592a061-630c-0410-9148-cb99ea01b6c8
2000-07-24 21:49:58 +00:00
Jean-Marc Lasgouttes
4b2a999762 GUI-indep toolbar and menus mostly work !
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@913 a592a061-630c-0410-9148-cb99ea01b6c8
2000-07-24 13:53:19 +00:00
Lars Gullik Bjønnes
6bba977f42 FILMagain changes (will need some work)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@807 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-12 11:27:15 +00:00
Jean-Marc Lasgouttes
3c8aba3b55 clear()->erase() ; lots of using directives for cxx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@712 a592a061-630c-0410-9148-cb99ea01b6c8
2000-05-04 10:57:00 +00:00
Lars Gullik Bjønnes
0088121bd8 make text private in LyXParagraph some changes to import ascii file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@608 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-16 04:29:22 +00:00
Lars Gullik Bjønnes
132fe5e132 the freespacing patch from Kayvan, draw the math empty delim with onoffdash, asure that the tables passed to lyxlex is sorted and sort them if not, use std::lower_bound to search in lyxlex tables, use binary search in stead of linear in math_delim::search_deco, we also sort the math_deco_table upon startup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@594 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-09 03:36:48 +00:00
Lars Gullik Bjønnes
d8b96c598c pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the crash in Delete, move to pre ind/dec instead of post inc/dec, try to use ostream_iterator in lastfiles.C, remove some debug output, change the rest of the .cdef files, make display of umlaut better
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@443 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-24 18:34:46 +00:00
Lars Gullik Bjønnes
1bc4b73575 fix some of the bugs reported, should hopefully be a bit better now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@436 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-21 17:41:57 +00:00
Jürgen Vigna
77b87ff5e7 Small change to be able to compile it with egcs under RH6.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@410 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-10 10:17:10 +00:00
Lars Gullik Bjønnes
53b464c5e9 some new (not extensive) changes, some fixes, will probably reverto to .la libs later .o libs is too much a hassle, please read the ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@408 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-08 21:02:58 +00:00
Jean-Marc Lasgouttes
69c0db9984 Add a bunch of using directives for dec cxx. Does not compile yet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@404 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-06 11:35:29 +00:00
Lars Gullik Bjønnes
8dccec5c46 my changes during the holidyas...i expect some compilers to have some problems, but I think that can be solved. Ok these are the main changes: use iostreams for everything, a TextCache to store the text variable in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@403 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-06 02:44:26 +00:00
Lars Gullik Bjønnes
5f3f9ad231 fixes because of SUN CC warnings, bmtable now compiled with C compilator, countChar should also work on CC now, read ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@390 a592a061-630c-0410-9148-cb99ea01b6c8
1999-12-21 06:10:21 +00:00
Asger Ottar Alstrup
4ed68c1bc2 - Got rid of two global variables:
minibuffer and FD_form_main


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@386 a592a061-630c-0410-9148-cb99ea01b6c8
1999-12-19 22:35:36 +00:00
Lars Gullik Bjønnes
b3bc8c1e71 fix in lyxfont.C bogus static_cast, some changes in insetlatexaccent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@380 a592a061-630c-0410-9148-cb99ea01b6c8
1999-12-15 06:12:28 +00:00
Lars Gullik Bjønnes
252db967fb allocation changes to lyxstring, rerun bibtex on database and style change, whitespace changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@337 a592a061-630c-0410-9148-cb99ea01b6c8
1999-11-26 06:57:35 +00:00
Lars Gullik Bjønnes
1d7d3cc4af read ChangeLog, a lot of whitespace changes. experimental use of libtool
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@329 a592a061-630c-0410-9148-cb99ea01b6c8
1999-11-22 16:19:48 +00:00
Lars Gullik Bjønnes
94a6d7ed67 some white-space changes, enum changes because of ridance of definitions.h, block.h added small change in lyxstring.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@311 a592a061-630c-0410-9148-cb99ea01b6c8
1999-11-15 10:54:16 +00:00
Lars Gullik Bjønnes
25e9d75386 tostr and lyxstring::find fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@264 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-27 23:21:38 +00:00
Jürgen Vigna
b8426b61f9 Fixed some bugs and introduced some memory leaks!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@220 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-20 14:35:05 +00:00
Lars Gullik Bjønnes
bd29a5db31 erase->clear, AM_CONDTIONAL for conditional compilation of lyxstring, better LYX_CXX_STL_STRING
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@214 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-19 20:59:27 +00:00
Jean-Marc Lasgouttes
c35b288b74 A bunch of obvious changes to please strict ansi compilers. Not finished.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@210 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-19 15:06:30 +00:00
Lars Gullik Bjønnes
35584afc11 the merge from branch debugstream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@180 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-07 18:44:17 +00:00
Lars Gullik Bjønnes
0eccdd1c36 merge from the string-switch branch and ready for a prelease.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@162 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-02 16:21:10 +00:00