vspaceradio_->signal_toggled().connect(
sigc::mem_fun(*this, &GDocument::updateParagraphSeparationSensitivity));
+
xml_->get_widget("VerticalSpaceSize", box);
box->pack_start(vspacesizecombo_, true, true, 0);
box->show_all();
sigc::mem_fun(*this,
&GDocument::updateParagraphSeparationSensitivity));
- xml_->get_widget("VerticalSpaceLength", vspacelengthspin_);
- vspacelengthadj_ = vspacelengthspin_->get_adjustment();
-
- xml_->get_widget("VerticalSpaceUnit", box);
- box->pack_start(vspaceunitcombo_, true, true, 0);
- box->show_all();
-
- populateUnitCombo(vspaceunitcombo_, false);
+ xml_->get_widget_derived("VerticalSpaceLength", vspacelengthentry_);
+ vspacelengthentry_->set_relative(false);
updateParagraphSeparationSensitivity();
// *** End "Document" Page ***
pagesizecombo_.signal_changed().connect(
sigc::mem_fun(*this, &GDocument::pageSizeChanged));
- xml_->get_widget("PageWidth", pagewidthspin_);
- xml_->get_widget("PageHeight", pageheightspin_);
- xml_->get_widget("PageWidthUnits", box);
- box->pack_start(pagewidthunitscombo_, true, true, 0);
- box->show_all();
- populateUnitCombo(pagewidthunitscombo_, false);
- xml_->get_widget("PageHeightUnits", box);
- box->pack_start(pageheightunitscombo_, true, true, 0);
- box->show_all();
- populateUnitCombo(pageheightunitscombo_, false);
+ xml_->get_widget_derived("PageWidth", pagewidthlengthentry_);
+ xml_->get_widget_derived("PageHeight", pageheightlengthentry_);
+ pagewidthlengthentry_->set_relative(false);
+ pageheightlengthentry_->set_relative(false);
xml_->get_widget("Portrait", portraitradio_);
xml_->get_widget("Landscape", landscaperadio_);
defaultmargins_->signal_toggled().connect(
sigc::mem_fun(*this, &GDocument::marginsChanged));
- xml_->get_widget("MarginTop", mtopspin_);
- xml_->get_widget("MarginBottom", mbottomspin_);
- xml_->get_widget("MarginInner", minnerspin_);
- xml_->get_widget("MarginOuter", mouterspin_);
- xml_->get_widget("MarginHeadSep", mheadsepspin_);
- xml_->get_widget("MarginHeadHeight", mheadheightspin_);
- xml_->get_widget("MarginFootSkip", mfootskipspin_);
-
- xml_->get_widget("MarginTopUnits", box);
- box->pack_start(mtopunitcombo_, true, true, 0);
- populateUnitCombo(mtopunitcombo_, false);
- xml_->get_widget("MarginBottomUnits", box);
- box->pack_start(mbottomunitcombo_, true, true, 0);
- populateUnitCombo(mbottomunitcombo_, false);
- xml_->get_widget("MarginInnerUnits", box);
- box->pack_start(minnerunitcombo_, true, true, 0);
- populateUnitCombo(minnerunitcombo_, false);
- xml_->get_widget("MarginOuterUnits", box);
- box->pack_start(mouterunitcombo_, true, true, 0);
- populateUnitCombo(mouterunitcombo_, false);
- xml_->get_widget("MarginHeadSepUnits", box);
- box->pack_start(mheadsepunitcombo_, true, true, 0);
- populateUnitCombo(mheadsepunitcombo_, false);
- xml_->get_widget("MarginHeadHeightUnits", box);
- box->pack_start(mheadheightunitcombo_, true, true, 0);
- populateUnitCombo(mheadheightunitcombo_, false);
- xml_->get_widget("MarginFootSkipUnits", box);
- box->pack_start(mfootskipunitcombo_, true, true, 0);
- populateUnitCombo(mfootskipunitcombo_, false);
-
- Gtk::Table * table;
- xml_->get_widget("MarginsTable", table);
- table->show_all();
+ xml_->get_widget_derived("MarginsTop", mtoplengthentry_);
+ xml_->get_widget_derived("MarginsBottom", mbottomlengthentry_);
+ xml_->get_widget_derived("MarginsInner", minnerlengthentry_);
+ xml_->get_widget_derived("MarginsOuter", mouterlengthentry_);
+ xml_->get_widget_derived("MarginsHeadSep", mheadseplengthentry_);
+ xml_->get_widget_derived("MarginsHeadHeight", mheadheightlengthentry_);
+ xml_->get_widget_derived("MarginsFootSkip", mfootskiplengthentry_);
// *** End "Margins" Page ***
// *** Start "Language" Page ***
}
LyXLength vspacelen = params.getDefSkip().length().len();
- setWidgetsFromLength(*vspacelengthadj_, vspaceunitcombo_, vspacelen);
+ vspacelengthentry_->set_length (vspacelen);
// *** End "Document" Page ***
int const psize = params.papersize;
pagesizecombo_.set_active(psize);
- setWidgetsFromLength(
- *(pagewidthspin_->get_adjustment()),
- pagewidthunitscombo_, LyXLength(params.paperwidth));
- setWidgetsFromLength(
- *(pageheightspin_->get_adjustment()),
- pageheightunitscombo_, LyXLength(params.paperheight));
+ pagewidthlengthentry_->set_length(LyXLength(params.paperwidth));
+ pageheightlengthentry_->set_length(LyXLength(params.paperheight));
if (params.orientation == ORIENTATION_PORTRAIT)
portraitradio_->set_active();
defaultmargins_->set_active(!params.use_geometry);
- setWidgetsFromLength(
- *(mtopspin_->get_adjustment()),
- mtopunitcombo_,
- LyXLength(params.topmargin));
- setWidgetsFromLength(
- *(mbottomspin_->get_adjustment()),
- mbottomunitcombo_,
- LyXLength(params.bottommargin));
- setWidgetsFromLength(
- *(minnerspin_->get_adjustment()),
- minnerunitcombo_,
- LyXLength(params.leftmargin));
- setWidgetsFromLength(
- *(mouterspin_->get_adjustment()),
- mouterunitcombo_,
- LyXLength(params.rightmargin));
- setWidgetsFromLength(
- *(mheadsepspin_->get_adjustment()),
- mheadsepunitcombo_,
- LyXLength(params.headsep));
- setWidgetsFromLength(
- *(mheadheightspin_->get_adjustment()),
- mheadheightunitcombo_,
- LyXLength(params.headheight));
- setWidgetsFromLength(
- *(mfootskipspin_->get_adjustment()),
- mfootskipunitcombo_,
- LyXLength(params.footskip));
- marginsChanged();
+ mtoplengthentry_->set_length(params.topmargin);
+ mbottomlengthentry_->set_length(params.bottommargin);
+ minnerlengthentry_->set_length(params.leftmargin);
+ mouterlengthentry_->set_length(params.rightmargin);
+ mheadseplengthentry_->set_length(params.headsep);
+ mheadheightlengthentry_->set_length(params.headheight);
+ mfootskiplengthentry_->set_length(params.footskip);
+ marginsChanged();
// *** End "Margins" Page ***
// *** Start "Language" Page ***
vspacesizemap_[vspacesizecombo_.get_active_row_number()];
params.setDefSkip(VSpace(selection));
if (selection == VSpace::LENGTH) {
- string const length =
- getLengthFromWidgets(*vspacelengthadj_,
- vspaceunitcombo_);
-
+ LyXLength length = vspacelengthentry_->get_length();
params.setDefSkip(VSpace(LyXGlueLength(length)));
}
params.papersize = PAPER_SIZE(
pagesizecombo_.get_active_row_number());
- params.paperwidth = getLengthFromWidgets(
- *(pagewidthspin_->get_adjustment()), pagewidthunitscombo_);
- params.paperheight = getLengthFromWidgets(
- *(pageheightspin_->get_adjustment()), pageheightunitscombo_);
+ params.paperwidth = pagewidthlengthentry_->get_length_string();
+ params.paperheight = pageheightlengthentry_->get_length_string();
if (portraitradio_->get_active())
params.orientation = ORIENTATION_PORTRAIT;
params.sides = LyXTextClass::OneSide;
params.pagestyle = pagestylecombo_.get_active_text();
-
// *** End "Page" Page ***
// *** Begin "Margins" Page ***
params.use_geometry = !defaultmargins_->get_active();
- params.topmargin = getLengthFromWidgets(
- *(mtopspin_->get_adjustment()),
- mtopunitcombo_);
- params.bottommargin = getLengthFromWidgets(
- *(mbottomspin_->get_adjustment()),
- mbottomunitcombo_);
- params.leftmargin = getLengthFromWidgets(
- *(minnerspin_->get_adjustment()),
- minnerunitcombo_);
- params.rightmargin = getLengthFromWidgets(
- *(mouterspin_->get_adjustment()),
- mouterunitcombo_);
- params.headsep = getLengthFromWidgets(
- *(mheadsepspin_->get_adjustment()),
- mheadsepunitcombo_);
- params.headheight = getLengthFromWidgets(
- *(mheadheightspin_->get_adjustment()),
- mheadheightunitcombo_);
- params.footskip = getLengthFromWidgets(
- *(mfootskipspin_->get_adjustment()),
- mfootskipunitcombo_);
+ params.topmargin = mtoplengthentry_->get_length_string();
+ params.bottommargin = mbottomlengthentry_->get_length_string();
+ params.leftmargin = minnerlengthentry_->get_length_string();
+ params.rightmargin = mouterlengthentry_->get_length_string();
+ params.headsep = mheadseplengthentry_->get_length_string();
+ params.headheight = mheadheightlengthentry_->get_length_string();
+ params.footskip = mfootskiplengthentry_->get_length_string();
// *** End "Margins" Page ***
// *** Start "Language" Page ***
bool const lengthsensitive = vspacesensitive &&
(vspacesizecombo_.get_active_row_number() == 3);
- vspacelengthspin_->set_sensitive(lengthsensitive);
- vspaceunitcombo_.set_sensitive(lengthsensitive);
+ vspacelengthentry_->set_sensitive(lengthsensitive);
}
void GDocument::pageSizeChanged()
{
bool const customsize = pagesizecombo_.get_active_row_number() == 1;
- pagewidthspin_->set_sensitive(customsize);
- pageheightspin_->set_sensitive(customsize);
- pagewidthunitscombo_.set_sensitive(customsize);
- pageheightunitscombo_.set_sensitive(customsize);
+ pagewidthlengthentry_->set_sensitive(customsize);
+ pageheightlengthentry_->set_sensitive(customsize);
if (customsize)
portraitradio_->set_active();
{
bool const custom = !defaultmargins_->get_active();
- mtopspin_->set_sensitive(custom);
- mbottomspin_->set_sensitive(custom);
- minnerspin_->set_sensitive(custom);
- mouterspin_->set_sensitive(custom);
- mheadsepspin_->set_sensitive(custom);
- mheadheightspin_->set_sensitive(custom);
- mfootskipspin_->set_sensitive(custom);
- mtopunitcombo_.set_sensitive(custom);
- mbottomunitcombo_.set_sensitive(custom);
- minnerunitcombo_.set_sensitive(custom);
- mouterunitcombo_.set_sensitive(custom);
- mheadsepunitcombo_.set_sensitive(custom);
- mheadheightunitcombo_.set_sensitive(custom);
- mfootskipunitcombo_.set_sensitive(custom);
+ mtoplengthentry_->set_sensitive(custom);
+ mbottomlengthentry_->set_sensitive(custom);
+ minnerlengthentry_->set_sensitive(custom);
+ mouterlengthentry_->set_sensitive(custom);
+ mheadseplengthentry_->set_sensitive(custom);
+ mheadheightlengthentry_->set_sensitive(custom);
+ mfootskiplengthentry_->set_sensitive(custom);
}
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
+ <property name="urgency_hint">False</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
</child>
<child>
- <widget class="GtkAlignment" id="alignment14">
+ <widget class="GtkHBox" id="hbox99">
<property name="visible">True</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
- <property name="xscale">1</property>
- <property name="yscale">1</property>
- <property name="top_padding">6</property>
- <property name="bottom_padding">0</property>
- <property name="left_padding">12</property>
- <property name="right_padding">0</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">6</property>
<child>
- <widget class="GtkVBox" id="vbox9">
+ <widget class="GtkHBox" id="VerticalSpaceSize">
<property name="visible">True</property>
<property name="homogeneous">False</property>
- <property name="spacing">6</property>
+ <property name="spacing">0</property>
<child>
- <widget class="GtkHBox" id="hbox5">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">12</property>
-
- <child>
- <widget class="GtkVBox" id="VerticalSpaceSize">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="VerticalSpaceLength">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">1 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="VerticalSpaceUnit">
- <property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
-
- <child>
- <placeholder/>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
- </widget>
- <packing>
- <property name="padding">0</property>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
+ <placeholder/>
</child>
</widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkHBox" id="VerticalSpaceLength">
+ <property name="visible">True</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">0</property>
+
+ <child>
+ <placeholder/>
+ </child>
+
+ <child>
+ <placeholder/>
+ </child>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
</child>
</widget>
<packing>
<widget class="GtkTable" id="table2">
<property name="visible">True</property>
<property name="n_rows">3</property>
- <property name="n_columns">3</property>
+ <property name="n_columns">2</property>
<property name="homogeneous">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
</child>
<child>
- <widget class="GtkSpinButton" id="PageWidth">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">1 0 65536 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="PageHeight">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">1 0 65536 1 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkVBox" id="PageWidthUnits">
+ <widget class="GtkVBox" id="PageSize">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
</child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">0</property>
+ <property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
- <widget class="GtkVBox" id="PageHeightUnits">
+ <widget class="GtkHBox" id="PageHeight">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">fill</property>
</child>
<child>
- <widget class="GtkVBox" id="PageSize">
+ <widget class="GtkHBox" id="PageWidth">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">3</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
<property name="border_width">12</property>
<property name="visible">True</property>
<property name="n_rows">8</property>
- <property name="n_columns">3</property>
+ <property name="n_columns">2</property>
<property name="homogeneous">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginTop</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginBottom</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginInner</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginOuter</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginHeadSep</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginHeadHeight</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">MarginFootSkip</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
</child>
<child>
- <widget class="GtkSpinButton" id="MarginTop">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="MarginBottom">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="MarginInner">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="MarginOuter">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="MarginHeadSep">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="MarginHeadHeight">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- <property name="y_options"></property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkSpinButton" id="MarginFootSkip">
+ <widget class="GtkCheckButton" id="DefaultMargins">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="climb_rate">1</property>
- <property name="digits">2</property>
- <property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
- <property name="snap_to_ticks">False</property>
- <property name="wrap">False</property>
- <property name="adjustment">666 0 65536 0.01 10 10</property>
+ <property name="label" translatable="yes">Use _default margins</property>
+ <property name="use_underline">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ <property name="active">False</property>
+ <property name="inconsistent">False</property>
+ <property name="draw_indicator">True</property>
</widget>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
+ <property name="left_attach">0</property>
+ <property name="right_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="bottom_attach">1</property>
+ <property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkVBox" id="MarginTopUnits">
+ <widget class="GtkHBox" id="MarginsTop">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
- <property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
- <widget class="GtkVBox" id="MarginBottomUnits">
+ <widget class="GtkHBox" id="MarginsBottom">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">fill</property>
</child>
<child>
- <widget class="GtkVBox" id="MarginInnerUnits">
+ <widget class="GtkHBox" id="MarginsInner">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
</child>
<child>
- <widget class="GtkVBox" id="MarginOuterUnits">
+ <widget class="GtkHBox" id="MarginsOuter">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
</child>
<child>
- <widget class="GtkVBox" id="MarginHeadSepUnits">
+ <widget class="GtkHBox" id="MarginsHeadSep">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
</child>
<child>
- <widget class="GtkVBox" id="MarginHeadHeightUnits">
+ <widget class="GtkHBox" id="MarginsHeadHeight">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">6</property>
<property name="bottom_attach">7</property>
<property name="x_options">fill</property>
</child>
<child>
- <widget class="GtkVBox" id="MarginFootSkipUnits">
+ <widget class="GtkHBox" id="MarginsFootSkip">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<placeholder/>
</child>
+
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
<property name="top_attach">7</property>
<property name="bottom_attach">8</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
-
- <child>
- <widget class="GtkCheckButton" id="DefaultMargins">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Use _default margins</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <property name="active">False</property>
- <property name="inconsistent">False</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">0</property>
- <property name="right_attach">1</property>
- <property name="top_attach">0</property>
- <property name="bottom_attach">1</property>
- <property name="x_options">fill</property>
- <property name="y_options"></property>
- </packing>
- </child>
</widget>
<packing>
<property name="tab_expand">False</property>