diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-04-03 13:59:03 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-04-03 13:59:03 +0000 |
commit | 05f54edb99508ebc6ec1591b31246a4a89ac5aa2 (patch) | |
tree | 9d0de78a7880454bde8f355278bd9c3f549ffd00 /starmath | |
parent | 834af237fb233c59a8b9b070b12f61b5f94548be (diff) |
#i92516# preparations for new print UI
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/unomodel.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 57d9e909386f..9d068ddbc7de 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -103,6 +103,7 @@ class PrintUIOptions const rtl::OUString& i_rType, const rtl::OUString& i_rProperty, const Sequence< rtl::OUString >& i_rChoices, + sal_Int32 i_nValue, const rtl::OUString* i_pDependsOnName = NULL, sal_Int32 i_nDependsOnEntry = -1 ); @@ -174,12 +175,13 @@ Any PrintUIOptions::getUIControlOpt( const rtl::OUString& i_rTitle, const rtl::OUString& i_rType, const rtl::OUString& i_rProperty, const Sequence< rtl::OUString >& i_rChoices, + sal_Int32 i_nValue, const rtl::OUString* i_pDependsOnName, sal_Int32 i_nDependsOnEntry ) { PropertyValue aVal; aVal.Name = i_rProperty; - aVal.Value = makeAny( i_rChoices ); + aVal.Value = makeAny( i_nValue ); return getUIControlOpt( i_rTitle, i_rType, &aVal, &i_rChoices, i_pDependsOnName, i_nDependsOnEntry ); } @@ -226,7 +228,7 @@ void PrintUIOptions::addPrintUIOptions( uno::Sequence< beans::PropertyValue >& i aUIOptions[6].Value = getUIControlOpt( rtl::OUString(), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Radio" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintFormat" ) ), - aChoices + aChoices, 0 ); // create a numeric box for scale dependent on PrintFormat = "Scaling" |