]> git.lyx.org Git - lyx.git/commitdiff
ws only
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 14 Aug 2002 18:31:04 +0000 (18:31 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 14 Aug 2002 18:31:04 +0000 (18:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4974 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/biblio.C
src/frontends/xforms/Color.C
src/frontends/xforms/DropDown.C
src/frontends/xforms/FormAboutlyx.C
src/frontends/xforms/FormBaseDeprecated.h
src/frontends/xforms/FormCharacter.C
src/frontends/xforms/FormInset.C

index 62d3a48d0fd5b24da2ba06508db64c88084849f6..7700ffc15623fa4adff2c98f17a5d367275799bc 100644 (file)
@@ -516,7 +516,7 @@ CitationStyle const getCitationStyle(string const & command)
                cmd[0] = 'c';
        }
 
-       size_t n = cmd.size()-1;
+       size_t n = cmd.size() - 1;
        if (cmd[n] == '*') {
                cs.full = true;
                cmd = cmd.substr(0,n);
index abf64c63751ec2a0bfd5e412c235336e849eca9c..08f25e2d6518f374c12c4b8607a9684262d9f001 100644 (file)
@@ -103,8 +103,8 @@ HSVColor::HSVColor(RGBColor const & rgb)
        double const g = rgb.g / 255.0;
        double const b = rgb.b / 255.0;
 
-       double const maxval = max( max( r, g), b);
-       double const minval = min( min( r, g), b);
+       double const maxval = max(max(r, g), b);
+       double const minval = min(min(r, g), b);
 
        v = maxval;
 
index 44dcd6e49ff67d3e7c1c02e9b5b8f531f241f57d..1041feb586feaff9407bc76ef786183b598deeb9 100644 (file)
@@ -71,7 +71,7 @@ void DropDown::select(vector<string> const & choices, int x, int y, int w)
        if (choices.empty())
                return;
 
-       fl_set_form_geometry(form_, x, y-100, w, 100);
+       fl_set_form_geometry(form_, x, y - 100, w, 100);
        fl_clear_browser(browser_);
 
        vector<string>::const_iterator cit = choices.begin();
index 964217dcaef234956bf18c2bcc0eb6d3b4d4eb9c..a99eeba5cd305cc27f377b8d021bcaa18747ea86 100644 (file)
@@ -45,11 +45,11 @@ void FormAboutlyx::build()
        license_.reset(build_aboutlyx_license(this));
 
        string str = formatted(controller().getLicense(),
-                              license_->text_license->w-10);
+                              license_->text_license->w - 10);
        fl_set_object_label(license_->text_license, str.c_str());
 
        str = formatted(controller().getDisclaimer(),
-                       license_->text_warranty->w-10);
+                       license_->text_warranty->w - 10);
        fl_set_object_label(license_->text_warranty, str.c_str());
 
        // create credits
index 71bb9b4db505e0c2ab1930a40e93fb782aaa72d2..8e514b4056d947a18f9c97c40ff2360a5052e2b8 100644 (file)
@@ -86,7 +86,7 @@ protected: // methods
        /** Filter the inputs on callback from xforms
         *  Return true if inputs are valid.
         */
-       virtual bool input( FL_OBJECT *, long) {
+       virtual bool input(FL_OBJECT *, long) {
                return true;
        }
        /// Apply from dialog (modify or create inset)
index ec50266dd95d2b28aafa8ec7ec2aa86ed804a01f..2039496b292529c05f3325c75518a914fe804be1 100644 (file)
@@ -124,25 +124,25 @@ void FormCharacter::apply()
        if (!form()) return;
 
        int pos = fl_get_choice(dialog_->choice_family);
-       controller().setFamily(family_[pos-1]);
+       controller().setFamily(family_[pos - 1]);
 
        pos = fl_get_choice(dialog_->choice_series);
-       controller().setSeries(series_[pos-1]);
+       controller().setSeries(series_[pos - 1]);
 
        pos = fl_get_choice(dialog_->choice_shape);
-       controller().setShape(shape_[pos-1]);
+       controller().setShape(shape_[pos - 1]);
 
        pos = fl_get_choice(dialog_->choice_size);
-       controller().setSize(size_[pos-1]);
+       controller().setSize(size_[pos - 1]);
 
        pos = fl_get_choice(dialog_->choice_bar);
-       controller().setBar(bar_[pos-1]);
+       controller().setBar(bar_[pos - 1]);
 
        pos = fl_get_choice(dialog_->choice_color);
-       controller().setColor(color_[pos-1]);
+       controller().setColor(color_[pos - 1]);
 
        pos = combo_language2_->get();
-       controller().setLanguage(lang_[pos-1]);
+       controller().setLanguage(lang_[pos - 1]);
 
        bool const toggleall = fl_get_button(dialog_->check_toggle_all);
        controller().setToggleAll(toggleall);
@@ -181,31 +181,31 @@ ButtonPolicy::SMInput FormCharacter::input(FL_OBJECT *, long)
        ButtonPolicy::SMInput activate = ButtonPolicy::SMI_NOOP;
 
        int pos = fl_get_choice(dialog_->choice_family);
-       if (family_[pos-1] != LyXFont::IGNORE_FAMILY)
+       if (family_[pos - 1] != LyXFont::IGNORE_FAMILY)
                activate = ButtonPolicy::SMI_VALID;
 
        pos = fl_get_choice(dialog_->choice_series);
-       if (series_[pos-1] != LyXFont::IGNORE_SERIES)
+       if (series_[pos - 1] != LyXFont::IGNORE_SERIES)
                activate = ButtonPolicy::SMI_VALID;
 
        pos = fl_get_choice(dialog_->choice_shape);
-       if (shape_[pos-1] != LyXFont::IGNORE_SHAPE)
+       if (shape_[pos - 1] != LyXFont::IGNORE_SHAPE)
                activate = ButtonPolicy::SMI_VALID;
 
        pos = fl_get_choice(dialog_->choice_size);
-       if (size_[pos-1] != LyXFont::IGNORE_SIZE)
+       if (size_[pos - 1] != LyXFont::IGNORE_SIZE)
                activate = ButtonPolicy::SMI_VALID;
 
        pos = fl_get_choice(dialog_->choice_bar);
-       if (bar_[pos-1] != frnt::IGNORE)
+       if (bar_[pos - 1] != frnt::IGNORE)
                activate = ButtonPolicy::SMI_VALID;
 
        pos = fl_get_choice(dialog_->choice_color);
-       if (color_[pos-1] != LColor::ignore)
+       if (color_[pos - 1] != LColor::ignore)
                activate = ButtonPolicy::SMI_VALID;
 
        pos = combo_language2_->get();
-       if (lang_[pos-1] != "No change")
+       if (lang_[pos - 1] != "No change")
                activate = ButtonPolicy::SMI_VALID;
 
        return activate;
index 1bec120314e64aaef0e283e0ca6bb20ac39a5c98..1c3506ca7e2d7698d7cc8449c63138ca4aed1840 100644 (file)
@@ -90,7 +90,7 @@ void FormCommand::createInset(string const & arg)
        }
 
        params.setFromString(arg);
-       if ( !arg.empty())
+       if (!arg.empty())
                bc().valid(); // so that the user can press Ok
        show();
 }