]> git.lyx.org Git - features.git/commitdiff
Strip trailing whitespace.
authorAngus Leeming <leeming@lyx.org>
Tue, 25 Feb 2003 13:35:26 +0000 (13:35 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 25 Feb 2003 13:35:26 +0000 (13:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6249 a592a061-630c-0410-9148-cb99ea01b6c8

23 files changed:
src/frontends/qt2/BulletsModule.C
src/frontends/qt2/BulletsModule.h
src/frontends/qt2/QBibtex.C
src/frontends/qt2/QBibtexDialog.C
src/frontends/qt2/QDocument.C
src/frontends/qt2/QDocumentDialog.C
src/frontends/qt2/QIncludeDialog.C
src/frontends/qt2/QLPopupMenu.C
src/frontends/qt2/QLyXKeySym.C
src/frontends/qt2/QLyXKeySym.h
src/frontends/qt2/QPrefs.C
src/frontends/qt2/QSearchDialog.C
src/frontends/qt2/QSpellchecker.C
src/frontends/qt2/QSpellcheckerDialog.h
src/frontends/qt2/QURL.C
src/frontends/qt2/lyx_gui.C
src/frontends/qt2/qfont_loader.C
src/frontends/qt2/qfont_loader.h
src/frontends/qt2/qfont_metrics.C
src/frontends/qt2/qgridview.C
src/frontends/qt2/qtTimeout.h
src/frontends/qt2/qt_helpers.C
src/frontends/qt2/qt_helpers.h

index 884c71d7718186030c63f8b1dec0715328c8d7ee..936c9ca967f312f14c914dcf7c644b7d3d2dd8d7 100644 (file)
@@ -33,7 +33,7 @@ BulletsModule::BulletsModule(QWidget * parent,  char const * name, WFlags fl)
        for (int iter = 0; iter < 4; ++iter) {
                bullets_[iter] = ITEMIZE_DEFAULTS[iter];
        }
-       
+
        QPopupMenu * pm = new QPopupMenu(this);
 
        QPopupMenu * pm1 = new QPopupMenu(pm);
@@ -170,7 +170,7 @@ void BulletsModule::setBullet(int font, int character)
 {
        activeitem_->setText(0,"");
        activeitem_->setPixmap(0,getPixmap(font,character));
-       
+
        activebullet_->setFont(font);
        activebullet_->setCharacter(character);
 }
@@ -180,7 +180,7 @@ void BulletsModule::setBullet(string text)
 {
        activeitem_->setPixmap(0, QPixmap());
        activeitem_->setText(0, toqstr(text));
-       
+
        activebullet_->setText(text);
 }
 
@@ -240,7 +240,7 @@ void BulletsModule::ding2(int row, int col)
 void BulletsModule::ding3(int row, int col)
 {
        setBullet(4,6*row + col);
-}      
+}
 
 
 void BulletsModule::ding4(int row, int col)
index b6f8e019463b1d8f3dc120ec0abd1876f56dd8da..a7d6c8df5bc846d246834049516875cd016a0edd 100644 (file)
@@ -34,7 +34,7 @@ public:
        void setBullet(int level, const Bullet & bullet);
        ///
        Bullet getBullet(int level);
-       
+
 protected slots:
        ///
        void standard(int row, int col);
@@ -54,7 +54,7 @@ protected slots:
        void setActive(QListViewItem*);
        /// set size
        void setSize(int size);
-       
+
 private:
        /// get the pixmap that matches font/character
        QPixmap getPixmap(int font, int character);
@@ -72,7 +72,7 @@ private:
        QListViewItem * activeitem_;
        /// store results
        boost::array<Bullet,4> bullets_;
-       
+
        QBrowseBox * standard_;
        QBrowseBox * maths_;
        QBrowseBox * ding1_;
index 7fe91194116a378f94b6e586a4993400d7ab7a5b..4eca11fdb905d083dc629287799a79e01d9aa87f 100644 (file)
@@ -71,7 +71,7 @@ void QBibtex::update_contents()
                if (!bib.empty())
                        dialog_->databaseLB->insertItem(toqstr(bib));
        }
-       
+
        dialog_->addBibCB->clear();
 
        vector<string> const bib_str = getVectorFromString(
index b21cda289527dcca42ef4dc1f89e09672afd71bc..7357ef5fc6869a625130913d8de36382f0b187d3 100644 (file)
@@ -69,9 +69,9 @@ void QBibtexDialog::browsePressed()
                        }
                }
 
-               if (!present) 
+               if (!present)
                        styleCB->insertItem(toqstr(filen),0);
-               
+
                styleCB->setCurrentItem(pres);
                form_->changed();
        }
index e5df2810186ed81f7c0601bf095e00393ea0936a..6b261c589f28b525325679391b9f06c58e026f95 100644 (file)
@@ -144,7 +144,7 @@ void QDocument::build_dialog()
        dialog_->layoutModule->pagestyleCO->insertItem(qt_("plain"));
        dialog_->layoutModule->pagestyleCO->insertItem(qt_("headings"));
        dialog_->layoutModule->pagestyleCO->insertItem(qt_("fancy"));
-       
+
        dialog_->layoutModule->lspacingCO->insertItem(
                qt_("Single"), Spacing::Single);
        dialog_->layoutModule->lspacingCO->insertItem(
@@ -244,7 +244,7 @@ void QDocument::apply()
        // layout
        params.textclass =
                dialog_->layoutModule->classCO->currentItem();
-               
+
        params.fonts =
                fromqstr(dialog_->layoutModule->fontsCO->currentText());
 
@@ -253,7 +253,7 @@ void QDocument::apply()
 
        params.pagestyle =
                fromqstr(dialog_->layoutModule->pagestyleCO->currentText());
-               
+
        switch (dialog_->layoutModule->lspacingCO->currentItem()) {
        case 0:
                params.spacing.set(Spacing::Single);
@@ -345,8 +345,8 @@ void QDocument::apply()
                margin = margin - 1;
        }
        params.paperpackage = char(margin);
-       
-       // set params.papersize from params.papersize2 
+
+       // set params.papersize from params.papersize2
        // and params.paperpackage
        params.setPaperStuff();
 
@@ -436,7 +436,7 @@ void QDocument::update_contents()
 
        dialog_->langModule->quoteStyleCO->setCurrentItem(
                params.quotes_language);
-               
+
        dialog_->langModule->defaultencodingCB->setChecked(true);
 
        if (params.inputenc != "auto") {
index 700375ef245446e1b4fac4d13df98548d5f36171..960167b63edc0278e400cf202e89af3882ace76b 100644 (file)
@@ -239,7 +239,7 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
        connect(paperModule->facingPagesCB, SIGNAL(toggled(bool)),
                 this, SLOT(change_adaptor()));
 
-       // bullets 
+       // bullets
        connect(bulletsModule->bulletsizeCO, SIGNAL(activated(int)),
                 this, SLOT(change_adaptor()));
        connect(bulletsModule->bulletsLV, SIGNAL(selectionChanged()),
index d62bdbbe235cf458f95cbb7b9c1fd278a644824a..9be8787bd1f5632d12fca846877a3403311d5e99 100644 (file)
@@ -72,7 +72,7 @@ void QIncludeDialog::typeChanged(int v)
                        previewCB->setEnabled(false);
                        previewCB->setChecked(false);
                        break;
+
                default:
                        visiblespaceCB->setEnabled(true);
                        previewCB->setEnabled(false);
index 61ac374a2aa90407ec9f5428faf8de09969dd18b..db023eb4a3bf9dddc0fb4a2a7312943279b01af3 100644 (file)
@@ -97,7 +97,7 @@ void QLPopupMenu::populate(Menu * menu)
                        res.second->populate(m->submenu());
                } else {
                        FuncStatus const status = m->status();
-                       
+
                        insertItem(toqstr(getLabel(*m)), m->action());
                        setItemEnabled(m->action(), !status.disabled());
                        setItemChecked(m->action(), status.onoff(true));
index 20cdc9c863a212e5773373b1b840459779ee0c3f..dcfa37d1122d2e9b23bfe317a7dbcbe8cfab022b 100644 (file)
@@ -125,7 +125,7 @@ bool QLyXKeySym::isOK() const
        return ok;
 }
 
+
 bool QLyXKeySym::isModifier() const
 {
        bool const mod(q_is_modifier(key_));
@@ -163,12 +163,12 @@ bool QLyXKeySym::isText() const
        }
 
        QChar const c(text_[0]);
-       lyxerr[Debug::KEY] << "isText for key " << key_ 
+       lyxerr[Debug::KEY] << "isText for key " << key_
                << " isPrint is " << c.isPrint() << endl;
        return c.isPrint();
 }
 
+
 bool operator==(LyXKeySym const & k1, LyXKeySym const & k2)
 {
        QLyXKeySym const & q1(static_cast<QLyXKeySym const &>(k1));
index 2b900fe5d0c5e330dd4d4cbd38760bdfaaa9a772..351401eeaff0f96c2ec40d6f237f8d25bca4761f 100644 (file)
@@ -49,7 +49,7 @@ public:
 
        /// Is this normal insertable text ? (last ditch attempt only)
        virtual bool isText() const;
+
        /**
         * Return the value of the keysym into the local ISO encoding.
         * This converts the LyXKeySym to a 8-bit encoded character.
index 43e2365d4c2a7d2d6bc10e9e54c0699ca07378ac..fb06d6383f39955ececcc6d37a18123a4fcee352 100644 (file)
@@ -382,7 +382,7 @@ void QPrefs::update_contents()
        QPrefIdentityModule * idmod(dialog_->identityModule);
        idmod->nameED->setText(toqstr(rc.user_name));
        idmod->emailED->setText(toqstr(rc.user_email));
-       
+
 
        QPrefKeyboardModule * keymod(dialog_->keyboardModule);
 
index d69d71e475f42c1a7fbdfa7172dd1da7fd7353c2..26c9e0c04b4674fc746c8495a1ef4900510709fc 100644 (file)
@@ -34,9 +34,9 @@ void uniqueInsert(QComboBox * box, QString const & text)
 
        box->insertItem(text);
 }
+
 };
+
 
 QSearchDialog::QSearchDialog(QSearch * form)
        : QSearchDialogBase(0, 0, false, 0),
index 8b9d6ceeaf505cdc6debe0d139d5b25fba256683..d0e57c75fb4728072c9dbf5e44191053dac43645 100644 (file)
@@ -69,7 +69,7 @@ void QSpellchecker::replace()
 
 void QSpellchecker::partialUpdate(int s)
 {
-       ControlSpellchecker::State const state = 
+       ControlSpellchecker::State const state =
                static_cast<ControlSpellchecker::State>(s);
 
        switch (state) {
index 029551a3a4232facaafbf08c740152810cd8aa47..8b82554a80a2ed091da0df137e81e46a43a39ad3 100644 (file)
@@ -23,7 +23,7 @@ public:
        QSpellcheckerDialog(QSpellchecker * form);
 public slots:
        virtual void suggestionChanged(const QString &);
+
 protected slots:
        virtual void acceptClicked();
        virtual void addClicked();
index 970250f463cea16e891bc65e9de4a6186ebc8883..14b522adfc148986c394a300dc9aa6fb746ba697 100644 (file)
@@ -51,7 +51,7 @@ void QURL::update_contents()
        dialog_->urlED->setText(toqstr(params.getContents()));
        dialog_->nameED->setText(toqstr(params.getOptions()));
        dialog_->hyperlinkCB->setChecked(params.getCmdName() != "url");
-       
+
        bc().valid(isValid());
 }
 
index eecc425a57198f11171954c62a5eeac529cf0473..bc39179d47465a2bb61da7f8bb1c86194e750f18 100644 (file)
@@ -183,7 +183,7 @@ void lyx_gui::exit()
        // into a static dialog return in the lyx code (for example,
        // load autosave file QMessageBox. We have to just get the hell
        // out.
-       
+
        ::exit(0);
 }
 
index 250c6bd2b8b21fe2e283f3df2d1bb0ebcff53bdd..abb6119217e901eded8264771dcd8dabb5ce5373 100644 (file)
@@ -351,7 +351,7 @@ qfont_loader::font_info * qfont_loader::getfontinfo(LyXFont const & f)
        font_info * fi = fontinfo_[f.family()][f.series()][f.realShape()][f.size()];
        if (fi)
                return fi;
+
        font_info * fi2 = new font_info(f);
        fontinfo_[f.family()][f.series()][f.realShape()][f.size()] = fi2;
        return fi2;
@@ -371,7 +371,7 @@ int qfont_loader::charwidth(LyXFont const & f, Uchar val)
        return w;
 }
 
+
 bool qfont_loader::available(LyXFont const & f)
 {
        if (!lyxrc.use_gui)
index d7c58b5f578b91e41ba95d4aa64f25a21e0a76ef..2fce60c5a463ce16c7a217e904324d9be09445b8 100644 (file)
 
 
 #include <map>
+
 #include "encoding.h"
 #include "lyxfont.h"
 
 #include <qfont.h>
 #include <qfontmetrics.h>
+
 /**
  * Qt font loader for LyX. Matches LyXFonts against
  * actual QFont instances, and also caches metrics.
@@ -59,7 +59,7 @@ private:
                QFontMetrics metrics;
 
                typedef std::map<Uchar, int> WidthCache;
-               /// cache of char widths 
+               /// cache of char widths
                WidthCache widthcache;
        };
 
index 93bf5635b8da937a33d6135a2f310bd13c03f6d3..7fecadac95cc0cb9fcd8ee8fc3c45309f65e2cc1 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <qfontmetrics.h>
 #include <qfont.h>
+
 namespace {
 
 QFontMetrics const & metrics(LyXFont const & f)
@@ -29,12 +29,12 @@ QFontMetrics const & metrics(LyXFont const & f)
        return fontloader.metrics(f);
 }
 
+
 int charwidth(Uchar val, LyXFont const & f)
 {
        if (!lyxrc.use_gui)
                return 1;
-       return fontloader.charwidth(f, val); 
+       return fontloader.charwidth(f, val);
 }
 
 } // namespace anon
@@ -104,7 +104,7 @@ Encoding const * fontencoding(LyXFont const & f)
                encoding = encodings.symbol_encoding();
        return encoding;
 }
+
 
 int smallcapswidth(char const * s, size_t ls, LyXFont const & f)
 {
@@ -119,7 +119,7 @@ int smallcapswidth(char const * s, size_t ls, LyXFont const & f)
        QFontMetrics const & qsmallm = fontloader.metrics(smallfont);
 
        Encoding const * encoding(fontencoding(f));
+
        int w = 0;
 
        for (size_t i = 0; i < ls; ++i) {
@@ -132,7 +132,7 @@ int smallcapswidth(char const * s, size_t ls, LyXFont const & f)
        }
        return w;
 }
+
 
 int width(char const * s, size_t ls, LyXFont const & f)
 {
@@ -142,7 +142,7 @@ int width(char const * s, size_t ls, LyXFont const & f)
        if (f.realShape() == LyXFont::SMALLCAPS_SHAPE) {
                return smallcapswidth(s, ls, f);
        }
+
        Encoding const * encoding(fontencoding(f));
 
        if (ls == 1) {
@@ -150,11 +150,11 @@ int width(char const * s, size_t ls, LyXFont const & f)
        }
 
        int w = 0;
+
        for (size_t i = 0; i < ls; ++i) {
                w += charwidth(encoding->ucs(s[i]), f);
        }
+
        return w;
 }
 
index 117a0ea4c4e0a0e0f64f5afc755ae8e6edbd7fa5..af882eb68c40f6063231f360bca625a20072f0b1 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
-** $Id: qgridview.C,v 1.1 2003/01/13 10:39:18 larsbj Exp $
+** $Id: qgridview.C,v 1.2 2003/02/25 13:35:26 leeming Exp $
 **
 ** Implementation of QGridView class
 **
@@ -146,7 +146,7 @@ void QGridView::setCellWidth( int cellWidth )
     cellw = cellWidth;
     updateGrid();
     updateContents( contentsX(), contentsY(), visibleWidth(), visibleHeight() );
-    
+
 }
 
 /*! \property QGridView::cellHeight
@@ -161,7 +161,7 @@ void QGridView::setCellHeight( int cellHeight )
     cellh = cellHeight;
     updateGrid();
     updateContents( contentsX(), contentsY(), visibleWidth(), visibleHeight() );
-    
+
 }
 
 /*!
index 649df71d40a7a1e4dc1ffb52a0390650209f8960..a94e9d17429824baec400d8aedf5eb0b2d3f3004 100644 (file)
@@ -13,7 +13,7 @@
 #define QTTIMEOUT_H
 
 #include "frontends/Timeout.h"
-#include <qobject.h> 
+#include <qobject.h>
 
 // stupid Qt
 #undef emit
index aa49aa9bf7dd1e4a29bf1e4c67d1b07c2d1ca7ee..ebd844a7dee1e81c54ac91a646667e61fe6c153d 100644 (file)
@@ -14,9 +14,9 @@
 #include "support/lstrings.h"
 #include "gettext.h"
 #include "qt_helpers.h"
+
 #include "lengthcombo.h"
+
 #include <qglobal.h>
 #include <qlineedit.h>
 #include <qtextcodec.h>
@@ -53,7 +53,7 @@ pair<string,string> parseFontName(string const & name)
 #endif
 }
 
+
 string widgetsToLength(QLineEdit const * input, LengthCombo const * combo)
 {
        QString length = input->text();
index d4f654c8b9a73cc33dabac65623ab8dc3147e097..39e791a3a03869b8ba19432419e709d5b8c5c518 100644 (file)
 #include <utility>
 
 #include "lyxlength.h"
+
 class LengthCombo;
 class QLineEdit;
 class QString;
+
 string makeFontName(string const & family, string const & foundry);
+
 std::pair<string,string> parseFontName(string const & name);
 
 /// method to get a LyXLength from widgets
 string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
+
 /// method to set widgets from a LyXLength
 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
        string const & len, LyXLength::UNIT default_unit);
+
 /**
  * toqstr - convert char * into unicode
  *