Kaydet (Commit) f35f7b4f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

reportdesign: Use appropriate OUString functions on string constants

Change-Id: I4baeb6ed5a3f16c3c1f0a2715cb011ef2555fc90
üst ca8e26ae
...@@ -138,7 +138,7 @@ OXMLGroup::OXMLGroup( ORptFilter& _rImport ...@@ -138,7 +138,7 @@ OXMLGroup::OXMLGroup( ORptFilter& _rImport
nGroupOn = report::GroupOn::MONTH; nGroupOn = report::GroupOn::MONTH;
} }
else if ( sCompleteFormula.matchIgnoreAsciiCase("rpt:INT((MONTH",0) else if ( sCompleteFormula.matchIgnoreAsciiCase("rpt:INT((MONTH",0)
&& sCompleteFormula.endsWithIgnoreAsciiCaseAsciiL("-1)/3)+1",8) ) && sCompleteFormula.endsWithIgnoreAsciiCase("-1)/3)+1") )
{ {
nGroupOn = report::GroupOn::QUARTAL; nGroupOn = report::GroupOn::QUARTAL;
} }
......
...@@ -263,7 +263,7 @@ inspection::LineDescriptor SAL_CALL DataProviderHandler::describePropertyLine(co ...@@ -263,7 +263,7 @@ inspection::LineDescriptor SAL_CALL DataProviderHandler::describePropertyLine(co
switch(nId) switch(nId)
{ {
case PROPERTY_ID_CHARTTYPE: case PROPERTY_ID_CHARTTYPE:
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_PROP_CHARTTYPE_DLG); aOut.PrimaryButtonId = UID_RPT_PROP_CHARTTYPE_DLG;
aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::TextField , sal_True); aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::TextField , sal_True);
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
break; break;
...@@ -273,7 +273,7 @@ inspection::LineDescriptor SAL_CALL DataProviderHandler::describePropertyLine(co ...@@ -273,7 +273,7 @@ inspection::LineDescriptor SAL_CALL DataProviderHandler::describePropertyLine(co
case PROPERTY_ID_MASTERFIELDS: case PROPERTY_ID_MASTERFIELDS:
case PROPERTY_ID_DETAILFIELDS: case PROPERTY_ID_DETAILFIELDS:
aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::StringListField , sal_False); aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::StringListField , sal_False);
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_PROP_DLG_LINKFIELDS); aOut.PrimaryButtonId = UID_RPT_PROP_DLG_LINKFIELDS;
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
break; break;
default: default:
......
...@@ -773,12 +773,12 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const ...@@ -773,12 +773,12 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const
break; break;
case PROPERTY_ID_INITIALFORMULA: case PROPERTY_ID_INITIALFORMULA:
case PROPERTY_ID_FORMULA: case PROPERTY_ID_FORMULA:
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_PROP_FORMULA); aOut.PrimaryButtonId = UID_RPT_PROP_FORMULA;
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::MultiLineTextField , sal_False); aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::MultiLineTextField , sal_False);
break; break;
case PROPERTY_ID_CONDITIONALPRINTEXPRESSION: case PROPERTY_ID_CONDITIONALPRINTEXPRESSION:
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_PROP_FORMULA); aOut.PrimaryButtonId = UID_RPT_PROP_FORMULA;
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::MultiLineTextField , sal_False); aOut.Control = _xControlFactory->createPropertyControl(inspection::PropertyControlType::MultiLineTextField , sal_False);
break; break;
...@@ -793,7 +793,7 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const ...@@ -793,7 +793,7 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const
if ( m_nDataFieldType == DATA_OR_FORMULA ) if ( m_nDataFieldType == DATA_OR_FORMULA )
{ {
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_PROP_FORMULA); aOut.PrimaryButtonId = UID_RPT_PROP_FORMULA;
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
} }
...@@ -820,12 +820,12 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const ...@@ -820,12 +820,12 @@ inspection::LineDescriptor SAL_CALL GeometryHandler::describePropertyLine(const
aOut.Control = _xControlFactory->createPropertyControl( inspection::PropertyControlType::ColorListBox, sal_False ); aOut.Control = _xControlFactory->createPropertyControl( inspection::PropertyControlType::ColorListBox, sal_False );
break; break;
case PROPERTY_ID_FONT: case PROPERTY_ID_FONT:
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_RPT_PROP_DLG_FONT_TYPE); aOut.PrimaryButtonId = UID_RPT_RPT_PROP_DLG_FONT_TYPE;
aOut.Control = _xControlFactory->createPropertyControl( inspection::PropertyControlType::TextField, sal_True ); aOut.Control = _xControlFactory->createPropertyControl( inspection::PropertyControlType::TextField, sal_True );
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
break; break;
case PROPERTY_ID_AREA: case PROPERTY_ID_AREA:
aOut.PrimaryButtonId = OUString::createFromAscii(UID_RPT_RPT_PROP_DLG_AREA); aOut.PrimaryButtonId = UID_RPT_RPT_PROP_DLG_AREA;
aOut.Control = _xControlFactory->createPropertyControl( inspection::PropertyControlType::TextField, sal_True ); aOut.Control = _xControlFactory->createPropertyControl( inspection::PropertyControlType::TextField, sal_True );
aOut.HasPrimaryButton = sal_True; aOut.HasPrimaryButton = sal_True;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment