summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-21 15:48:51 +0200
committerThomas Arnhold <thomas@arnhold.org>2016-12-21 16:19:37 +0000
commit6b8ee3c9ba9b9262b34743a9f4e2a5b9dda4173f (patch)
treeba5bf03e1b94e30a76ac66d5dcd3c7749e3c568f /svx
parentc7964e48b6d9a85d8d08ed3b7cbd58c117ac4e0a (diff)
convert VclButtonsType to scoped enum
Change-Id: I9b91108c18e190060dc71546977aa8a3c11f06e1 Reviewed-on: https://gerrit.libreoffice.org/32285 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/docrecovery.cxx2
-rw-r--r--svx/source/form/datanavi.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index f2e81f40e1cc..032c15ff90f9 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -841,7 +841,7 @@ void RecovDocList::InitEntry(SvTreeListEntry* pEntry,
short impl_askUserForWizardCancel(vcl::Window* pParent, sal_Int16 nRes)
{
- ScopedVclPtrInstance< MessageDialog > aQuery(pParent, SVX_RES(nRes), VclMessageType::Question, VCL_BUTTONS_YES_NO);
+ ScopedVclPtrInstance< MessageDialog > aQuery(pParent, SVX_RES(nRes), VclMessageType::Question, VclButtonsType::YesNo);
if (aQuery->Execute() == RET_YES)
return DLG_RET_OK;
else
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index e50adbc3efce..165327340203 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -949,7 +949,7 @@ namespace svxform
bool bIsElement = ( eChildType == css::xml::dom::NodeType_ELEMENT_NODE );
sal_uInt16 nResId = bIsElement ? RID_STR_QRY_REMOVE_ELEMENT : RID_STR_QRY_REMOVE_ATTRIBUTE;
OUString sVar = bIsElement ? OUString(ELEMENTNAME) : OUString(ATTRIBUTENAME);
- ScopedVclPtrInstance< MessageDialog > aQBox(this, SVX_RES(nResId), VclMessageType::Question, VCL_BUTTONS_YES_NO);
+ ScopedVclPtrInstance< MessageDialog > aQBox(this, SVX_RES(nResId), VclMessageType::Question, VclButtonsType::YesNo);
OUString sMessText = aQBox->get_primary_text();
sMessText = sMessText.replaceFirst(
sVar, m_xUIHelper->getNodeDisplayName( pNode->m_xNode, false ) );
@@ -992,7 +992,7 @@ namespace svxform
SAL_WARN( "svx.form", "XFormsPage::RemoveEntry(): exception caught" );
}
ScopedVclPtrInstance<MessageDialog> aQBox(this, SVX_RES(nResId),
- VclMessageType::Question, VCL_BUTTONS_YES_NO);
+ VclMessageType::Question, VclButtonsType::YesNo);
OUString sMessText = aQBox->get_primary_text();
sMessText = sMessText.replaceFirst( sSearch, sName);
aQBox->set_primary_text(sMessText);
@@ -1588,7 +1588,7 @@ namespace svxform
else if (sIdent == "modelsremove")
{
ScopedVclPtrInstance<MessageDialog> aQBox(this, SVX_RES( RID_STR_QRY_REMOVE_MODEL),
- VclMessageType::Question, VCL_BUTTONS_YES_NO);
+ VclMessageType::Question, VclButtonsType::YesNo);
OUString sText = aQBox->get_primary_text();
sText = sText.replaceFirst( MODELNAME, sSelectedModel );
aQBox->set_primary_text(sText);
@@ -1689,7 +1689,7 @@ namespace svxform
{
OUString sInstName = pPage->GetInstanceName();
ScopedVclPtrInstance<MessageDialog> aQBox(this, SVX_RES(RID_STR_QRY_REMOVE_INSTANCE),
- VclMessageType::Question, VCL_BUTTONS_YES_NO);
+ VclMessageType::Question, VclButtonsType::YesNo);
OUString sMessText = aQBox->get_primary_text();
sMessText = sMessText.replaceFirst( INSTANCENAME, sInstName );
aQBox->set_primary_text(sMessText);