#include "input_validators.h" // fl_unsigned_float_filter
#include "xforms_helpers.h"
-//#include "buffer.h"
-//#include "BufferView.h"
#include "CutAndPaste.h"
#include "debug.h"
#include "language.h"
-//#include "lyx_main.h" // for user_lyxdir
#include "lyxrc.h"
#include "lyxtextclasslist.h"
#include "tex-strings.h"
fl_set_input_return(options_->input_float_placement, FL_RETURN_CHANGED);
- fl_addto_choice(options_->choice_ams_math,
- _("Never | Automatically | Yes "));
+ fl_addto_choice(options_->choice_ams_math,
+ _("Never | Automatically | Yes "));
for (int n = 0; tex_graphics[n][0]; ++n) {
fl_addto_choice(options_->choice_postscript_driver,
string const default_unit = metric ? "cm" : "in";
if (getString(class_->input_doc_skip).empty())
fl_set_choice_text(class_->choice_doc_skip_units,
- default_unit.c_str());
+ default_unit.c_str());
} else if (ob == options_->check_use_natbib) {
setEnabled(options_->choice_citation_format,
}
if (ob == paper_->choice_papersize || ob == paper_->radio_portrait
- || ob == paper_->radio_landscape) {
+ || ob == paper_->radio_landscape) {
// either default papersize (preferences) or document
// papersize has to be A4
bool const enable = ( fl_get_choice(paper_->choice_papersize) == 1
- && lyxrc.default_papersize == BufferParams::PAPER_A4PAPER )
- || fl_get_choice(paper_->choice_papersize) == 7;
+ && lyxrc.default_papersize == BufferParams::PAPER_A4PAPER )
+ || fl_get_choice(paper_->choice_papersize) == 7;
if (!enable)
fl_set_choice(paper_->choice_paperpackage,
- BufferParams::PACKAGE_NONE + 1);
+ BufferParams::PACKAGE_NONE + 1);
setEnabled(paper_->choice_paperpackage,
- enable && fl_get_button(paper_->radio_portrait));
+ enable && fl_get_button(paper_->radio_portrait));
}
return ButtonPolicy::SMI_VALID;
fl_addto_choice(class_->choice_doc_fontsize,
tclass.opt_fontsize().c_str());
fl_set_choice_text(class_->choice_doc_fontsize,
- params.fontsize.c_str());
+ params.fontsize.c_str());
fl_clear_choice(class_->choice_doc_pagestyle);
fl_addto_choice(class_->choice_doc_pagestyle, "default");
fl_addto_choice(class_->choice_doc_pagestyle,
tclass.opt_pagestyle().c_str());
fl_set_choice_text(class_->choice_doc_pagestyle,
- params.pagestyle.c_str());
+ params.pagestyle.c_str());
}
return _("Modify the LyX object's color. Note: you must then \"Apply\" the change.");
if (ob == dialog_->dial_hue ||
- ob == dialog_->slider_saturation ||
- ob == dialog_->slider_value ||
- ob == dialog_->slider_red ||
- ob == dialog_->slider_green ||
- ob == dialog_->slider_blue)
+ ob == dialog_->slider_saturation ||
+ ob == dialog_->slider_value ||
+ ob == dialog_->slider_red ||
+ ob == dialog_->slider_green ||
+ ob == dialog_->slider_blue)
return _("Find a new color.");
if (ob == dialog_->radio_rgb || ob == dialog_->radio_hsv)
return Browser();
if (ob == dialog_->choice_from
- || ob == dialog_->choice_to
- || ob == dialog_->input_converter
- || ob == dialog_->input_flags)
+ || ob == dialog_->choice_to
+ || ob == dialog_->input_converter
+ || ob == dialog_->input_flags)
return Input();
if (ob == dialog_->button_add)
string const FormPreferences::Converters::GetFrom() const
{
::Formats::FormatList::size_type const i =
- fl_get_choice(dialog_->choice_from);
+ fl_get_choice(dialog_->choice_from);
if (i > 0 && i <= local_formats.size())
return local_formats.get(i - 1).name();
string const FormPreferences::Converters::GetTo() const
{
::Formats::FormatList::size_type const i =
- fl_get_choice(dialog_->choice_to);
+ fl_get_choice(dialog_->choice_to);
if (i > 0 && i <= local_formats.size())
return local_formats.get(i - 1).name();
return Browser();
if (ob == dialog_->input_format
- || ob == dialog_->input_gui_name
- || ob == dialog_->input_shrtcut
- || ob == dialog_->input_extension
- || ob == dialog_->input_viewer)
+ || ob == dialog_->input_gui_name
+ || ob == dialog_->input_shrtcut
+ || ob == dialog_->input_extension
+ || ob == dialog_->input_viewer)
return Input();
if (ob == dialog_->button_add)
// See FIXME below
// grfx::DisplayType old_value = rc.display_graphics;
switch (fl_get_choice(dialog_->choice_display)) {
- case 4: rc.display_graphics = grfx::NoDisplay; break;
- case 3: rc.display_graphics = grfx::ColorDisplay; break;
- case 2: rc.display_graphics = grfx::GrayscaleDisplay; break;
- case 1: rc.display_graphics = grfx::MonochromeDisplay; break;
- default: rc.display_graphics = grfx::ColorDisplay; break;
+ case 4:
+ rc.display_graphics = grfx::NoDisplay;
+ break;
+ case 3:
+ rc.display_graphics = grfx::ColorDisplay;
+ break;
+ case 2:
+ rc.display_graphics = grfx::GrayscaleDisplay;
+ break;
+ case 1:
+ rc.display_graphics = grfx::MonochromeDisplay;
+ break;
+ default:
+ rc.display_graphics = grfx::ColorDisplay;
+ break;
}
#ifdef WITH_WARNINGS
fl_set_counter_value(dialog_->counter_wm_jump, rc.wheel_jump);
switch (rc.display_graphics) {
- case grfx::NoDisplay: fl_set_choice(dialog_->choice_display, 4); break;
- case grfx::ColorDisplay: fl_set_choice(dialog_->choice_display, 3); break;
- case grfx::GrayscaleDisplay: fl_set_choice(dialog_->choice_display, 2); break;
- case grfx::MonochromeDisplay: fl_set_choice(dialog_->choice_display, 1); break;
- default: fl_set_choice(dialog_->choice_display, 3); break;
+ case grfx::NoDisplay:
+ fl_set_choice(dialog_->choice_display, 4);
+ break;
+ case grfx::ColorDisplay:
+ fl_set_choice(dialog_->choice_display, 3);
+ break;
+ case grfx::GrayscaleDisplay:
+ fl_set_choice(dialog_->choice_display, 2);
+ break;
+ case grfx::MonochromeDisplay:
+ fl_set_choice(dialog_->choice_display, 1);
+ break;
+ default:
+ fl_set_choice(dialog_->choice_display, 3);
+ break;
}
}
if (ob == dialog_->counter_dpi)
return LyXRC::getDescription(LyXRC::RC_SCREEN_DPI);
if (ob == dialog_->input_tiny
- || ob == dialog_->input_script
- || ob == dialog_->input_footnote
- || ob == dialog_->input_small
- || ob == dialog_->input_large
- || ob == dialog_->input_larger
- || ob == dialog_->input_larger
- || ob == dialog_->input_largest
- || ob == dialog_->input_normal
- || ob == dialog_->input_huge
- || ob == dialog_->input_huger)
+ || ob == dialog_->input_script
+ || ob == dialog_->input_footnote
+ || ob == dialog_->input_small
+ || ob == dialog_->input_large
+ || ob == dialog_->input_larger
+ || ob == dialog_->input_larger
+ || ob == dialog_->input_largest
+ || ob == dialog_->input_normal
+ || ob == dialog_->input_huge
+ || ob == dialog_->input_huger)
return LyXRC::getDescription(LyXRC::RC_SCREEN_FONT_SIZES);
return string();
}