mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Activate "use geometry" button if using custom paper size/margin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1593 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
29d1ff39b5
commit
9715b1d974
@ -1,3 +1,8 @@
|
||||
2001-02-21 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* FormDocument.C (checkMarginValues): Activate "use geometry" button
|
||||
if using custom paper size/margin.
|
||||
|
||||
2001-02-21 Allan Rae <rae@lyx.org>
|
||||
|
||||
* forms/form_preferences.fd: larger, bold font for outer tabfolder
|
||||
|
@ -835,19 +835,18 @@ void FormDocument::checkReadOnly()
|
||||
|
||||
void FormDocument::checkMarginValues()
|
||||
{
|
||||
#if 0
|
||||
int const allEmpty = (!strlen(fl_get_input(paper_->input_top_margin)) &&
|
||||
!strlen(fl_get_input(paper_->input_bottom_margin)) &&
|
||||
!strlen(fl_get_input(paper_->input_left_margin)) &&
|
||||
!strlen(fl_get_input(paper_->input_right_margin)) &&
|
||||
!strlen(fl_get_input(paper_->input_head_height)) &&
|
||||
!strlen(fl_get_input(paper_->input_head_sep)) &&
|
||||
!strlen(fl_get_input(paper_->input_foot_skip)) &&
|
||||
!strlen(fl_get_input(paper_->input_custom_width)) &&
|
||||
!strlen(fl_get_input(paper_->input_custom_height)));
|
||||
if (!allEmpty)
|
||||
bool const not_empty =
|
||||
strlen(fl_get_input(paper_->input_top_margin)) ||
|
||||
strlen(fl_get_input(paper_->input_bottom_margin)) ||
|
||||
strlen(fl_get_input(paper_->input_left_margin)) ||
|
||||
strlen(fl_get_input(paper_->input_right_margin)) ||
|
||||
strlen(fl_get_input(paper_->input_head_height)) ||
|
||||
strlen(fl_get_input(paper_->input_head_sep)) ||
|
||||
strlen(fl_get_input(paper_->input_foot_skip)) ||
|
||||
strlen(fl_get_input(paper_->input_custom_width)) ||
|
||||
strlen(fl_get_input(paper_->input_custom_height));
|
||||
if (not_empty)
|
||||
fl_set_button(paper_->push_use_geometry, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user