+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
2002-04-05 Angus Leeming <a.leeming@ic.ac.uk>
* FormGraphics.C (updateBB, input): Don't set the path of the file
setPrehandler(bbox_->input_bb_x1);
setPrehandler(bbox_->input_bb_y1);
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);
fl_addto_choice(bbox_->choice_bb_units, bb_units.c_str());
bc().addReadOnly(bbox_->button_getBB);
bc().addReadOnly(bbox_->check_clip);
void FormGraphics::update() {
// Update dialog with details from inset
InsetGraphicsParams & igp = controller().params();
void FormGraphics::update() {
// Update dialog with details from inset
InsetGraphicsParams & igp = controller().params();
fl_set_input(bbox_->input_bb_x1, bb.c_str());
fl_set_input(bbox_->input_bb_y1, bb.c_str());
}
fl_set_input(bbox_->input_bb_x1, bb.c_str());
fl_set_input(bbox_->input_bb_y1, bb.c_str());
}
fl_set_choice(bbox_->choice_bb_units, 1);
} else {
fl_set_choice(bbox_->choice_bb_units, 1);
} else {
LyXLength anyLength;
anyLength = LyXLength(token(bb_inset,' ',0));
updateWidgetsFromLength(bbox_->input_bb_x0,
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,
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,
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,
anyLength = LyXLength(token(bb_inset,' ',3));
updateWidgetsFromLength(bbox_->input_bb_y1,
- bbox_->choice_bb_units,anyLength,"pt");
+ bbox_->choice_bb_units,anyLength,"bp");
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());
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;
fl_set_choice_text(bbox_->choice_bb_units, unit.c_str());
}
controller().bbChanged = false;
fl_set_input(bbox_->input_bb_y0, "");
fl_set_input(bbox_->input_bb_x1, "");
fl_set_input(bbox_->input_bb_y1, "");
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");