summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appuno.cxx')
-rw-r--r--sfx2/source/appl/appuno.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index e4443b7f46fc..7290ec77eb78 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -887,12 +887,15 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::Sequence<beans::Propert
if ( "OptionsTreeDialog" == pSlot->pUnoName )
{
auto pProp = std::find_if(rArgs.begin(), rArgs.end(),
- [](const PropertyValue& rProp) { return rProp.Name == "OptionsPageURL"; });
+ [](const PropertyValue& rProp) { return rProp.Name == "OptionsPageURL" || rProp.Name == "OptionsPageID"; });
if (pProp != rArgs.end())
{
OUString sURL;
- if ( pProp->Value >>= sURL )
+ sal_uInt16 nPageID;
+ if ( pProp->Name == "OptionsPageURL" && (pProp->Value >>= sURL) )
rSet.Put( SfxStringItem( SID_OPTIONS_PAGEURL, sURL ) );
+ else if ( pProp->Name == "OptionsPageID" && (pProp->Value >>= nPageID) )
+ rSet.Put( SfxUInt16Item( SID_OPTIONS_PAGEID, nPageID ) );
}
}
}