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

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I72d11153ffccc51633aec78c802822173dd7f5ed
üst b183742d
......@@ -277,8 +277,8 @@ SvxSuperContourDlg::SvxSuperContourDlg(SfxBindings *_pBindings, SfxChildWindow *
SetMinOutputSizePixel( aLastSize = GetOutputSizePixel() );
m_pStbStatus->InsertItem( 1, 130, SIB_LEFT | SIB_IN | SIB_AUTOSIZE );
m_pStbStatus->InsertItem( 2, 10 + GetTextWidth( OUString(" 9999,99 cm / 9999,99 cm ") ) );
m_pStbStatus->InsertItem( 3, 10 + GetTextWidth( OUString(" 9999,99 cm x 9999,99 cm ") ) );
m_pStbStatus->InsertItem( 2, 10 + GetTextWidth( " 9999,99 cm / 9999,99 cm " ) );
m_pStbStatus->InsertItem( 3, 10 + GetTextWidth( " 9999,99 cm x 9999,99 cm " ) );
m_pStbStatus->InsertItem( 4, 20 );
Resize();
......
......@@ -108,7 +108,7 @@ void CompressGraphicsDialog::Initialize()
get(m_pBtnCalculate, "calculate");
get(m_pInterpolationCombo, "interpolation-method-combo");
m_pInterpolationCombo->SelectEntry( OUString("Lanczos") );
m_pInterpolationCombo->SelectEntry( "Lanczos" );
m_pMFNewWidth->SetModifyHdl( LINK( this, CompressGraphicsDialog, NewWidthModifiedHdl ));
m_pMFNewHeight->SetModifyHdl( LINK( this, CompressGraphicsDialog, NewHeightModifiedHdl ));
......@@ -283,7 +283,7 @@ void CompressGraphicsDialog::Compress(SvStream& aStream)
OUString aGraphicFormatName = m_pLosslessRB->IsChecked() ? OUString( "png" ) : OUString( "jpg" );
sal_uInt16 nFilterFormat = rFilter.GetExportFormatNumberForShortName( aGraphicFormatName );
rFilter.ExportGraphic( aScaledGraphic, OUString( "none" ), aStream, nFilterFormat, &aFilterData );
rFilter.ExportGraphic( aScaledGraphic, "none", aStream, nFilterFormat, &aFilterData );
}
IMPL_LINK_NOARG_TYPED( CompressGraphicsDialog, NewWidthModifiedHdl, Edit&, void )
......
......@@ -192,8 +192,8 @@ SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window
SetMinOutputSizePixel( aLastSize = GetOutputSizePixel() );
m_pStbStatus->InsertItem( 1, 130, SIB_LEFT | SIB_IN | SIB_AUTOSIZE );
m_pStbStatus->InsertItem( 2, 10 + GetTextWidth( OUString(" 9999,99 cm / 9999,99 cm ") ) );
m_pStbStatus->InsertItem( 3, 10 + GetTextWidth( OUString(" 9999,99 cm x 9999,99 cm ") ) );
m_pStbStatus->InsertItem( 2, 10 + GetTextWidth( " 9999,99 cm / 9999,99 cm " ) );
m_pStbStatus->InsertItem( 3, 10 + GetTextWidth( " 9999,99 cm x 9999,99 cm " ) );
m_pFtURL->Disable();
m_pURLBox->Disable();
......
......@@ -881,7 +881,7 @@ void RubyPreview::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*r
break;
case RubyAdjust_INDENT_BLOCK:
{
long nCharWidth = GetTextWidth(OUString("X"));
long nCharWidth = GetTextWidth("X");
if (nOutTextWidth < (nRightEnd - nLeftStart - nCharWidth))
{
nCharWidth /= 2;
......
......@@ -177,7 +177,7 @@ void SvxSwFrameExample::InitAllRects_Impl(vcl::RenderContext& rRenderContext)
{
aFont.SetSize(Size(0, aParaPrtArea.GetHeight() - 2));
SetFont(aFont);
aParaPrtArea.SetSize(Size(GetTextWidth(OUString(DEMOTEXT)), GetTextHeight()));
aParaPrtArea.SetSize(Size(GetTextWidth(DEMOTEXT), GetTextHeight()));
}
else
{
......@@ -223,7 +223,7 @@ void SvxSwFrameExample::InitAllRects_Impl(vcl::RenderContext& rRenderContext)
}
else
{
sal_uIntPtr nFreeWidth = aPagePrtArea.GetWidth() - GetTextWidth(OUString(DEMOTEXT));
sal_uIntPtr nFreeWidth = aPagePrtArea.GetWidth() - GetTextWidth(DEMOTEXT);
aFrmSize = Size(nFreeWidth / 2, (aTextLine.GetHeight() + 2) * 3);
aDrawObj.SetSize(Size(std::max(5L, (long)nFreeWidth / 3L), std::max(5L, aFrmSize.Height() * 3L)));
......
......@@ -154,7 +154,7 @@ namespace svx
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"dbaccess.ColumnDescriptorTransfer\""));
s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"dbaccess.ColumnDescriptorTransfer\"");
OSL_ENSURE(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OColumnTransferable::getDescriptorFormatId: bad exchange id!");
}
return s_nFormat;
......@@ -616,7 +616,7 @@ namespace svx
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"dbaccess.MultipleColumnDescriptorTransfer\""));
s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"dbaccess.MultipleColumnDescriptorTransfer\"");
OSL_ENSURE(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OColumnTransferable::getDescriptorFormatId: bad exchange id!");
}
return s_nFormat;
......
......@@ -58,12 +58,12 @@ namespace svx
static SotClipboardFormatId s_nFormFormat = static_cast<SotClipboardFormatId>(-1);
if ( _bExtractForm && static_cast<SotClipboardFormatId>(-1) == s_nFormFormat )
{
s_nFormFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"dbaccess.FormComponentDescriptorTransfer\"" ));
s_nFormFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"dbaccess.FormComponentDescriptorTransfer\"");
OSL_ENSURE(static_cast<SotClipboardFormatId>(-1) != s_nFormFormat, "OComponentTransferable::getDescriptorFormatId: bad exchange id!");
}
else if ( !_bExtractForm && static_cast<SotClipboardFormatId>(-1) == s_nReportFormat)
{
s_nReportFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"dbaccess.ReportComponentDescriptorTransfer\""));
s_nReportFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"dbaccess.ReportComponentDescriptorTransfer\"");
OSL_ENSURE(static_cast<SotClipboardFormatId>(-1) != s_nReportFormat, "OComponentTransferable::getDescriptorFormatId: bad exchange id!");
}
return _bExtractForm ? s_nFormFormat : s_nReportFormat;
......
......@@ -42,7 +42,7 @@ namespace svx
const SotClipboardFormatId nFormatId = SotExchange::GetFormat( _rFlavor );
if ( SotClipboardFormatId::XFORMS == nFormatId )
{
return SetString(OUString("XForms-Transferable"), _rFlavor);
return SetString("XForms-Transferable", _rFlavor);
}
return false;
}
......
......@@ -159,7 +159,7 @@ namespace svx
::utl::OConfigurationTreeRoot aConfig(
::utl::OConfigurationTreeRoot::createWithComponentContext(
m_xContext,
OUString( "/org.openoffice.Setup/Office/Factories/com.sun.star.sdb.OfficeDatabaseDocument" )
"/org.openoffice.Setup/Office/Factories/com.sun.star.sdb.OfficeDatabaseDocument"
) );
OUString sDatabaseFilter;
OSL_VERIFY( aConfig.getNodeValue( "ooSetupFactoryActualFilter" ) >>= sDatabaseFilter );
......
......@@ -3409,7 +3409,7 @@ namespace svxform
css::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0 );
INetURLObject aFile( SvtPathOptions().GetWorkPath() );
aDlg.AddFilter( m_sAllFilterName, OUString(FILEDIALOG_FILTER_ALL) );
aDlg.AddFilter( m_sAllFilterName, FILEDIALOG_FILTER_ALL );
OUString sFilterName( "XML" );
aDlg.AddFilter( sFilterName, "*.xml" );
aDlg.SetCurrentFilter( sFilterName );
......
......@@ -122,7 +122,7 @@ SotClipboardFormatId OFilterItemExchange::getFormatId()
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"form.FilterControlExchange\""));
s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"form.FilterControlExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OFilterExchangeHelper::getFormatId: bad exchange id!");
}
return s_nFormat;
......
......@@ -320,7 +320,7 @@ namespace svxform
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"svxform.ControlPathExchange\""));
s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"svxform.ControlPathExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OControlExchange::getControlPathFormatId: bad exchange id!");
}
return s_nFormat;
......@@ -332,7 +332,7 @@ namespace svxform
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"svxform.HiddenControlModelsExchange\""));
s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"svxform.HiddenControlModelsExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OControlExchange::getHiddenControlModelsFormatId: bad exchange id!");
}
return s_nFormat;
......@@ -344,7 +344,7 @@ namespace svxform
static SotClipboardFormatId s_nFormat = static_cast<SotClipboardFormatId>(-1);
if (static_cast<SotClipboardFormatId>(-1) == s_nFormat)
{
s_nFormat = SotExchange::RegisterFormatName(OUString("application/x-openoffice;windows_formatname=\"svxform.FieldNameExchange\""));
s_nFormat = SotExchange::RegisterFormatName("application/x-openoffice;windows_formatname=\"svxform.FieldNameExchange\"");
DBG_ASSERT(static_cast<SotClipboardFormatId>(-1) != s_nFormat, "OControlExchange::getFieldExchangeFormatId: bad exchange id!");
}
return s_nFormat;
......
......@@ -215,7 +215,7 @@ FmFormShell::FmFormShell( SfxViewShell* _pParent, FmFormView* pView )
{
m_pImpl->acquire();
SetPool( &SfxGetpApp()->GetPool() );
SetName( OUString("Form") );
SetName( "Form" );
SetView(m_pFormView);
}
......@@ -763,7 +763,7 @@ void FmFormShell::Execute(SfxRequest &rReq)
}
if ( nRecord != -1 )
rController->execute( nSlot, OUString( "Position" ), makeAny( (sal_Int32)nRecord ) );
rController->execute( nSlot, "Position", makeAny( (sal_Int32)nRecord ) );
rReq.Done();
} break;
......
......@@ -76,7 +76,7 @@ void SvxFmAbsRecWin::FirePosition( bool _bForce )
aArgs[0].Name = "Position";
aPositionParam.QueryValue( a );
aArgs[0].Value = a;
m_pController->Dispatch( OUString( ".uno:AbsoluteRecord" ),
m_pController->Dispatch( ".uno:AbsoluteRecord",
aArgs );
m_pController->updateStatus();
......
......@@ -68,7 +68,7 @@ namespace svxform
:OAddConditionDialogBase( _rxORB )
{
registerProperty(
OUString( "Binding" ),
"Binding",
PROPERTY_ID_BINDING,
PropertyAttribute::TRANSIENT,
&m_xBinding,
......@@ -76,7 +76,7 @@ namespace svxform
);
registerProperty(
OUString( "FacetName" ),
"FacetName",
PROPERTY_ID_FACET_NAME,
PropertyAttribute::TRANSIENT,
&m_sFacetName,
......@@ -84,7 +84,7 @@ namespace svxform
);
registerProperty(
OUString( "ConditionValue" ),
"ConditionValue",
PROPERTY_ID_CONDITION_VALUE,
PropertyAttribute::TRANSIENT,
&m_sConditionValue,
......@@ -92,7 +92,7 @@ namespace svxform
);
registerProperty(
OUString( "FormModel" ),
"FormModel",
PROPERTY_ID_FORM_MODEL,
PropertyAttribute::TRANSIENT,
&m_xWorkModel,
......
......@@ -283,7 +283,7 @@ bool CreateDir( const INetURLObject& rURL )
aValues[0] = uno::makeAny( OUString( aNewFolderURL.GetName() ) );
::ucbhelper::Content aContent( aNewFolderURL.GetMainURL( INetURLObject::NO_DECODE ), aCmdEnv, comphelper::getProcessComponentContext() );
bRet = aParent.insertNewContent( OUString("application/vnd.sun.staroffice.fsys-folder"), aProps, aValues, aContent );
bRet = aParent.insertNewContent( "application/vnd.sun.staroffice.fsys-folder", aProps, aValues, aContent );
}
catch( const ucb::ContentCreationException& )
{
......@@ -307,7 +307,7 @@ bool CopyFile( const INetURLObject& rSrcURL, const INetURLObject& rDstURL )
{
::ucbhelper::Content aDestPath( rDstURL.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() );
aDestPath.executeCommand( OUString("transfer"),
aDestPath.executeCommand( "transfer",
uno::makeAny( ucb::TransferInfo( sal_False, rSrcURL.GetMainURL( INetURLObject::NO_DECODE ),
rDstURL.GetName(), ucb::NameClash::OVERWRITE ) ) );
bRet = true;
......@@ -334,7 +334,7 @@ bool KillFile( const INetURLObject& rURL )
try
{
::ucbhelper::Content aCnt( rURL.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() );
aCnt.executeCommand( OUString("delete"), uno::makeAny( true ) );
aCnt.executeCommand( "delete", uno::makeAny( true ) );
}
catch( const ucb::ContentCreationException& )
{
......
......@@ -248,10 +248,10 @@ INetURLObject GalleryTheme::ImplCreateUniqueURL( SgaObjKind eObjKind, ConvertDat
sal_Char const* pExt = NULL;
bool bExists;
aDir.Append( OUString("dragdrop") );
aDir.Append( "dragdrop" );
CreateDir( aDir );
aInfoFileURL.Append( OUString("sdddndx1") );
aInfoFileURL.Append( "sdddndx1" );
// read next possible number
if( FileExists( aInfoFileURL ) )
......
......@@ -47,7 +47,7 @@ SvxClipBoardControl::SvxClipBoardControl(
pPopup( 0 ),
bDisabled( false )
{
addStatusListener( OUString( ".uno:ClipboardFormatItems" ));
addStatusListener( ".uno:ClipboardFormatItems");
ToolBox& rBox = GetToolBox();
rBox.SetItemBits( nId, ToolBoxItemBits::DROPDOWN | rBox.GetItemBits( nId ) );
rBox.Invalidate();
......@@ -98,7 +98,7 @@ VclPtr<SfxPopupWindow> SvxClipBoardControl::CreatePopupWindow()
aArgs[0].Name = "SelectedFormat";
aItem.QueryValue( a );
aArgs[0].Value = a;
Dispatch( OUString( ".uno:ClipboardFormatItems" ),
Dispatch( ".uno:ClipboardFormatItems",
aArgs );
}
......
......@@ -154,8 +154,8 @@ void AreaPropertyPanelBase::Initialize()
maGradientRect = maGradientLinear;
maGradientRect.SetGradientStyle(css::awt::GradientStyle_RECT);
mpLbFillType->SetAccessibleName(OUString( "Fill")); //wj acc
mpLbFillAttr->SetAccessibleName(OUString( "Fill")); //wj acc
mpLbFillType->SetAccessibleName("Fill"); //wj acc
mpLbFillAttr->SetAccessibleName("Fill"); //wj acc
mpLbFillType->SetSelectHdl( LINK( this, AreaPropertyPanelBase, SelectFillTypeHdl ) );
......@@ -166,12 +166,12 @@ void AreaPropertyPanelBase::Initialize()
mpLbFillGradTo->SetSelectHdl( aLink );
mpLBTransType->SetSelectHdl(LINK(this, AreaPropertyPanelBase, ChangeTrgrTypeHdl_Impl));
mpLBTransType->SetAccessibleName(OUString( "Transparency")); //wj acc
mpLBTransType->SetAccessibleName("Transparency"); //wj acc
SetTransparency( 50 );
mpMTRTransparent->SetModifyHdl(LINK(this, AreaPropertyPanelBase, ModifyTransparentHdl_Impl));
mpSldTransparent->SetSlideHdl(LINK(this, AreaPropertyPanelBase, ModifyTransSliderHdl));
mpMTRTransparent->SetAccessibleName(OUString( "Transparency")); //wj acc
mpMTRTransparent->SetAccessibleName("Transparency"); //wj acc
const sal_uInt16 nIdGradient = mpBTNGradient->GetItemId(UNO_SIDEBARGRADIENT);
mpBTNGradient->SetItemBits( nIdGradient, mpBTNGradient->GetItemBits( nIdGradient ) | ToolBoxItemBits::DROPDOWNONLY );
......
......@@ -99,18 +99,18 @@ void GraphicPropertyPanel::dispose()
void GraphicPropertyPanel::Initialize()
{
mpMtrBrightness->SetModifyHdl( LINK( this, GraphicPropertyPanel, ModifyBrightnessHdl ) );
mpMtrBrightness->SetAccessibleName(::rtl::OUString( "Brightness"));
mpMtrBrightness->SetAccessibleName("Brightness");
mpMtrContrast->SetModifyHdl( LINK( this, GraphicPropertyPanel, ModifyContrastHdl ) );
mpMtrContrast->SetAccessibleName(::rtl::OUString( "Contrast"));
mpMtrContrast->SetAccessibleName("Contrast");
mpMtrTrans->SetModifyHdl( LINK( this, GraphicPropertyPanel, ModifyTransHdl ) );
mpMtrTrans->SetAccessibleName(::rtl::OUString( "Transparency"));
mpMtrTrans->SetAccessibleName("Transparency");
mpLBColorMode->InsertEntry(SVX_RESSTR(RID_SVXSTR_GRAFMODE_STANDARD));
mpLBColorMode->InsertEntry(SVX_RESSTR(RID_SVXSTR_GRAFMODE_GREYS));
mpLBColorMode->InsertEntry(SVX_RESSTR(RID_SVXSTR_GRAFMODE_MONO));
mpLBColorMode->InsertEntry(SVX_RESSTR(RID_SVXSTR_GRAFMODE_WATERMARK));
mpLBColorMode->SetSelectHdl( LINK( this, GraphicPropertyPanel, ClickColorModeHdl ));
mpLBColorMode->SetAccessibleName(::rtl::OUString( "Color mode"));
mpLBColorMode->SetAccessibleName("Color mode");
mpMtrRed->SetModifyHdl( LINK( this, GraphicPropertyPanel, RedHdl ) );
mpMtrGreen->SetModifyHdl( LINK( this, GraphicPropertyPanel, GreenHdl ) );
......@@ -119,7 +119,7 @@ void GraphicPropertyPanel::Initialize()
mpMtrRed->SetAccessibleName(mpMtrRed->GetQuickHelpText());
mpMtrGreen->SetAccessibleName(mpMtrGreen->GetQuickHelpText());
mpMtrBlue->SetAccessibleName(mpMtrBlue->GetQuickHelpText());
mpMtrGamma->SetAccessibleName(::rtl::OUString( "Gamma value"));
mpMtrGamma->SetAccessibleName("Gamma value");
mpMtrRed->SetAccessibleRelationLabeledBy(mpMtrRed);
mpMtrGreen->SetAccessibleRelationLabeledBy(mpMtrGreen);
......
......@@ -240,7 +240,7 @@ void LinePropertyPanelBase::Initialize()
FillLineStyleList();
SelectLineStyle();
mpLBStyle->SetSelectHdl( LINK( this, LinePropertyPanelBase, ChangeLineStyleHdl ) );
mpLBStyle->SetAccessibleName(OUString( "Style"));
mpLBStyle->SetAccessibleName("Style");
mpLBStyle->AdaptDropDownLineCountToMaximum();
const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
......@@ -254,24 +254,24 @@ void LinePropertyPanelBase::Initialize()
SelectEndStyle(true);
SelectEndStyle(false);
mpLBStart->SetSelectHdl( LINK( this, LinePropertyPanelBase, ChangeStartHdl ) );
mpLBStart->SetAccessibleName(OUString("Beginning Style")); //wj acc
mpLBStart->SetAccessibleName("Beginning Style"); //wj acc
mpLBStart->AdaptDropDownLineCountToMaximum();
mpLBEnd->SetSelectHdl( LINK( this, LinePropertyPanelBase, ChangeEndHdl ) );
mpLBEnd->SetAccessibleName(OUString("Ending Style")); //wj acc
mpLBEnd->SetAccessibleName("Ending Style"); //wj acc
mpLBEnd->AdaptDropDownLineCountToMaximum();
mpMFTransparent->SetModifyHdl(LINK(this, LinePropertyPanelBase, ChangeTransparentHdl));
mpMFTransparent->SetAccessibleName(OUString("Transparency")); //wj acc
mpMFTransparent->SetAccessibleName("Transparency"); //wj acc
mpTBWidth->SetAccessibleRelationLabeledBy(mpFTWidth);
mpMFTransparent->SetAccessibleRelationLabeledBy(mpFTTransparency);
mpLBEnd->SetAccessibleRelationLabeledBy(mpLBEnd);
mpLBEdgeStyle->SetSelectHdl( LINK( this, LinePropertyPanelBase, ChangeEdgeStyleHdl ) );
mpLBEdgeStyle->SetAccessibleName(OUString("Corner Style"));
mpLBEdgeStyle->SetAccessibleName("Corner Style");
mpLBCapStyle->SetSelectHdl( LINK( this, LinePropertyPanelBase, ChangeCapStyleHdl ) );
mpLBCapStyle->SetAccessibleName(OUString("Cap Style"));
mpLBCapStyle->SetAccessibleName("Cap Style");
}
void LinePropertyPanelBase::DataChanged(const DataChangedEvent& /*rEvent*/)
......
......@@ -772,7 +772,7 @@ MixBulletsTypeMgr::MixBulletsTypeMgr()
}
//Initial the first time to store the default value. Then do it again for customized value
Init();
ImplLoad(OUString("standard.sya"));
ImplLoad("standard.sya");
}
class theMixBulletsTypeMgr : public rtl::Static<MixBulletsTypeMgr, theMixBulletsTypeMgr> {};
......@@ -815,7 +815,7 @@ MixBulletsTypeMgr::MixBulletsTypeMgr(const MixBulletsTypeMgr& aTypeMgr):
}
}
}
ImplLoad(OUString("standard.sya"));
ImplLoad("standard.sya");
}
void MixBulletsTypeMgr::Init()
{
......@@ -1126,7 +1126,7 @@ bool MixBulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum,sal_uInt16 nIndex,sal_u
pEntry->sDescription = GetDescription(nIndex,true);
}
}
ImplStore(OUString("standard.sya"));
ImplStore("standard.sya");
return true;
}
......@@ -1262,7 +1262,7 @@ NumberingTypeMgr::NumberingTypeMgr()
pNumberSettingsArr = new NumberSettingsArr_Impl;
//Initial the first time to store the default value. Then do it again for customized value
Init();
ImplLoad(OUString("standard.syb"));
ImplLoad("standard.syb");
}
NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& rTypeMgr)
......@@ -1270,7 +1270,7 @@ NumberingTypeMgr::NumberingTypeMgr(const NumberingTypeMgr& rTypeMgr)
, pNumberSettingsArr (new NumberSettingsArr_Impl)
, pDefaultNumberSettingsArr(NULL)
{
ImplLoad(OUString("standard.syb"));
ImplLoad("standard.syb");
}
NumberingTypeMgr::~NumberingTypeMgr()
......@@ -1395,7 +1395,7 @@ bool NumberingTypeMgr::RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_
} else {
_pSet->sDescription = GetDescription(nIndex,true);
}
ImplStore(OUString("standard.syb"));
ImplStore("standard.syb");
return true;
}
......@@ -1473,7 +1473,7 @@ OutlineTypeMgr::OutlineTypeMgr()
}
//Initial the first time to store the default value. Then do it again for customized value
Init();
ImplLoad(OUString("standard.syc"));
ImplLoad("standard.syc");
}
OutlineTypeMgr::OutlineTypeMgr(const OutlineTypeMgr& aTypeMgr)
......@@ -1486,7 +1486,7 @@ OutlineTypeMgr::OutlineTypeMgr(const OutlineTypeMgr& aTypeMgr)
}
//Initial the first time to store the default value. Then do it again for customized value
Init();
ImplLoad(OUString("standard.syc"));
ImplLoad("standard.syc");
}
class theOutlineTypeMgr : public rtl::Static<OutlineTypeMgr, theOutlineTypeMgr> {};
......@@ -1685,7 +1685,7 @@ bool OutlineTypeMgr::RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uI
} else {
pItemArr->sDescription = GetDescription(nIndex,true);
}
ImplStore(OUString("standard.syc"));
ImplStore("standard.syc");
return true;
}
......
......@@ -165,7 +165,7 @@ void SvxModifyControl::Click()
return;
Sequence<PropertyValue> aArgs;
execute(OUString(".uno:Save"), aArgs);
execute(".uno:Save", aArgs);
}
......
......@@ -182,9 +182,9 @@ SvxPosSizeStatusBarControl::SvxPosSizeStatusBarControl( sal_uInt16 _nSlotId,
pImp->aSizeImage = Image(b);
}
addStatusListener( OUString( STR_POSITION )); // SID_ATTR_POSITION
addStatusListener( OUString( STR_TABLECELL )); // SID_TABLE_CELL
addStatusListener( OUString( STR_FUNC )); // SID_PSZ_FUNCTION
addStatusListener( STR_POSITION); // SID_ATTR_POSITION
addStatusListener( STR_TABLECELL); // SID_TABLE_CELL
addStatusListener( STR_FUNC); // SID_PSZ_FUNCTION
}
......@@ -332,7 +332,7 @@ void SvxPosSizeStatusBarControl::Command( const CommandEvent& rCEvt )
aItem.QueryValue( a );
aArgs[0].Value = a;
execute( OUString( ".uno:StatusBarFunc" ), aArgs );
execute( ".uno:StatusBarFunc", aArgs );
// GetBindings().GetDispatcher()->Execute( SID_PSZ_FUNCTION, SfxCallMode::RECORD, &aItem, 0L );
}
}
......
......@@ -247,25 +247,25 @@ void _SdrItemBrowserControl::ImpCtor()
InsertDataColumn(
ITEMBROWSER_WHICHCOL_ID,
OUString("Which"),
GetTextWidth(OUString(" Which ")) + 2);
"Which",
GetTextWidth(" Which ") + 2);
InsertDataColumn(
ITEMBROWSER_STATECOL_ID,
OUString("State"),
std::max(GetTextWidth(OUString(" State ")) + 2 ,
GetTextWidth(OUString("DontCare")) + 2));
"State",
std::max(GetTextWidth(" State ") + 2 ,
GetTextWidth("DontCare") + 2));
InsertDataColumn(
ITEMBROWSER_TYPECOL_ID ,
OUString("Type"),
GetTextWidth(OUString(" Type_ ")) + 2);
"Type",
GetTextWidth(" Type_ ") + 2);
InsertDataColumn(
ITEMBROWSER_NAMECOL_ID ,
OUString("Name"),
"Name",
150);
InsertDataColumn(
ITEMBROWSER_VALUECOL_ID,
OUString("Value"),
GetTextWidth(OUString("12345678901234567890")));
"Value",
GetTextWidth("12345678901234567890"));
SetDataRowHeight(
GetTextHeight());
......@@ -1046,7 +1046,7 @@ _SdrItemBrowserWindow::_SdrItemBrowserWindow(vcl::Window* pParent, WinBits nBits
aBrowse(VclPtr<_SdrItemBrowserControl>::Create(this))
{
SetOutputSizePixel(aBrowse->GetSizePixel());
SetText(OUString("Joe's ItemBrowser"));
SetText("Joe's ItemBrowser");
aBrowse->Show();
}
......
......@@ -67,14 +67,14 @@ SvxFillToolBoxControl::SvxFillToolBoxControl(
, mnLastPosHatch(0)
, mnLastPosBitmap(0)
{
addStatusListener( OUString( ".uno:FillColor" ));
addStatusListener( OUString( ".uno:FillGradient" ));
addStatusListener( OUString( ".uno:FillHatch" ));
addStatusListener( OUString( ".uno:FillBitmap" ));
addStatusListener( OUString( ".uno:ColorTableState" ));
addStatusListener( OUString( ".uno:GradientListState" ));
addStatusListener( OUString( ".uno:HatchListState" ));
addStatusListener( OUString( ".uno:BitmapListState" ));
addStatusListener( ".uno:FillColor");
addStatusListener( ".uno:FillGradient");
addStatusListener( ".uno:FillHatch");
addStatusListener( ".uno:FillBitmap");
addStatusListener( ".uno:ColorTableState");
addStatusListener( ".uno:GradientListState");
addStatusListener( ".uno:HatchListState");
addStatusListener( ".uno:BitmapListState");
}
SvxFillToolBoxControl::~SvxFillToolBoxControl()
......
......@@ -554,7 +554,7 @@ IMPL_LINK_NOARG_TYPED(FontworkCharacterSpacingWindow, SelectHdl,ToolbarMenu*, vo
aArgs[0].Name = msFontworkCharacterSpacing.copy(5);
aArgs[0].Value <<= (sal_Int32)nCharacterSpacing;
mrController.dispatchCommand( OUString( ".uno:FontworkCharacterSpacingDialog" ), aArgs );
mrController.dispatchCommand( ".uno:FontworkCharacterSpacingDialog", aArgs );
}
else if ( nSelection == 6 ) // KernCharacterPairs
{
......
......@@ -59,7 +59,7 @@ void FormatPaintBrushToolBoxControl::impl_executePaintBrush()
Sequence< PropertyValue > aArgs( 1 );
aArgs[0].Name = "PersistentCopy";
aArgs[0].Value = makeAny( m_bPersistentCopy );
Dispatch( OUString( ".uno:FormatPaintbrush" )
Dispatch( ".uno:FormatPaintbrush"
, aArgs );
}
......
......@@ -108,7 +108,7 @@ ImplGrafMetricField::ImplGrafMetricField( vcl::Window* pParent, const OUString&
maCommand( rCmd ),
mxFrame( rFrame )
{
Size aSize( GetTextWidth( OUString("-100 %") ), GetTextHeight() );
Size aSize( GetTextWidth( "-100 %" ), GetTextHeight() );
aSize.Width() += 20, aSize.Height() += 6;
SetSizePixel( aSize );
......@@ -359,7 +359,7 @@ void ImplGrafModeControl::Select()
SfxToolBoxControl::Dispatch(
Reference< XDispatchProvider >( mxFrame->getController(), UNO_QUERY ),
OUString( ".uno:GrafMode" ),
".uno:GrafMode",
aArgs );
}
}
......
......@@ -122,7 +122,7 @@ void SvxLineBox::Select()
aLineDashItem.QueryValue ( a );
aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( mxFrame->getController(), UNO_QUERY ),
OUString( ".uno:LineDash" ),
".uno:LineDash",
aArgs );
}
}
......@@ -136,7 +136,7 @@ void SvxLineBox::Select()
aLineStyleItem.QueryValue ( a );
aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( mxFrame->getController(), UNO_QUERY ),
OUString( ".uno:XLineStyle" ),
".uno:XLineStyle",
aArgs );
nCurPos = GetSelectEntryPos();
......@@ -253,7 +253,7 @@ SvxMetricField::SvxMetricField(
, ePoolUnit(SFX_MAPUNIT_CM)
, mxFrame(rFrame)
{
Size aSize(GetTextWidth( OUString("99,99mm") ),GetTextHeight());
Size aSize(GetTextWidth( "99,99mm" ),GetTextHeight());
aSize.Width() += 20;
aSize.Height() += 6;
SetSizePixel( aSize );
......@@ -297,7 +297,7 @@ void SvxMetricField::Modify()
aLineWidthItem.QueryValue( a );
aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( mxFrame->getController(), UNO_QUERY ),
OUString( ".uno:LineWidth" ),
".uno:LineWidth",
aArgs );
}
......
......@@ -270,9 +270,9 @@ VclPtr<SfxPopupWindow> SvxUndoRedoControl::CreatePopupWindow()
DBG_ASSERT(( SID_UNDO == GetSlotId() || SID_REDO == GetSlotId() ), "mismatching ids" );
if ( m_aCommandURL == ".uno:Undo" )
updateStatus( OUString( ".uno:GetUndoStrings" ));
updateStatus( ".uno:GetUndoStrings");
else
updateStatus( OUString( ".uno:GetRedoStrings" ));
updateStatus( ".uno:GetRedoStrings");
ToolBox& rBox = GetToolBox();
......
......@@ -58,8 +58,8 @@ SvxLineStyleToolBoxControl::SvxLineStyleToolBoxControl( sal_uInt16 nSlotId,
pDashItem ( NULL ),
bUpdate ( false )
{
addStatusListener( OUString( ".uno:LineDash" ));
addStatusListener( OUString( ".uno:DashListState" ));
addStatusListener( ".uno:LineDash");
addStatusListener( ".uno:DashListState");
}
......@@ -192,7 +192,7 @@ SvxLineWidthToolBoxControl::SvxLineWidthToolBoxControl(
sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx ) :
SfxToolBoxControl( nSlotId, nId, rTbx )
{
addStatusListener( OUString( ".uno:MetricUnit" ));
addStatusListener( ".uno:MetricUnit");
}
......@@ -314,7 +314,7 @@ void SvxLineEndWindow::implInit()
// ValueSet fill with entries of LineEndList
FillValueSet();