Commit Graph

6 Commits

Author SHA1 Message Date
Bo Peng
94b2999e9e Load local textclass in addTextClass(), reload local layout correctly in LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23199 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 21:25:11 +00:00
Jürgen Spitzmüller
81876c4aed Catch exceptions whenever filesystem::exists is called. Hopefully definitely fixes all those cases that have been reported (bug 4052, bug 4440, bug 4534)
* src/support/filetools.{cpp,h}:
	- new helper function doesFileExist which calls fs::exists and catches exceptions.

* src/Buffer.cpp:
* srcConverterCache.cpp:
* src/Exporter.cpp:
* src/Format.cpp:
* src/LaTeX.cpp:
* src/LyX.cpp:
* src/LyXFunc.cpp:
* src/Session.cpp:
* src/TextClass.cpp:
* src/TextClassList.cpp:
* src/buffer_funcs.cpp:
* src/callback.cpp:
* src/frontends/Controllers/ControlGraphics.cpp:
* src/insets/InsetInclude.cpp:
* src/support/FileMonitor.cpp:
* src/tex2lyx/text.cpp:
	- use doesFileExist instead of plain fs::exists

* src/client/client.cpp:
	- catch exception when calling fs::exists

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:23:28 +00:00
Bo Peng
a9a5382ac5 Avoid loading local layout file multiple times
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21981 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:25:29 +00:00
Bo Peng
4493a50d41 Lyx now starts and asks for reconfigure if no textclass is found (bug 2829)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20521 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 19:33:10 +00:00
Lars Gullik Bjønnes
897436efbb Whitespace cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18550 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-28 22:27:45 +00:00
André Pönitz
6add1994c7 rename LyXTextClass* into TextClass*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 19:53:54 +00:00