]> git.lyx.org Git - features.git/commitdiff
unicode: ditch another utf8 roundtrip + some obsolete FIXMEs
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 11 Nov 2006 21:09:51 +0000 (21:09 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 11 Nov 2006 21:09:51 +0000 (21:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15866 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ControlSpellchecker.C
src/frontends/qt4/QBibtexDialog.C
src/insets/insetbox.C
src/insets/insetcite.C
src/undo.C
src/undo.h

index 3052fffead712c62d3446d1592a5a920b3dd3992..d5e1fdb86dbaacf81d53164009df9b03287971ac 100644 (file)
@@ -110,7 +110,6 @@ bool ControlSpellchecker::initialiseParams(std::string const &)
        bool const success = speller_->error().empty();
 
        if (!success) {
-               // FIXME UNICODE
                Alert::error(_("Spellchecker error"),
                             _("The spellchecker could not be started\n")
                             + speller_->error());
@@ -288,7 +287,6 @@ void ControlSpellchecker::showSummary()
        }
 
        docstring message;
-       // FIXME UNICODE
        if (count_ != 1)
                message = bformat(_("%1$d words checked."), count_);
        else
index cd014460a4eaf9d6a7a6aecbcc17de43ecdb27d3..ed5d774b6af070347a02f1cbc0daf7faef7c4374 100644 (file)
@@ -148,7 +148,7 @@ void QBibtexDialog::browseBibPressed()
 
        if (!file.empty()) {
                // FIXME UNICODE
-               QString const f = toqstr(from_utf8(changeExtension(to_utf8(file), "")));
+               QString const f = toqstr(changeExtension(to_utf8(file), ""));
                bool present = false;
 
                for (int i = 0; i < add_->bibLW->count(); ++i) {
index aa11692071db935852e307f2cf137275787e4ad2..c26131e21e5502d5b841996c91f931d4b1216f26 100644 (file)
@@ -149,7 +149,6 @@ void InsetBox::setButtonLabel()
        BoxType btype = boxtranslator().find(params_.type);
 
        docstring label;
-       // FIXME UNICODE
        label += _("Box");
        label += " (";
        if (btype == Frameless) {
@@ -158,7 +157,7 @@ void InsetBox::setButtonLabel()
                else
                        label += _("Minipage");
        } else
-               // FXIME unicode
+               // FIXME UNICODE
                label += from_utf8(boxtranslator_loc().find(btype));
        label += ")";
 
index f3bfeffcd2c2efb1036cddd4a1b46770a18d2c38..5d66cef4366bd5b32696800d00542bdea3eb76ed 100644 (file)
@@ -394,7 +394,6 @@ string const cleanupWhitespace(string const & citelist)
 
 int InsetCitation::docbook(Buffer const &, odocstream & os, OutputParams const &) const
 {
-        // FIXME UNICODE
        os << "<citation>"
            << from_ascii(cleanupWhitespace(getContents()))
            << "</citation>";
index fa377c3e548588d92f62c57a654f37097282eee6..b60d0e11b95f8c3d3fddbbd00d643ad1c4d003c7 100644 (file)
@@ -96,7 +96,7 @@ void doRecordUndo(Undo::undo_kind kind,
        // fill in the real data to be saved
        if (cell.inMathed()) {
                // simply use the whole cell
-               undo.array = to_utf8(asString(cell.cell()));
+               undo.array = asString(cell.cell());
        } else {
                // some more effort needed here as 'the whole cell' of the
                // main LyXText _is_ the whole document.
@@ -170,8 +170,7 @@ bool textUndoOrRedo(BufferView & bv,
                // gained by storing just 'a few' paragraphs (most if not
                // all math inset cells have just one paragraph!)
                //lyxerr << "undo.array=" << undo.array <<endl;
-               // FIXME UNICODE
-               asArray(from_utf8(undo.array), dit.cell());
+               asArray(undo.array, dit.cell());
        } else {
                // Some finer machinery is needed here.
                LyXText * text = dit.text();
index 519b21252acc0e58eea1958b1927fd8a65af3789..8ce44ce962da5eed385e37b57a40d6b4d0177390 100644 (file)
@@ -85,7 +85,7 @@ public:
        /// the contents of the saved Paragraphs (for texted)
        ParagraphList pars;
        /// the stringified contents of the saved MathArray (for mathed)
-       std::string array;
+       docstring array;
        /// Only used in case of full backups
        BufferParams bparams;
        /// Only used in case of full backups