]> git.lyx.org Git - features.git/commitdiff
Michael's latest minipage cleanup patch
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 29 Dec 2003 13:55:45 +0000 (13:55 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 29 Dec 2003 13:55:45 +0000 (13:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8282 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/LaTeXFeatures.C
src/LyXAction.C
src/factory.C
src/insets/ChangeLog
src/insets/insetbox.C
src/lfuns.h
src/lyx_sty.C
src/lyx_sty.h
src/lyxfunc.C
src/text3.C

index 54502524ef93cd15e02cebf24cede4d0d400dc25..941f8fcaa97ccef486ef4ee3409636632dc9b110 100644 (file)
@@ -1,3 +1,14 @@
+2003-12-28  Michael Schmitt  <michael.schmitt@teststep.org>
+
+       * LaTeXFeatures.C:
+       * lyx_sty.[Ch]: remove minipageindent_def
+
+       * LyXAction.C:
+       * factory.C:
+       * lfuns.h:
+       * lyxfunc.C:
+       * text3.C: remove LFUN_INSET_MINIPAGE
+
 2003-12-28  Angus Leeming  <leeming@lyx.org>
 
        * text3.C (dispatch): output useful info on receipt of LFUN_GETLAYOUT.
index 85754e12d0342439dfd3c6d95a5b026c7d0cfe90..d7c3b4b68fe03609c8e3c146e094c7ddbf55918e 100644 (file)
@@ -357,8 +357,6 @@ string const LaTeXFeatures::getMacros() const
                macros << mathcircumflex_def << '\n';
 
        // other
-       if (isRequired("NeedLyXMinipageIndent"))
-               macros << minipageindent_def;
        if (isRequired("ParagraphLeftIndent"))
                macros << paragraphleftindent_def;
        if (isRequired("NeedLyXFootnoteCode"))
index 5979bea6d297d7a8080618ece0956a06587c88b7..228c995fd0ba3cf71cd2a8eb9a71799a75d1099b 100644 (file)
@@ -224,7 +224,6 @@ void LyXAction::init()
                { LFUN_MENU_OPEN_BY_NAME, "menu-open", NoBuffer },
                { LFUN_MENU_SEPARATOR, "menu-separator-insert", Noop },
                { LFUN_META_FAKE, "meta-prefix", NoBuffer },
-               { LFUN_INSET_MINIPAGE, "minipage-insert", Noop },
                { LFUN_INSERT_BRANCH, "branch-insert", Noop },
                { LFUN_INSERT_CHARSTYLE, "charstyle-insert", Noop },
                { LFUN_INSERT_NOTE, "note-insert", Noop },
index e6f75634a4d3735de58906ffe8c27f20f3cb6b13..c5aab75b5be17abcfafa5d45018ebad4b852bec4 100644 (file)
@@ -84,9 +84,6 @@ InsetOld * createInset(FuncRequest const & cmd)
        case LFUN_INSERT_PAGEBREAK:
                return new InsetPagebreak;
 
-       case LFUN_INSET_MINIPAGE:
-               return new InsetBox(params, "Frameless");
-
        case LFUN_INSERT_CHARSTYLE: {
                string s = cmd.getArg(0);
                CharStyles::iterator found_cs = params.getLyXTextClass().charstyle(s);
@@ -443,8 +440,6 @@ InsetOld * readInset(LyXLex & lex, Buffer const & buf)
                        inset.reset(new InsetMarginal(buf.params()));
                } else if (tmptok == "OptArg") {
                        inset.reset(new InsetOptArg(buf.params()));
-               } else if (tmptok == "Minipage") {
-                       inset.reset(new InsetBox(buf.params(), "Frameless"));
                } else if (tmptok == "Float") {
                        lex.next();
                        string tmptok = lex.getString();
index dddd5f004fc2b2fa0fcc957e11ebab6533232f71..d36974b2974fcb3b393da92abf8b41ba0d69988d 100644 (file)
@@ -1,4 +1,8 @@
 
+2003-12-22  Michael Schmitt  <michael.schmitt@teststep.org>
+
+       * insetbox.C: Use term "Box" in button label
+
 2003-12-16  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * insetcharstyle.C: get getDrawFont working again
index 0b224108d10ca0c46b966af7a788405300e919f3..e4547b6c1ca93c51b025bd6ad32c75e0f4fc7370 100644 (file)
@@ -139,11 +139,11 @@ void InsetBox::setButtonLabel()
        BoxType btype = boxtranslator().find(params_.type);
        if (btype == Frameless) {
                if (params_.use_parbox)
-                       setLabel(_("Parbox"));
+                       setLabel(_("Box") + " (" + _("Parbox") + ")");
                else
-                       setLabel(_("Minipage"));
+                       setLabel(_("Box") + " (" + _("Minipage") + ")");
        } else
-               setLabel(boxtranslator_loc().find(btype));
+               setLabel(_("Box") + " (" + boxtranslator_loc().find(btype) + ")");
 
        font.setColor(LColor::foreground);
        setBackgroundColor(LColor::background);
index edbe3b0f1f514d76b1ca7dd139022e200d674cf6..412cbab53aded51f5cecd05e12683ad3c417e527 100644 (file)
@@ -259,81 +259,80 @@ enum kb_action {
        LFUN_LOAVIEW,                   // Dekel 20000519
        LFUN_SET_COLOR,                 // SLior 20000611
        LFUN_INSET_MARGINAL,            // Lgb 20000626
-       LFUN_INSET_MINIPAGE,            // Lgb 20000627
-       // 195
        LFUN_INSET_FLOAT,               // Lgb 20000627
+       // 195
        LFUN_INSET_WIDE_FLOAT,          // Lgb 20010531
        LFUN_INSET_CAPTION,             // Lgb 20000718
        LFUN_SWITCHBUFFER,
        LFUN_TABULAR_FEATURE,           // Jug 20000728
-       // 200
        LFUN_LAYOUT_TABULAR,            // Jug 20000731
+       // 200
        LFUN_SCROLL_INSET,              // Jug 20000801
        LFUN_UPDATE,                    // Dekel 20000805
        LFUN_INDEX_INSERT,              // Angus 20000803
        LFUN_SCREEN_FONT_UPDATE,        // ARRae 20000813
-       // 205
        LFUN_GOTO_PARAGRAPH,            // Dekel 20000826
+       // 205
        LFUN_REFERENCE_GOTO,            // Dekel 20010114
        LFUN_BOOKMARK_SAVE,             // Dekel 20010127
        LFUN_BOOKMARK_GOTO,             // Dekel 20010127
        LFUN_SELECT_FILE_SYNC,          // Levon 20010214
-       // 210
        LFUN_MESSAGE,                   // Lgb 20010408
+       // 210
        LFUN_TRANSPOSE_CHARS,           // Lgb 20010425
        LFUN_ESCAPE,                    // Lgb 20010517
        LFUN_THESAURUS_ENTRY,           // Levon 20010720
        LFUN_FORKS_KILL,                // Angus 16 Feb 2002
-       // 215
        LFUN_TOOLTIPS_TOGGLE,           // Angus 8 Mar 2002
+       // 215
        LFUN_INSET_OPTARG,              // Martin 12 Aug 2002
        LFUN_MOUSE_PRESS,               // André 9 Aug 2002
        LFUN_MOUSE_MOTION,              // André 9 Aug 2002
        LFUN_MOUSE_RELEASE,             // André 9 Aug 2002
-       // 220
        LFUN_MOUSE_DOUBLE,              // André 9 Aug 2002
+       // 220
        LFUN_MOUSE_TRIPLE,              // André 9 Aug 2002
        LFUN_INSET_WRAP,                // Dekel 7 Apr 2002
        LFUN_TRACK_CHANGES,             // Levon 20021001 (cool date !)
        LFUN_MERGE_CHANGES,             // Levon 20021016
-       // 225
        LFUN_ACCEPT_CHANGE,             // Levon 20021016
+       // 225
        LFUN_REJECT_CHANGE,             // Levon 20021016
        LFUN_ACCEPT_ALL_CHANGES,        // Levon 20021016
        LFUN_REJECT_ALL_CHANGES,        // Levon 20021016
        LFUN_INSERT_BIBITEM,            // André 14 Feb 2003
-       // 230
        LFUN_DIALOG_SHOW,
+       // 230
        LFUN_DIALOG_SHOW_NEW_INSET,
        LFUN_DIALOG_SHOW_NEXT_INSET,
        LFUN_DIALOG_UPDATE,
        LFUN_DIALOG_HIDE,
-       // 235
        LFUN_DIALOG_DISCONNECT_INSET,
+       // 235
        LFUN_INSET_APPLY,
        LFUN_INSET_INSERT,
        LFUN_INSET_MODIFY,
        LFUN_INSET_DIALOG_UPDATE,
-       // 240
        LFUN_INSET_SETTINGS,
+       // 240
        LFUN_PARAGRAPH_APPLY,
        LFUN_PARAGRAPH_UPDATE,
        LFUN_EXTERNAL_EDIT,
        LFUN_INSERT_BRANCH,
-       // 245
        LFUN_INSET_DIALOG_SHOW,
+       // 245
        LFUN_INSERT_BOX,
        LFUN_INSERT_LINE,
        LFUN_INSERT_PAGEBREAK,
        LFUN_REPEAT,
-       // 250
        LFUN_FINISHED_LEFT,
+       // 250
        LFUN_FINISHED_RIGHT,
        LFUN_FINISHED_UP,
        LFUN_FINISHED_DOWN,
        LFUN_INSERT_CHARSTYLE,
-       // 255
        LFUN_LASTACTION                  // end of the table
+       // 255
 };
 
 std::ostream & operator<<(std::ostream &, kb_action);
index a4a7308aacf3bd532cb5ed07bd28cb72b8c90644..4c9f42af7bd9d115be291749282871663d547bc9 100644 (file)
@@ -107,11 +107,6 @@ string const floatingfootnote_def =
        "  \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n"
        "\\def\\SF@gobble@twobracket[#1]#2{}\n";
 
-string const minipageindent_def =
-       "%% This length is the backup for minipages of the \\parindent\n"
-       "\\newlength{\\LyXMinipageIndent}\n"
-       "\\setlength{\\LyXMinipageIndent}{\\parindent}\n";
-
 string const boldsymbol_def =
        "%% Bold symbol macro for standard LaTeX users\n"
        "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
index 89655d86b765c8f1305def86255cce4cc5b34c17..d549735f5e037dccc09616bf8f3a6dac8bcc3982 100644 (file)
@@ -43,8 +43,6 @@ extern std::string const paragraphleftindent_def;
 ///
 extern std::string const floatingfootnote_def;
 ///
-extern std::string const minipageindent_def;
-///
 extern std::string const boldsymbol_def;
 ///
 extern std::string const binom_def;
index 2ceb143deead7cfcb835aefba12275c8d5ab2a97..ffa8571412f000269de79f2928811ba064ed00df 100644 (file)
@@ -609,9 +609,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
        case LFUN_INSET_MARGINAL:
                code = InsetOld::MARGIN_CODE;
                break;
-       case LFUN_INSET_MINIPAGE:
-               code = InsetOld::BOX_CODE;
-               break;
        case LFUN_INSET_FLOAT:
        case LFUN_INSET_WIDE_FLOAT:
                code = InsetOld::FLOAT_CODE;
index ec4058a006194fb2ee824c57974c101b3e6bb8b6..0dbbd22913c5109ff80c598f922b61a376f35bca 100644 (file)
@@ -1387,7 +1387,6 @@ DispatchResult LyXText::dispatch(FuncRequest const & cmd)
        case LFUN_INSET_FLOAT:
        case LFUN_INSET_FOOTNOTE:
        case LFUN_INSET_MARGINAL:
-       case LFUN_INSET_MINIPAGE:
        case LFUN_INSET_OPTARG:
        case LFUN_INSET_WIDE_FLOAT:
        case LFUN_INSET_WRAP: