mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
pt->bp patch from Herbert Voss
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3911 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
546d0f52c7
commit
5e6b00a546
@ -1,3 +1,8 @@
|
||||
2002-04-05 Herbert Voss <voss@perce.de>
|
||||
|
||||
* FormGraphics.C: use correct unit bp (big point - PostScript point)
|
||||
for the bounding box values
|
||||
|
||||
2002-04-05 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* FormGraphics.C (updateBB, input): Don't set the path of the file
|
||||
|
@ -169,7 +169,7 @@ void FormGraphics::build()
|
||||
setPrehandler(bbox_->input_bb_x1);
|
||||
setPrehandler(bbox_->input_bb_y1);
|
||||
|
||||
string const bb_units = "pt|cm|in";
|
||||
string const bb_units = "bp|cm|in";
|
||||
fl_addto_choice(bbox_->choice_bb_units, bb_units.c_str());
|
||||
bc().addReadOnly(bbox_->button_getBB);
|
||||
bc().addReadOnly(bbox_->check_clip);
|
||||
@ -296,6 +296,7 @@ void FormGraphics::apply()
|
||||
}
|
||||
|
||||
|
||||
|
||||
void FormGraphics::update() {
|
||||
// Update dialog with details from inset
|
||||
InsetGraphicsParams & igp = controller().params();
|
||||
@ -453,7 +454,7 @@ void FormGraphics::updateBB(string const & filename, string const & bb_inset)
|
||||
fl_set_input(bbox_->input_bb_x1, bb.c_str());
|
||||
fl_set_input(bbox_->input_bb_y1, bb.c_str());
|
||||
}
|
||||
// "pt"
|
||||
// "bp"
|
||||
fl_set_choice(bbox_->choice_bb_units, 1);
|
||||
|
||||
} else {
|
||||
@ -464,16 +465,16 @@ void FormGraphics::updateBB(string const & filename, string const & bb_inset)
|
||||
LyXLength anyLength;
|
||||
anyLength = LyXLength(token(bb_inset,' ',0));
|
||||
updateWidgetsFromLength(bbox_->input_bb_x0,
|
||||
bbox_->choice_bb_units,anyLength,"pt");
|
||||
bbox_->choice_bb_units,anyLength,"bp");
|
||||
anyLength = LyXLength(token(bb_inset,' ',1));
|
||||
updateWidgetsFromLength(bbox_->input_bb_y0,
|
||||
bbox_->choice_bb_units,anyLength,"pt");
|
||||
bbox_->choice_bb_units,anyLength,"bp");
|
||||
anyLength = LyXLength(token(bb_inset,' ',2));
|
||||
updateWidgetsFromLength(bbox_->input_bb_x1,
|
||||
bbox_->choice_bb_units,anyLength,"pt");
|
||||
bbox_->choice_bb_units,anyLength,"bp");
|
||||
anyLength = LyXLength(token(bb_inset,' ',3));
|
||||
updateWidgetsFromLength(bbox_->input_bb_y1,
|
||||
bbox_->choice_bb_units,anyLength,"pt");
|
||||
bbox_->choice_bb_units,anyLength,"bp");
|
||||
}
|
||||
}
|
||||
|
||||
@ -590,7 +591,7 @@ ButtonPolicy::SMInput FormGraphics::input(FL_OBJECT * ob, long)
|
||||
fl_set_input(bbox_->input_bb_y0, token(bb,' ',1).c_str());
|
||||
fl_set_input(bbox_->input_bb_x1, token(bb,' ',2).c_str());
|
||||
fl_set_input(bbox_->input_bb_y1, token(bb,' ',3).c_str());
|
||||
string const unit("pt");
|
||||
string const unit("bp");
|
||||
fl_set_choice_text(bbox_->choice_bb_units, unit.c_str());
|
||||
}
|
||||
controller().bbChanged = false;
|
||||
@ -599,7 +600,7 @@ ButtonPolicy::SMInput FormGraphics::input(FL_OBJECT * ob, long)
|
||||
fl_set_input(bbox_->input_bb_y0, "");
|
||||
fl_set_input(bbox_->input_bb_x1, "");
|
||||
fl_set_input(bbox_->input_bb_y1, "");
|
||||
fl_set_choice_text(bbox_->choice_bb_units, "pt");
|
||||
fl_set_choice_text(bbox_->choice_bb_units, "bp");
|
||||
}
|
||||
|
||||
// the size section
|
||||
|
Loading…
Reference in New Issue
Block a user