mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
Update defaultTemplateName so that the external dialog opens with the
last-used template. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8292 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f0a2d5d9ae
commit
1fe005b6c4
@ -1,3 +1,7 @@
|
|||||||
|
2003-12-29 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
|
* insetexternal.C (setParams): update defaultTemplateName.
|
||||||
|
|
||||||
2003-12-22 Michael Schmitt <michael.schmitt@teststep.org>
|
2003-12-22 Michael Schmitt <michael.schmitt@teststep.org>
|
||||||
|
|
||||||
* insetbox.C: Use term "Box" in button label
|
* insetbox.C: Use term "Box" in button label
|
||||||
|
@ -65,7 +65,7 @@ external::DisplayType const defaultDisplayType = external::NoDisplay;
|
|||||||
|
|
||||||
unsigned int const defaultLyxScale = 100;
|
unsigned int const defaultLyxScale = 100;
|
||||||
|
|
||||||
string const defaultTemplateName = "RasterImage";
|
string defaultTemplateName = "RasterImage";
|
||||||
|
|
||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
@ -596,6 +596,10 @@ void InsetExternal::setParams(InsetExternalParams const & p,
|
|||||||
{
|
{
|
||||||
params_ = p;
|
params_ = p;
|
||||||
|
|
||||||
|
// Subsequent calls to the InsetExternal::Params default constructor
|
||||||
|
// will use this.
|
||||||
|
defaultTemplateName = params_.templatename();
|
||||||
|
|
||||||
switch (getRenderType(params_)) {
|
switch (getRenderType(params_)) {
|
||||||
case RENDERBUTTON: {
|
case RENDERBUTTON: {
|
||||||
RenderButton * button_ptr = renderer_->asButton();
|
RenderButton * button_ptr = renderer_->asButton();
|
||||||
|
Loading…
Reference in New Issue
Block a user