support stock text in checkboxes and radiobuttons
Change-Id: I03b2e125736b7f8a7127174a7a837760f76f8249 Reviewed-on: https://gerrit.libreoffice.org/43893 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
bdd7c74a49
commit
1b87cdadb8
@ -1263,6 +1263,11 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
|
|||||||
VclPtr<RadioButton> xButton = VclPtr<RadioButton>::Create(pParent, nBits);
|
VclPtr<RadioButton> xButton = VclPtr<RadioButton>::Create(pParent, nBits);
|
||||||
xButton->SetImageAlign(ImageAlign::Left); //default to left
|
xButton->SetImageAlign(ImageAlign::Left); //default to left
|
||||||
xWindow = xButton;
|
xWindow = xButton;
|
||||||
|
|
||||||
|
if (::extractStock(rMap))
|
||||||
|
{
|
||||||
|
xWindow->SetText(getStockText(extractLabel(rMap)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (name == "GtkCheckButton")
|
else if (name == "GtkCheckButton")
|
||||||
{
|
{
|
||||||
@ -1280,7 +1285,13 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
|
|||||||
if (bIsTriState)
|
if (bIsTriState)
|
||||||
xCheckBox->SetState(TRISTATE_INDET);
|
xCheckBox->SetState(TRISTATE_INDET);
|
||||||
xCheckBox->SetImageAlign(ImageAlign::Left); //default to left
|
xCheckBox->SetImageAlign(ImageAlign::Left); //default to left
|
||||||
|
|
||||||
xWindow = xCheckBox;
|
xWindow = xCheckBox;
|
||||||
|
|
||||||
|
if (::extractStock(rMap))
|
||||||
|
{
|
||||||
|
xWindow->SetText(getStockText(extractLabel(rMap)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (name == "GtkSpinButton")
|
else if (name == "GtkSpinButton")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user