mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Fix support lib dependency problem.
* docstring.C: Implement utf8ToUcs4() locally. * all other files: remove utf8ToUcs4(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17361 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
52eb91c94f
commit
85f66bcd90
@ -70,13 +70,6 @@ using std::cin;
|
||||
using std::endl;
|
||||
|
||||
|
||||
IconvProcessor & utf8ToUcs4()
|
||||
{
|
||||
static IconvProcessor iconv(ucs4_codeset, "UTF-8");
|
||||
return iconv;
|
||||
}
|
||||
|
||||
|
||||
namespace support {
|
||||
|
||||
string itoa(unsigned int i)
|
||||
|
@ -58,7 +58,6 @@
|
||||
#include "support/package.h"
|
||||
#include "support/path.h"
|
||||
#include "support/systemcall.h"
|
||||
#include "support/unicode.h"
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
@ -150,7 +149,7 @@ void reconfigureUserLyXDir()
|
||||
/// The main application class private implementation.
|
||||
struct LyX::Singletons
|
||||
{
|
||||
Singletons(): iconv(ucs4_codeset, "UTF-8")
|
||||
Singletons()
|
||||
{
|
||||
// Set the default User Interface language as soon as possible.
|
||||
// The language used will be derived from the environment
|
||||
@ -172,9 +171,6 @@ struct LyX::Singletons
|
||||
/// lyx session, containing lastfiles, lastfilepos, and lastopened
|
||||
boost::scoped_ptr<Session> session_;
|
||||
|
||||
///
|
||||
IconvProcessor iconv;
|
||||
|
||||
/// Files to load at start.
|
||||
vector<FileName> files_to_load_;
|
||||
|
||||
@ -331,12 +327,6 @@ Converters & LyX::systemConverters()
|
||||
}
|
||||
|
||||
|
||||
IconvProcessor & LyX::iconvProcessor()
|
||||
{
|
||||
return pimpl_->iconv;
|
||||
}
|
||||
|
||||
|
||||
kb_keymap const & LyX::topLevelKeymap() const
|
||||
{
|
||||
BOOST_ASSERT(pimpl_->toplevel_keymap_.get());
|
||||
@ -1533,12 +1523,6 @@ Movers & theSystemMovers()
|
||||
}
|
||||
|
||||
|
||||
IconvProcessor & utf8ToUcs4()
|
||||
{
|
||||
return LyX::ref().iconvProcessor();
|
||||
}
|
||||
|
||||
|
||||
Messages & getMessages(std::string const & language)
|
||||
{
|
||||
return LyX::ref().getMessages(language);
|
||||
|
@ -25,7 +25,6 @@ class Buffer;
|
||||
class BufferList;
|
||||
class Converters;
|
||||
class ErrorItem;
|
||||
class IconvProcessor;
|
||||
class InsetBase;
|
||||
class LyXFunc;
|
||||
class LyXServer;
|
||||
@ -93,8 +92,6 @@ public:
|
||||
void setGuiLanguage(std::string const & language);
|
||||
|
||||
///
|
||||
IconvProcessor & iconvProcessor();
|
||||
|
||||
LyXView * newLyXView();
|
||||
|
||||
/** redraw \c inset in all the BufferViews in which it is currently
|
||||
|
@ -58,6 +58,14 @@ std::string const to_ascii(docstring const & ucs4)
|
||||
}
|
||||
|
||||
|
||||
IconvProcessor & utf8ToUcs4()
|
||||
{
|
||||
static IconvProcessor iconv(ucs4_codeset, "UTF-8");
|
||||
return iconv;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void utf8_to_ucs4(std::string const & utf8, docstring & ucs4)
|
||||
{
|
||||
size_t n = utf8.size();
|
||||
|
@ -56,10 +56,6 @@ private:
|
||||
boost::scoped_ptr<Private> pimpl_;
|
||||
};
|
||||
|
||||
/// This is implemented in lyx_main.C for the LyX program
|
||||
/// and in client.C for the LyX client program.
|
||||
extern IconvProcessor & utf8ToUcs4();
|
||||
|
||||
// A single codepoint conversion for utf8_to_ucs4 does not make
|
||||
// sense, so that function is left out.
|
||||
|
||||
|
@ -69,13 +69,6 @@ using support::isFileReadable;
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
|
||||
IconvProcessor & utf8ToUcs4()
|
||||
{
|
||||
static IconvProcessor iconv(ucs4_codeset, "UTF-8");
|
||||
return iconv;
|
||||
}
|
||||
|
||||
|
||||
// Hacks to allow the thing to link in the lyxlayout stuff
|
||||
LyXErr lyxerr(std::cerr.rdbuf());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user