]> git.lyx.org Git - features.git/commitdiff
add qt2/xforms to guilib + simple ws changes
authorLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 22 Apr 2002 16:31:14 +0000 (16:31 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 22 Apr 2002 16:31:14 +0000 (16:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4039 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
configure.in
src/insets/insettabular.C
src/insets/insettext.C
src/lyxfunc.C
src/mathed/formulabase.C
src/mathed/math_cursor.C
src/mathed/math_parser.C
src/text2.C

index b7ef7b2aa4917f4eb111e1f70e2d4c6b33ef2d50..d37faf48f145ef4d17c196dcd5c7e895e70bb266 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-04-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * configure.in (FRONTEND_GUILIB): add qt2/xforms/*.lo for qt2  
+
 2002-04-16  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
        * UPGRADING: updates
index 796c98f7cc2faab3cd88e82282af1577a70f1b80..6942d596bf3214f268224b1b0b6f45217d8c55a0 100644 (file)
@@ -224,7 +224,7 @@ dnl Ensure gnome-config is available...
        LYX_PATH_XFORMS
     QT2_DO_IT_ALL
     FRONTEND="qt2"
-    FRONTEND_GUILIB="qt2/*.lo qt2/ui/*.lo qt2/moc/*.lo qt2/ui/moc/*.lo"
+    FRONTEND_GUILIB="qt2/*.lo qt2/ui/*.lo qt2/moc/*.lo qt2/ui/moc/*.lo qt2/xforms/*.lo"
     FRONTEND_LDFLAGS="\$(QT2_LDFLAGS)"
     FRONTEND_INCLUDES="-I\${srcdir}/qt2 -I\${top_srcdir}/src/frontends/xforms \$(QT2_INCLUDES)"
     FRONTEND_LIBS="@XPM_LIB@ @XFORMS_LIB@ \$(QT2_LIBS)";;
index cc08993905f6f8b7da75ac7b3644fa89e525883a..1aa1b9f01cfbbf72873fe41e9b6256bdda340d4f 100644 (file)
@@ -2828,7 +2828,7 @@ bool InsetTabular::insertAsciiString(BufferView * bv, string const & buf,
 {
        if (buf.length() <= 0)
                return true;
-       
+
        int cols = 1;
        int rows = 1;
        int maxCols = 1;
index 081988a5aeb5d1b0e7d863ace29e6e87dc8faf94..ba60be164b679c1a86213e7fcc44320e15d2c63d 100644 (file)
@@ -2739,7 +2739,7 @@ void InsetText::collapseParagraphs(BufferView * bv) const
 {
        BufferParams const & bparams = bv->buffer()->params;
        LyXText * llt = getLyXText(bv);
-       
+
        while(par->next()) {
                if (par->size() && par->next()->size() &&
                        !par->isSeparator(par->size()-1))
index 52c39549fb9594b5ef330fc00d55cb2b6633c209..97b33f7f8c97baee90b9177b0f7d2e15f4f61161 100644 (file)
@@ -949,7 +949,7 @@ string const LyXFunc::dispatch(kb_action action, string argument)
                                                TEXT()->cursor.irow()->baseline() +
                                                TEXT()->cursor.irow()->height() + 1);
                                        TEXT()->cursor.x_fix(TEXT()->cursor.x());
-#else                                  
+#else
                                        TEXT()->cursorDown(owner->view());
 #endif
                                } else {
index bf01e56f3b809c906f3d5f6177e8170057a926c5..8836dc62f5a32cde6ecd24a9c6fbf5ebf2025ae3 100644 (file)
@@ -161,7 +161,7 @@ void InsetFormulaBase::edit(BufferView * bv, int x, int y, unsigned int)
        metrics(bv);
        mathcursor->setPos(x, y);
        //lyxerr << "setting pos to " << x << "," << y << "\n";
-       
+
        // if that is removed, we won't get the magenta box when entering an
        // inset for the first time
        bv->updateInset(this, false);
@@ -629,7 +629,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
                        ls = '(';
                if (rs.empty())
                        rs = ')';
-               
+
                bv->lockedInsetStoreUndo(Undo::EDIT);
                mathcursor->handleDelim(ls, rs);
                updateLocal(bv, true);
@@ -963,7 +963,7 @@ void mathDispatchInsertMath(BufferView * bv, string const & arg)
                        InsetFormula * f = new InsetFormula(arg);
                        if (!bv->insertInset(f))
                                delete f;
-                       else if (!mathcursor) // hotfix 
+                       else if (!mathcursor) // hotfix
                                bv->getLyXText()->cursorRight(bv);
                } else {
                        mathDispatchMathMode(bv, arg);
index 23c686e48f190a71447acdabd9dc69e8fbc4efe8..914d4e3b484090779facb48cecd2cc6370e9b534 100644 (file)
@@ -144,13 +144,13 @@ struct Selection
                                }
                                // append the left over horizontal cells to the last column
                                idx_type i = p->index(row + p->row(idx), p->ncols() - 1);
-                               for (col_type col = numcols; col < data_.ncols(); ++col) 
+                               for (col_type col = numcols; col < data_.ncols(); ++col)
                                        p->cell(i).push_back(data_.cell(data_.index(row, col)));
                        }
                        // append the left over vertical cells to the last _cell_
                        idx_type i = p->nargs() - 1;
-                       for (row_type row = numrows; row < data_.nrows(); ++row) 
-                               for (col_type col = 0; col < data_.ncols(); ++col) 
+                       for (row_type row = numrows; row < data_.nrows(); ++row)
+                               for (col_type col = 0; col < data_.ncols(); ++col)
                                        p->cell(i).push_back(data_.cell(data_.index(row, col)));
                }
        }
@@ -1253,7 +1253,7 @@ bool MathCursor::goUpDown(bool up)
                                        up ? yo - 4 : formula()->yhigh()
                                );
                }
-               
+
                // any improvement so far?
                int xnew, ynew;
                getPos(xnew, ynew);
@@ -1462,7 +1462,7 @@ bool MathCursor::interpret(char c)
                if (name == "\\") {
                        // remove the '\\'
                        backspace();
-                       if (c == '\\') 
+                       if (c == '\\')
                                interpret("\\backslash");
                        else
                                interpret(string("\\") + c);
index 289a5dfc44e578409a14f13079c7d86374eb9124..35a555650e7486715b6d675cb5ad92092a4b72a0 100644 (file)
@@ -745,13 +745,13 @@ bool Parser::parse_macro(string & name)
                string pars;
                while (good() && nextToken().cat() != catBegin)
                        pars += getToken().cs();
-       
+
                if (!good()) {
                        lyxerr << "bad stream in parse_macro\n";
                        dump();
                        return false;
                }
-                       
+
                //lyxerr << "read \\def parameter list '" << pars << "'\n";
                if (!pars.empty()) {
                        lyxerr << "can't handle non-empty parameter lists\n";
@@ -780,7 +780,7 @@ bool Parser::parse_macro(string & name)
                if (!arg.empty())
                        nargs = atoi(arg.c_str());
 
-       } else { 
+       } else {
                lyxerr << "\\newcommand or \\def  expected\n";
                return false;
        }
index 08d31a00fb063ac8e2fcc967ba1cc0a73ded9a34..7853e655051189b6bf89f45456719b55bc88907c 100644 (file)
@@ -2119,7 +2119,7 @@ float LyXText::getCursorX(BufferView * bview, Row * row,
        float fill_label_hfill;
        // This call HAS to be here because of the BidiTables!!!
        prepareToPrint(bview, row, x, fill_separator, fill_hfill,
-                      fill_label_hfill);
+                      fill_label_hfill);
 
        if (last < row->pos())
                cursor_vpos = row->pos();