]> git.lyx.org Git - features.git/commit
This commit saves the need to check for lyx::use_gui in a number of places.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 15 Oct 2006 21:47:29 +0000 (21:47 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 15 Oct 2006 21:47:29 +0000 (21:47 +0000)
commitc7e365365e74237149c960b9ecaa77bc7c93e608
tree8794e2c2746896e94aea0e306242bd7f87507bd3
parentebf6773c50989372bf1a4d6a3ba66673634e65ff
This commit saves the need to check for lyx::use_gui in a number of places.

* lyx_main.h: define "extern bool lyx::use_gui" here.

* NoGuiFontMetrics.h: new class for command-line LyX

* NoGuiFontLoader.h: new class for command-line LyX

* Application.C:
  - theFontMetrics(): returns the above dummy FontMetrics when use_gui is false.
  - theFontLoader(): returns the above dummy FontLoader when use_gui is false.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15339 a592a061-630c-0410-9148-cb99ea01b6c8
17 files changed:
development/scons/scons_manifest.py
src/frontends/Alert.C
src/frontends/Application.C
src/frontends/Makefile.am
src/frontends/NoGuiFontLoader.h [new file with mode: 0644]
src/frontends/NoGuiFontMetrics.h [new file with mode: 0644]
src/frontends/gtk/xftFontLoader.C
src/frontends/qt3/GuiFontMetrics.C
src/frontends/qt3/qfont_loader.C
src/frontends/qt4/GuiFontLoader.C
src/frontends/qt4/GuiFontMetrics.C
src/insets/insetexternal.C
src/insets/insetgraphicsParams.C
src/lyx_cb.C
src/lyx_main.h
src/lyxfunc.C
src/mathed/MathFactory.C