Commit Graph

306 Commits

Author SHA1 Message Date
Angus Leeming
555bd9e4d8 Writing code in the presence of preprocessing blocks can be tricky.
Add some brackets to an if-block to ensure that the code does what
is expected of it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9482 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-16 16:53:08 +00:00
Angus Leeming
7b214dd05e The Cygwin path fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9478 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-14 15:53:30 +00:00
Angus Leeming
34dc36afa3 Use "%n$s" rather than "%n%" for n=1,2,3... when calling bformat.
Thanks again, Lars.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9474 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-13 16:50:44 +00:00
Angus Leeming
211c2f3136 The setEnvPath stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9473 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-13 10:10:16 +00:00
Angus Leeming
412f8af4fd Enable "lyx -dbg init" to run.
Tweak gettext search mechanism.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9467 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-12 12:25:30 +00:00
Angus Leeming
f717cb6b22 Get rid of extraneous whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9466 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-12 10:30:46 +00:00
Angus Leeming
078c79d092 Re-enable compilation with Cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9465 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-12 08:27:14 +00:00
Angus Leeming
b5589bf6cf The package reworking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9463 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-10 19:17:43 +00:00
Angus Leeming
abe485494e Specialise the convert template to long for Solaris.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9457 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-07 17:54:12 +00:00
Lars Gullik Bjønnes
5843057992 add specialization for unsigned long, and clean up header file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9454 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-07 13:32:26 +00:00
Lars Gullik Bjønnes
9c2ba3c4ff rename tostr.[Ch] to convert.[Ch]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9448 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-06 16:39:35 +00:00
Lars Gullik Bjønnes
6a55be9506 tostr -> convert and some bformat work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9446 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-06 15:40:49 +00:00
Angus Leeming
717ad4b983 s/MAX_PATH/PATH_MAX/.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9430 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-05 10:29:15 +00:00
Angus Leeming
cbd48ca779 Implement os::current_root for native Win32 builds.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9425 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-04 17:50:25 +00:00
Angus Leeming
ea2982a143 Remove executable status info from typeIndicator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9423 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-04 13:34:10 +00:00
Angus Leeming
7b65e17539 Test for OS support for symbolic links and protect support library code
appropriately.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9421 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-04 13:24:56 +00:00
Angus Leeming
ed6dae8a40 Enable LyX to start up under Cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9415 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-01 13:56:42 +00:00
Angus Leeming
f1e9f57553 * Replace all use of 'slashify_path' with 'internal_path'.
* Specialise 'internal_path' and 'external_path' for Windows and Cygwin.
* Enable LyX to find its system_lyxdir on Windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9401 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-20 16:59:33 +00:00
Angus Leeming
c7d1778e3f Don't forget the Windows drive name when mangling the temporary file name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9393 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-17 12:30:48 +00:00
Angus Leeming
eef5f997f1 An improved HAVE_MKDIR patch that compiles also with MinGW.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9385 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-16 01:03:34 +00:00
Angus Leeming
f88dfdc0dc Get rid of FileInfo::getNumberofLinks().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9384 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-15 21:40:11 +00:00
Angus Leeming
a8a909f25a Conditionally #include headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9381 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-15 21:08:24 +00:00
Angus Leeming
4b7891d873 OS Abstraction of "HOME" and the null device.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9376 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-15 19:35:43 +00:00
Angus Leeming
005322c183 Clean-up interface to os::init.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9372 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-14 16:20:07 +00:00
Angus Leeming
548a928e9b Use ios__binary mode to copy files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9369 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-14 14:17:13 +00:00
Angus Leeming
fb28ff9e2a * os.C: #include "os_win32.h" for _WIN32.
* systemcall.C: The "/n" in "start /min/n" makes no sense under DOS.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9367 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-14 12:29:53 +00:00
Angus Leeming
ba837dca09 Remove trailing slash from -Ifoo/ in the AM_CPPFLAGS rules in the various
Makefile.ams to overcome bug in the MinGW port of g++ 3.4.2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9364 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-14 10:41:09 +00:00
Angus Leeming
5a338c3927 Change glob() API to accept a dir parameter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9313 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-26 14:37:40 +00:00
Angus Leeming
d23bb9eaa8 Clean-up FileFilterList API.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9311 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-26 12:31:39 +00:00
Angus Leeming
8eea28ec80 Give FileFilterList its own .[Ch] files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9305 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-25 11:08:32 +00:00
Jean-Marc Lasgouttes
020972b7f9 get rid of Paragraph::isWord; ignore words with digits in spellchecker
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9268 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-18 14:58:54 +00:00
Lars Gullik Bjønnes
d8dd55eb33 disable conecpt checks for gtk dir, fix concept checks for qt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9262 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-16 23:18:46 +00:00
Lars Gullik Bjønnes
1f9d992ce0 Make us satisfy concept checks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9260 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-16 20:41:38 +00:00
Georg Baum
dacd4cea26 make gettting the file format from file contents work in the correct way ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9218 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-09 19:08:34 +00:00
Lars Gullik Bjønnes
b049f3997a Make it clearer where include files are comming from.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9197 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-07 13:22:51 +00:00
Lars Gullik Bjønnes
36bbe54813 * translator.h: use bind, equal_to instead of equal_1st_in_pair
and equal_2nd_in_pair
* Makefile.am (libsupport_la_SOURCES): remove lyxfunctional.h
* lyxfunctional.h: delete file
* RadioButtonGroup.C (set): use bind, equal_to instead of
equal_2nd_in_pair


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9184 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-06 16:42:30 +00:00
Lars Gullik Bjønnes
ab9e55eb69 * lyxfunctional.h: delete compare_memfun and helper classes
* xformsImage.C (loadableFormats): use bind, equal_to instead of
compare_memfun
* QLImage.C (loadableFormats): use bind, equal_to instead of
compare_memfun
* bufferlist.C (exists): use bind and equal_to instead of
compare_memfun
(getBuffer): ditto
* lyxtextclasslist.C (NumberOfClass): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9183 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-06 16:14:22 +00:00
Lars Gullik Bjønnes
13c24dd556 * lyxfunctional.h: delete back_inserter_fun functions and helper
classes.
* lyx_gui.C (start): use for_each instead of explicit for loop
* cursor.C (insert): use for_each instead of explicit for loop

* bufferlist.C (getFileNames): use std::transform and
std::back_inserter instead of std::copy and lyx::back_inserter_fun.

* buffer_funcs.C (bufferErrors): use for_each instead of explicit
for loop

* buffer.C (changeLanguage): use for_each instead of explicit for
loop
(hasParWithID): implement using getParFromID

* LaTeXFeatures.C: ws change only

* CutAndPaste.C (replaceSelectionWithString): Use a temporary var
to cleanup a bit.

* BufferView_pimpl.C (trackChanges): use for_each instead of
expilicit for loop


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9182 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-06 15:23:12 +00:00
Jean-Marc Lasgouttes
e13d9157bc better fix for bug 1523
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9165 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-04 14:44:35 +00:00
Georg Baum
6fe9e4e30d rename getExtFromContents() to getFormatFromContents()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9141 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-29 15:47:55 +00:00
Angus Leeming
292c3210f6 Naive fix for quoted words with execvp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9128 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-25 14:21:42 +00:00
Lars Gullik Bjønnes
ec94b42f51 Use the preferred calling for Boost.Signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9010 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-26 14:19:47 +00:00
Lars Gullik Bjønnes
53cea42f88 Change to use preffered calling of Boost.Function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9009 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-26 13:34:57 +00:00
Jean-Marc Lasgouttes
09b67226eb fix backwards search (bug 1666)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8988 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-17 16:28:47 +00:00
Jean-Marc Lasgouttes
558e849e69 make LyX work better when run from a directory which name contains spaces or other special characters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8982 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-14 10:20:38 +00:00
Lars Gullik Bjønnes
cf40817160 lyxclient moved from development and cleaned up a bit + some assorted fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8967 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-04 12:13:50 +00:00
Lars Gullik Bjønnes
c2df578151 fix a couple of pch.h files because of a gcc pch bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8965 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-30 00:39:40 +00:00
Lars Gullik Bjønnes
b0fbc29aa3 some support for pch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8947 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-15 21:45:30 +00:00
Jean-Marc Lasgouttes
42afdcb9c4 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8880 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-09 12:37:48 +00:00
Lars Gullik Bjønnes
7c15014ec2 change "support/std_sstream.h" to <sstream>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8849 a592a061-630c-0410-9148-cb99ea01b6c8
2004-07-24 10:55:30 +00:00