isAvailable is static

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28702 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-03-04 17:02:22 +00:00
parent fd051070a1
commit 7bd971ff32

View File

@ -1900,7 +1900,7 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
} }
if (package == Encoding::CJK || features.mustProvide("CJK")) { if (package == Encoding::CJK || features.mustProvide("CJK")) {
if (language->encoding()->name() == "utf8-cjk" if (language->encoding()->name() == "utf8-cjk"
&& features.isAvailable("CJKutf8")) && LaTeXFeatures::isAvailable("CJKutf8"))
os << "\\usepackage{CJKutf8}\n"; os << "\\usepackage{CJKutf8}\n";
else else
os << "\\usepackage{CJK}\n"; os << "\\usepackage{CJK}\n";
@ -1921,7 +1921,7 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
break; break;
case Encoding::CJK: case Encoding::CJK:
if (encoding().name() == "utf8-cjk" if (encoding().name() == "utf8-cjk"
&& features.isAvailable("CJKutf8")) && LaTeXFeatures::isAvailable("CJKutf8"))
os << "\\usepackage{CJKutf8}\n"; os << "\\usepackage{CJKutf8}\n";
else else
os << "\\usepackage{CJK}\n"; os << "\\usepackage{CJK}\n";