loplugin:reftotemp in cppcanvas..cui
Change-Id: I6c9ded2252462bcdeee6520bb7b7fa1752aa583b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176276 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
parent
39b15dc8f0
commit
3f691b4a16
34 changed files with 154 additions and 154 deletions
|
@ -46,11 +46,11 @@ namespace cppcanvas::internal
|
|||
SAL_INFO( "cppcanvas.emf", "::cppcanvas::internal::CachedPrimitiveBase::render()" );
|
||||
SAL_INFO( "cppcanvas.emf", "::cppcanvas::internal::CachedPrimitiveBase: 0x" << std::hex << this );
|
||||
|
||||
const rendering::ViewState& rViewState( mpCanvas->getViewState() );
|
||||
const rendering::ViewState aViewState( mpCanvas->getViewState() );
|
||||
::basegfx::B2DHomMatrix aTotalTransform;
|
||||
|
||||
::canvas::tools::getViewStateTransform( aTotalTransform,
|
||||
rViewState );
|
||||
aViewState );
|
||||
aTotalTransform *= rTransformation;
|
||||
|
||||
// can we use the cached primitive? For that, it must be
|
||||
|
@ -61,7 +61,7 @@ namespace cppcanvas::internal
|
|||
(!mbOnlyRedrawWithSameTransform ||
|
||||
maLastTransformation == aTotalTransform) )
|
||||
{
|
||||
if( mxCachedPrimitive->redraw( rViewState ) ==
|
||||
if( mxCachedPrimitive->redraw( aViewState ) ==
|
||||
rendering::RepaintResult::REDRAWN )
|
||||
{
|
||||
// cached repaint succeeded, done.
|
||||
|
|
|
@ -1588,13 +1588,13 @@ namespace cppcanvas::internal
|
|||
rVDev.Push();
|
||||
rVDev.SetMapMode( rSubstitute.GetPrefMapMode() );
|
||||
|
||||
const ::Point& rPos( rVDev.LogicToPixel( pAct->GetPoint() ) );
|
||||
const ::Size& rSize( rVDev.LogicToPixel( pAct->GetSize() ) );
|
||||
const ::Point aPos( rVDev.LogicToPixel( pAct->GetPoint() ) );
|
||||
const ::Size aSize( rVDev.LogicToPixel( pAct->GetSize() ) );
|
||||
|
||||
rStates.getState().transform.translate( rPos.X(),
|
||||
rPos.Y() );
|
||||
rStates.getState().transform.scale( static_cast<double>(rSize.Width()) / aMtfSizePix.Width(),
|
||||
static_cast<double>(rSize.Height()) / aMtfSizePix.Height() );
|
||||
rStates.getState().transform.translate( aPos.X(),
|
||||
aPos.Y() );
|
||||
rStates.getState().transform.scale( static_cast<double>(aSize.Width()) / aMtfSizePix.Width(),
|
||||
static_cast<double>(aSize.Height()) / aMtfSizePix.Height() );
|
||||
|
||||
createActions( const_cast<GDIMetaFile&>(pAct->GetSubstitute()),
|
||||
rFactoryParms,
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace cppcanvas::tools
|
|||
::Size getBaselineOffset( const ::cppcanvas::internal::OutDevState& outdevState,
|
||||
const VirtualDevice& rVDev )
|
||||
{
|
||||
const ::FontMetric& aMetric = rVDev.GetFontMetric();
|
||||
const ::FontMetric aMetric = rVDev.GetFontMetric();
|
||||
|
||||
// calc offset for text output, the XCanvas always renders
|
||||
// baseline offset.
|
||||
|
@ -99,12 +99,12 @@ namespace cppcanvas::tools
|
|||
calcLogic2PixelLinearTransform(o_rMatrix, rVDev);
|
||||
|
||||
// translate according to curr map mode/pref map mode offset
|
||||
const ::Point aEmptyPoint;
|
||||
const ::Point& rTranslatedPoint(
|
||||
const ::Point aEmptyPoint;
|
||||
const ::Point aTranslatedPoint(
|
||||
rVDev.LogicToPixel( aEmptyPoint ));
|
||||
|
||||
o_rMatrix.translate(rTranslatedPoint.X(),
|
||||
rTranslatedPoint.Y());
|
||||
o_rMatrix.translate(aTranslatedPoint.X(),
|
||||
aTranslatedPoint.Y());
|
||||
|
||||
return o_rMatrix;
|
||||
}
|
||||
|
|
|
@ -438,17 +438,17 @@ namespace cppcanvas::internal
|
|||
ENSURE_OR_THROW( io_rTextLayout.is(),
|
||||
"createSubsetLayout(): Invalid input layout" );
|
||||
|
||||
const rendering::StringContext& rOrigContext( io_rTextLayout->getText() );
|
||||
const rendering::StringContext aOrigContext( io_rTextLayout->getText() );
|
||||
|
||||
if( rSubset.mnSubsetBegin == 0 &&
|
||||
rSubset.mnSubsetEnd == rOrigContext.Length )
|
||||
rSubset.mnSubsetEnd == aOrigContext.Length )
|
||||
{
|
||||
// full range, no need for subsetting
|
||||
return;
|
||||
}
|
||||
|
||||
uno::Reference< rendering::XTextLayout > xTextLayout(
|
||||
createSubsetLayout( rOrigContext, rSubset, io_rTextLayout ) );
|
||||
createSubsetLayout( aOrigContext, rSubset, io_rTextLayout ) );
|
||||
|
||||
if( xTextLayout.is() )
|
||||
{
|
||||
|
@ -899,27 +899,27 @@ namespace cppcanvas::internal
|
|||
|
||||
bool EffectTextAction::operator()( const rendering::RenderState& rRenderState, const ::Color& rTextFillColor, bool /*bNormalText*/ ) const
|
||||
{
|
||||
const rendering::ViewState& rViewState( mpCanvas->getViewState() );
|
||||
const uno::Reference< rendering::XCanvas >& rCanvas( mpCanvas->getUNOCanvas() );
|
||||
const rendering::ViewState aViewState( mpCanvas->getViewState() );
|
||||
const uno::Reference< rendering::XCanvas > aCanvas( mpCanvas->getUNOCanvas() );
|
||||
|
||||
//rhbz#1589029 non-transparent text fill background support
|
||||
if (rTextFillColor != COL_AUTO)
|
||||
{
|
||||
rendering::RenderState aLocalState( rRenderState );
|
||||
aLocalState.DeviceColor = vcl::unotools::colorToDoubleSequence(
|
||||
rTextFillColor, rCanvas->getDevice()->getDeviceColorSpace());
|
||||
auto xTextBounds = queryTextBounds(rCanvas);
|
||||
rTextFillColor, aCanvas->getDevice()->getDeviceColorSpace());
|
||||
auto xTextBounds = queryTextBounds(aCanvas);
|
||||
// background of text
|
||||
rCanvas->fillPolyPolygon(xTextBounds, rViewState, aLocalState);
|
||||
aCanvas->fillPolyPolygon(xTextBounds, aViewState, aLocalState);
|
||||
}
|
||||
|
||||
// under/over lines
|
||||
rCanvas->fillPolyPolygon( mxTextLines,
|
||||
rViewState,
|
||||
aCanvas->fillPolyPolygon( mxTextLines,
|
||||
aViewState,
|
||||
rRenderState );
|
||||
|
||||
rCanvas->drawText( maStringContext, mxFont,
|
||||
rViewState,
|
||||
aCanvas->drawText( maStringContext, mxFont,
|
||||
aViewState,
|
||||
rRenderState,
|
||||
maTextDirection );
|
||||
|
||||
|
@ -1197,9 +1197,9 @@ namespace cppcanvas::internal
|
|||
|
||||
sal_Int32 TextArrayAction::getActionCount() const
|
||||
{
|
||||
const rendering::StringContext& rOrigContext( mxTextLayout->getText() );
|
||||
const rendering::StringContext aOrigContext( mxTextLayout->getText() );
|
||||
|
||||
return rOrigContext.Length;
|
||||
return aOrigContext.Length;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1367,25 +1367,25 @@ namespace cppcanvas::internal
|
|||
|
||||
bool EffectTextArrayAction::operator()( const rendering::RenderState& rRenderState, const ::Color& rTextFillColor, bool bNormalText) const
|
||||
{
|
||||
const rendering::ViewState& rViewState( mpCanvas->getViewState() );
|
||||
const uno::Reference< rendering::XCanvas >& rCanvas( mpCanvas->getUNOCanvas() );
|
||||
const rendering::ViewState aViewState( mpCanvas->getViewState() );
|
||||
const uno::Reference< rendering::XCanvas > aCanvas( mpCanvas->getUNOCanvas() );
|
||||
|
||||
//rhbz#1589029 non-transparent text fill background support
|
||||
if (rTextFillColor != COL_AUTO)
|
||||
{
|
||||
rendering::RenderState aLocalState(rRenderState);
|
||||
aLocalState.DeviceColor = vcl::unotools::colorToDoubleSequence(
|
||||
rTextFillColor, rCanvas->getDevice()->getDeviceColorSpace());
|
||||
auto xTextBounds = queryTextBounds(rCanvas);
|
||||
rTextFillColor, aCanvas->getDevice()->getDeviceColorSpace());
|
||||
auto xTextBounds = queryTextBounds(aCanvas);
|
||||
// background of text
|
||||
rCanvas->fillPolyPolygon(xTextBounds, rViewState, aLocalState);
|
||||
aCanvas->fillPolyPolygon(xTextBounds, aViewState, aLocalState);
|
||||
}
|
||||
|
||||
// under/over lines
|
||||
maTextLinesHelper.render(rRenderState, bNormalText);
|
||||
|
||||
rCanvas->drawTextLayout( mxTextLayout,
|
||||
rViewState,
|
||||
aCanvas->drawTextLayout( mxTextLayout,
|
||||
aViewState,
|
||||
rRenderState );
|
||||
|
||||
return true;
|
||||
|
@ -1491,7 +1491,7 @@ namespace cppcanvas::internal
|
|||
// ===================================
|
||||
|
||||
uno::Reference< rendering::XCanvas > xCanvas( mpCanvas->getUNOCanvas() );
|
||||
const rendering::ViewState& rViewState( mpCanvas->getViewState() );
|
||||
const rendering::ViewState aViewState( mpCanvas->getViewState() );
|
||||
|
||||
TextLinesHelper aHelper = maTextLinesHelper;
|
||||
aHelper.init(nMaxPos - nMinPos, maTextLineInfo);
|
||||
|
@ -1504,7 +1504,7 @@ namespace cppcanvas::internal
|
|||
EffectTextArrayRenderHelper( xCanvas,
|
||||
xTextLayout,
|
||||
aHelper,
|
||||
rViewState ),
|
||||
aViewState ),
|
||||
aLocalState,
|
||||
xCanvas,
|
||||
maShadowColor,
|
||||
|
@ -1576,9 +1576,9 @@ namespace cppcanvas::internal
|
|||
|
||||
sal_Int32 EffectTextArrayAction::getActionCount() const
|
||||
{
|
||||
const rendering::StringContext& rOrigContext( mxTextLayout->getText() );
|
||||
const rendering::StringContext aOrigContext( mxTextLayout->getText() );
|
||||
|
||||
return rOrigContext.Length;
|
||||
return aOrigContext.Length;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1766,15 +1766,15 @@ namespace cppcanvas::internal
|
|||
|
||||
bool OutlineAction::operator()( const rendering::RenderState& rRenderState, const ::Color& /*rTextFillColor*/, bool /*bNormalText*/ ) const
|
||||
{
|
||||
const rendering::ViewState& rViewState( mpCanvas->getViewState() );
|
||||
const uno::Reference< rendering::XCanvas >& rCanvas( mpCanvas->getUNOCanvas() );
|
||||
const rendering::ViewState aViewState( mpCanvas->getViewState() );
|
||||
const uno::Reference< rendering::XCanvas > xCanvas( mpCanvas->getUNOCanvas() );
|
||||
|
||||
if (mxBackgroundFillPoly.is())
|
||||
{
|
||||
rendering::RenderState aLocalState( rRenderState );
|
||||
aLocalState.DeviceColor = vcl::unotools::colorToDoubleSequence(
|
||||
maBackgroundFillColor, rCanvas->getDevice()->getDeviceColorSpace());
|
||||
rCanvas->fillPolyPolygon(mxBackgroundFillPoly, rViewState, aLocalState);
|
||||
maBackgroundFillColor, xCanvas->getDevice()->getDeviceColorSpace());
|
||||
xCanvas->fillPolyPolygon(mxBackgroundFillPoly, aViewState, aLocalState);
|
||||
}
|
||||
|
||||
rendering::StrokeAttributes aStrokeAttributes;
|
||||
|
@ -1791,23 +1791,23 @@ namespace cppcanvas::internal
|
|||
// TODO(P1): implement caching
|
||||
|
||||
// background of text
|
||||
rCanvas->fillPolyPolygon( mxTextPoly,
|
||||
rViewState,
|
||||
xCanvas->fillPolyPolygon( mxTextPoly,
|
||||
aViewState,
|
||||
aLocalState );
|
||||
|
||||
// border line of text
|
||||
rCanvas->strokePolyPolygon( mxTextPoly,
|
||||
rViewState,
|
||||
xCanvas->strokePolyPolygon( mxTextPoly,
|
||||
aViewState,
|
||||
rRenderState,
|
||||
aStrokeAttributes );
|
||||
|
||||
// underlines/strikethrough - background
|
||||
rCanvas->fillPolyPolygon( mxTextLines,
|
||||
rViewState,
|
||||
xCanvas->fillPolyPolygon( mxTextLines,
|
||||
aViewState,
|
||||
aLocalState );
|
||||
// underlines/strikethrough - border
|
||||
rCanvas->strokePolyPolygon( mxTextLines,
|
||||
rViewState,
|
||||
xCanvas->strokePolyPolygon( mxTextLines,
|
||||
aViewState,
|
||||
rRenderState,
|
||||
aStrokeAttributes );
|
||||
|
||||
|
|
|
@ -84,8 +84,8 @@ void TextLinesHelper::init(double nLineWidth, const tools::TextLineInfo& rLineIn
|
|||
|
||||
void TextLinesHelper::render(const rendering::RenderState& rRenderState, bool bNormalText) const
|
||||
{
|
||||
const rendering::ViewState& rViewState(mpCanvas->getViewState());
|
||||
const uno::Reference<rendering::XCanvas>& xCanvas(mpCanvas->getUNOCanvas());
|
||||
const rendering::ViewState aViewState(mpCanvas->getViewState());
|
||||
const uno::Reference<rendering::XCanvas> xCanvas(mpCanvas->getUNOCanvas());
|
||||
rendering::StrokeAttributes aStrokeAttributes;
|
||||
aStrokeAttributes.JoinType = rendering::PathJoinType::ROUND;
|
||||
|
||||
|
@ -98,10 +98,10 @@ void TextLinesHelper::render(const rendering::RenderState& rRenderState, bool bN
|
|||
if (mbOverlineWaveline)
|
||||
{
|
||||
aStrokeAttributes.StrokeWidth = mbOverlineWavelineBold ? 2.0 : 1.0;
|
||||
xCanvas->strokePolyPolygon(mxOverline, rViewState, aLocalState, aStrokeAttributes);
|
||||
xCanvas->strokePolyPolygon(mxOverline, aViewState, aLocalState, aStrokeAttributes);
|
||||
}
|
||||
else
|
||||
xCanvas->fillPolyPolygon(mxOverline, rViewState, aLocalState);
|
||||
xCanvas->fillPolyPolygon(mxOverline, aViewState, aLocalState);
|
||||
}
|
||||
|
||||
if (mxUnderline.is())
|
||||
|
@ -112,14 +112,14 @@ void TextLinesHelper::render(const rendering::RenderState& rRenderState, bool bN
|
|||
if (mbUnderlineWaveline)
|
||||
{
|
||||
aStrokeAttributes.StrokeWidth = mbUnderlineWavelineBold ? 2.0 : 1.0;
|
||||
xCanvas->strokePolyPolygon(mxUnderline, rViewState, aLocalState, aStrokeAttributes);
|
||||
xCanvas->strokePolyPolygon(mxUnderline, aViewState, aLocalState, aStrokeAttributes);
|
||||
}
|
||||
else
|
||||
xCanvas->fillPolyPolygon(mxUnderline, rViewState, aLocalState);
|
||||
xCanvas->fillPolyPolygon(mxUnderline, aViewState, aLocalState);
|
||||
}
|
||||
|
||||
if (mxStrikeout.is())
|
||||
xCanvas->fillPolyPolygon(mxStrikeout, rViewState, rRenderState);
|
||||
xCanvas->fillPolyPolygon(mxStrikeout, aViewState, rRenderState);
|
||||
}
|
||||
}
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|
||||
|
|
|
@ -72,11 +72,11 @@ static typelib_TypeDescription * createCTD(
|
|||
typelib_typedescription_register( &pBaseType );
|
||||
|
||||
// construct member init array
|
||||
const Sequence<Reference< XTypeDescription > > & rMemberTypes = xType->getMemberTypes();
|
||||
const Sequence< OUString > & rMemberNames = xType->getMemberNames();
|
||||
const Sequence<Reference< XTypeDescription > > aMemberTypes = xType->getMemberTypes();
|
||||
const Sequence< OUString > aMemberNames = xType->getMemberNames();
|
||||
|
||||
sal_Int32 nMembers = rMemberTypes.getLength();
|
||||
OSL_ENSURE( nMembers == rMemberNames.getLength(), "### lens differ!" );
|
||||
sal_Int32 nMembers = aMemberTypes.getLength();
|
||||
OSL_ENSURE( nMembers == aMemberNames.getLength(), "### lens differ!" );
|
||||
|
||||
OUString aTypeName( xType->getName() );
|
||||
|
||||
|
@ -87,14 +87,14 @@ static typelib_TypeDescription * createCTD(
|
|||
for ( nPos = nMembers; nPos--; )
|
||||
{
|
||||
typelib_CompoundMember_Init & rInit = pMemberInits[nPos];
|
||||
rInit.eTypeClass = static_cast<typelib_TypeClass>(rMemberTypes[nPos]->getTypeClass());
|
||||
rInit.eTypeClass = static_cast<typelib_TypeClass>(aMemberTypes[nPos]->getTypeClass());
|
||||
|
||||
OUString aMemberTypeName(rMemberTypes[nPos]->getName());
|
||||
OUString aMemberTypeName(aMemberTypes[nPos]->getName());
|
||||
rInit.pTypeName = aMemberTypeName.pData;
|
||||
rtl_uString_acquire( rInit.pTypeName );
|
||||
|
||||
// string is held by rMemberNames
|
||||
rInit.pMemberName = rMemberNames[nPos].pData;
|
||||
rInit.pMemberName = aMemberNames[nPos].pData;
|
||||
}
|
||||
|
||||
typelib_typedescription_new(
|
||||
|
@ -128,11 +128,11 @@ static typelib_TypeDescription * createCTD(
|
|||
typelib_typedescription_register( &pBaseType );
|
||||
|
||||
// construct member init array
|
||||
const Sequence<Reference< XTypeDescription > > & rMemberTypes = xType->getMemberTypes();
|
||||
const Sequence< OUString > & rMemberNames = xType->getMemberNames();
|
||||
const Sequence<Reference< XTypeDescription > > aMemberTypes = xType->getMemberTypes();
|
||||
const Sequence< OUString > aMemberNames = xType->getMemberNames();
|
||||
|
||||
sal_Int32 nMembers = rMemberTypes.getLength();
|
||||
OSL_ENSURE( nMembers == rMemberNames.getLength(), "### lens differ!" );
|
||||
sal_Int32 nMembers = aMemberTypes.getLength();
|
||||
OSL_ENSURE( nMembers == aMemberNames.getLength(), "### lens differ!" );
|
||||
|
||||
OUString aTypeName( xType->getName() );
|
||||
|
||||
|
@ -157,14 +157,14 @@ static typelib_TypeDescription * createCTD(
|
|||
{
|
||||
typelib_StructMember_Init & rInit = pMemberInits[nPos];
|
||||
rInit.aBase.eTypeClass
|
||||
= static_cast<typelib_TypeClass>(rMemberTypes[nPos]->getTypeClass());
|
||||
= static_cast<typelib_TypeClass>(aMemberTypes[nPos]->getTypeClass());
|
||||
|
||||
OUString aMemberTypeName(rMemberTypes[nPos]->getName());
|
||||
OUString aMemberTypeName(aMemberTypes[nPos]->getName());
|
||||
rInit.aBase.pTypeName = aMemberTypeName.pData;
|
||||
rtl_uString_acquire( rInit.aBase.pTypeName );
|
||||
|
||||
// string is held by rMemberNames
|
||||
rInit.aBase.pMemberName = rMemberNames[nPos].pData;
|
||||
rInit.aBase.pMemberName = aMemberNames[nPos].pData;
|
||||
|
||||
rInit.bParameterizedType = templateMemberTypes.hasElements()
|
||||
&& (templateMemberTypes[nPos]->getTypeClass()
|
||||
|
@ -235,8 +235,8 @@ static typelib_TypeDescription * createCTD(
|
|||
Reference< XTypeDescription > xReturnType( xMethod->getReturnType() );
|
||||
|
||||
// init all params
|
||||
const Sequence<Reference< XMethodParameter > > & rParams = xMethod->getParameters();
|
||||
sal_Int32 nParams = rParams.getLength();
|
||||
const Sequence<Reference< XMethodParameter > > aParams = xMethod->getParameters();
|
||||
sal_Int32 nParams = aParams.getLength();
|
||||
|
||||
typelib_Parameter_Init * pParamInit = static_cast<typelib_Parameter_Init *>(alloca(
|
||||
sizeof(typelib_Parameter_Init) * nParams ));
|
||||
|
@ -244,8 +244,8 @@ static typelib_TypeDescription * createCTD(
|
|||
sal_Int32 nPos;
|
||||
for ( nPos = nParams; nPos--; )
|
||||
{
|
||||
const Reference<XMethodParameter>& xParam = rParams[nPos];
|
||||
const Reference< XTypeDescription > & xType = xParam->getType();
|
||||
const Reference<XMethodParameter>& xParam = aParams[nPos];
|
||||
const Reference< XTypeDescription > xType = xParam->getType();
|
||||
typelib_Parameter_Init & rInit = pParamInit[xParam->getPosition()];
|
||||
|
||||
rInit.eTypeClass = static_cast<typelib_TypeClass>(xType->getTypeClass());
|
||||
|
@ -260,14 +260,14 @@ static typelib_TypeDescription * createCTD(
|
|||
}
|
||||
|
||||
// init all exception strings
|
||||
const Sequence<Reference< XTypeDescription > > & rExceptions = xMethod->getExceptions();
|
||||
sal_Int32 nExceptions = rExceptions.getLength();
|
||||
const Sequence<Reference< XTypeDescription > > aExceptions = xMethod->getExceptions();
|
||||
sal_Int32 nExceptions = aExceptions.getLength();
|
||||
rtl_uString ** ppExceptionNames = static_cast<rtl_uString **>(alloca(
|
||||
sizeof(rtl_uString *) * nExceptions ));
|
||||
|
||||
for ( nPos = nExceptions; nPos--; )
|
||||
{
|
||||
OUString aExceptionTypeName(rExceptions[nPos]->getName());
|
||||
OUString aExceptionTypeName(aExceptions[nPos]->getName());
|
||||
ppExceptionNames[nPos] = aExceptionTypeName.pData;
|
||||
rtl_uString_acquire( ppExceptionNames[nPos] );
|
||||
}
|
||||
|
@ -323,8 +323,8 @@ static typelib_TypeDescription * createCTD(
|
|||
aBaseTypes.get());
|
||||
|
||||
// construct all member refs
|
||||
const Sequence<Reference< XInterfaceMemberTypeDescription > > & rMembers = xType->getMembers();
|
||||
sal_Int32 nMembers = rMembers.getLength();
|
||||
const Sequence<Reference< XInterfaceMemberTypeDescription > > aMembers = xType->getMembers();
|
||||
sal_Int32 nMembers = aMembers.getLength();
|
||||
|
||||
typelib_TypeDescriptionReference ** ppMemberRefs = static_cast<typelib_TypeDescriptionReference **>(alloca(
|
||||
sizeof(typelib_TypeDescriptionReference *) * nMembers ));
|
||||
|
@ -334,11 +334,11 @@ static typelib_TypeDescription * createCTD(
|
|||
sal_Int32 nPos;
|
||||
for ( nPos = nMembers; nPos--; )
|
||||
{
|
||||
OUString aMemberTypeName(rMembers[nPos]->getName());
|
||||
OUString aMemberTypeName(aMembers[nPos]->getName());
|
||||
ppMemberRefs[nPos] = nullptr;
|
||||
typelib_typedescriptionreference_new(
|
||||
ppMemberRefs + nPos,
|
||||
static_cast<typelib_TypeClass>(rMembers[nPos]->getTypeClass()),
|
||||
static_cast<typelib_TypeClass>(aMembers[nPos]->getTypeClass()),
|
||||
aMemberTypeName.pData );
|
||||
}
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ namespace offapp
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ namespace offapp
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ OUString DbRegistrationOptionsPage::GetAllStrings()
|
|||
{
|
||||
OUString sAllStrings;
|
||||
|
||||
if (const auto& pString = m_xBuilder->weld_label(u"label1"_ustr))
|
||||
if (const auto pString = m_xBuilder->weld_label(u"label1"_ustr))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
|
||||
return sAllStrings.replaceAll("_", "");
|
||||
|
|
|
@ -153,7 +153,7 @@ OUString SvxFontSubstTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ OUString SvxFontSubstTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ OUString SvxAccessibilityOptionsTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ OUString SvxAccessibilityOptionsTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ OUString SvxAsianLayoutPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@ OUString SvxAsianLayoutPage::GetAllStrings()
|
|||
|
||||
for (const auto& radio : radioButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_radio_button(radio))
|
||||
if (const auto pString = m_xBuilder->weld_radio_button(radio))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ OUString SvxBasicIDEOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ OUString SvxBasicIDEOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ OUString SvxDefaultColorOptPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ OUString SvxDefaultColorOptPage::GetAllStrings()
|
|||
|
||||
for (const auto& btn : buttons)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_button(btn))
|
||||
if (const auto pString = m_xBuilder->weld_button(btn))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -744,7 +744,7 @@ ColorConfigCtrl_Impl::ColorConfigCtrl_Impl(weld::Window* pTopLevel, weld::Builde
|
|||
|
||||
Link<weld::Toggleable&,void> aCheckLink = LINK(this, ColorConfigCtrl_Impl, ClickHdl);
|
||||
Link<ColorListBox&,void> aColorLink = LINK(this, ColorConfigCtrl_Impl, ColorHdl);
|
||||
Link<weld::Widget&,void> const& aGetFocusLink = LINK(this, ColorConfigCtrl_Impl, ControlFocusHdl);
|
||||
Link<weld::Widget&,void> const aGetFocusLink = LINK(this, ColorConfigCtrl_Impl, ControlFocusHdl);
|
||||
m_xScrollWindow->SetLinks(aCheckLink, aColorLink, aGetFocusLink, *m_xVScroll);
|
||||
}
|
||||
|
||||
|
@ -887,7 +887,7 @@ OUString SvxColorOptionsTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ OUString SvxCTLOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ OUString SvxCTLOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ OUString SvxCTLOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& radio : radioButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_radio_button(radio))
|
||||
if (const auto pString = m_xBuilder->weld_radio_button(radio))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -50,11 +50,11 @@ OUString OptDeeplTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
if (const auto& pString = m_xBuilder->weld_link_button(u"privacy"_ustr))
|
||||
if (const auto pString = m_xBuilder->weld_link_button(u"privacy"_ustr))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
|
||||
return sAllStrings.replaceAll("_", "");
|
||||
|
|
|
@ -674,7 +674,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, weld::Entry&, rEdt, void)
|
|||
OUString rEntry = rEdt.get_text();
|
||||
|
||||
sal_Int32 nWordLen = rEntry.getLength();
|
||||
const OUString& rRepString = fixSpace(m_xReplaceED->get_text());
|
||||
const OUString aRepString = fixSpace(m_xReplaceED->get_text());
|
||||
|
||||
bool bEnableNewReplace = false;
|
||||
bool bEnableDelete = false;
|
||||
|
@ -696,7 +696,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, weld::Entry&, rEdt, void)
|
|||
eCmpRes = cmpDicEntry_Impl( rEntry, aTestStr );
|
||||
if(CDE_DIFFERENT != eCmpRes)
|
||||
{
|
||||
if(!rRepString.isEmpty())
|
||||
if(!aRepString.isEmpty())
|
||||
bFirstSelect = true;
|
||||
bDoNothing=true;
|
||||
m_pWordsLB->set_cursor(i);
|
||||
|
|
|
@ -90,7 +90,7 @@ OUString OfaMSFilterTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ OUString OfaMSFilterTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -216,7 +216,7 @@ OUString OfaMSFilterTabPage2::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -224,7 +224,7 @@ OUString OfaMSFilterTabPage2::GetAllStrings()
|
|||
|
||||
for (const auto& radio : radioButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_radio_button(radio))
|
||||
if (const auto pString = m_xBuilder->weld_radio_button(radio))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ OUString OfaMiscTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -239,11 +239,11 @@ OUString OfaMiscTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
if (const auto& pString = m_xBuilder->weld_button(u"assocfiles"_ustr))
|
||||
if (const auto pString = m_xBuilder->weld_button(u"assocfiles"_ustr))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
|
||||
return sAllStrings.replaceAll("_", "");
|
||||
|
@ -768,7 +768,7 @@ OUString OfaViewTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -777,7 +777,7 @@ OUString OfaViewTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -1014,7 +1014,7 @@ void OfaViewTabPage::Reset( const SfxItemSet* )
|
|||
nStyleLB_InitialSelection = 0;
|
||||
}
|
||||
else {
|
||||
const OUString& selected = SvtMiscOptions::GetIconTheme();
|
||||
const OUString selected = SvtMiscOptions::GetIconTheme();
|
||||
const vcl::IconThemeInfo& selectedInfo =
|
||||
vcl::IconThemeInfo::FindIconThemeById(mInstalledIconThemes, selected);
|
||||
nStyleLB_InitialSelection = m_xIconStyleLB->find_text(selectedInfo.GetDisplayName());
|
||||
|
@ -1374,7 +1374,7 @@ OUString OfaLanguagesTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -1383,7 +1383,7 @@ OUString OfaLanguagesTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -418,7 +418,7 @@ OUString SvxGeneralTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -60,10 +60,10 @@ OfaHtmlTabPage::OfaHtmlTabPage(weld::Container* pPage, weld::DialogController* p
|
|||
sal_Int32 nPos;
|
||||
if ((nPos = aText.indexOf( aPlaceholder)) != -1)
|
||||
{
|
||||
const OUString& rStr = SvtLanguageTable::GetLanguageString( LANGUAGE_ENGLISH_US);
|
||||
if (!rStr.isEmpty())
|
||||
const OUString aStr = SvtLanguageTable::GetLanguageString( LANGUAGE_ENGLISH_US);
|
||||
if (!aStr.isEmpty())
|
||||
{
|
||||
aText = aText.replaceAt( nPos, aPlaceholder.getLength(), rStr);
|
||||
aText = aText.replaceAt( nPos, aPlaceholder.getLength(), aStr);
|
||||
m_xNumbersEnglishUSCB->set_label( aText);
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ OUString OfaHtmlTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ OUString OfaHtmlTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -316,7 +316,7 @@ OUString SvxProxyTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -843,7 +843,7 @@ OUString SvxSecurityTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -851,7 +851,7 @@ OUString SvxSecurityTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -861,7 +861,7 @@ OUString SvxSecurityTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& btn : buttons)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_button(btn))
|
||||
if (const auto pString = m_xBuilder->weld_button(btn))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -950,7 +950,7 @@ OUString SvxEMailTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -480,7 +480,7 @@ OUString SvxJavaOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -488,7 +488,7 @@ OUString SvxJavaOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -496,7 +496,7 @@ OUString SvxJavaOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& btn : buttons)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_button(btn))
|
||||
if (const auto pString = m_xBuilder->weld_button(btn))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ OUString SvxJSearchOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -232,7 +232,7 @@ OUString SvxJSearchOptionsPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ OUString OptLanguageToolTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -129,11 +129,11 @@ OUString OptLanguageToolTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
if (const auto& pString = m_xBuilder->weld_link_button(u"policy"_ustr))
|
||||
if (const auto pString = m_xBuilder->weld_link_button(u"policy"_ustr))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
|
||||
return sAllStrings.replaceAll("_", "");
|
||||
|
|
|
@ -893,7 +893,7 @@ OUString SvxLinguTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ OUString SvxOpenCLTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@ std::unique_ptr<SfxTabPage> SvxPathTabPage::Create( weld::Container* pPage, weld
|
|||
OUString SvxPathTabPage::GetAllStrings()
|
||||
{
|
||||
OUString sAllStrings;
|
||||
if (const auto& pString = m_xBuilder->weld_label(u"label1"_ustr))
|
||||
if (const auto pString = m_xBuilder->weld_label(u"label1"_ustr))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
return sAllStrings.replaceAll("_", "");
|
||||
}
|
||||
|
|
|
@ -228,7 +228,7 @@ OUString SvxSaveTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -239,7 +239,7 @@ OUString SvxSaveTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ OUString SvxOnlineUpdateTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& label : labels)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_label(label))
|
||||
if (const auto pString = m_xBuilder->weld_label(label))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ OUString SvxOnlineUpdateTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& check : checkButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_check_button(check))
|
||||
if (const auto pString = m_xBuilder->weld_check_button(check))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,7 @@ OUString SvxOnlineUpdateTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& radio : radioButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_radio_button(radio))
|
||||
if (const auto pString = m_xBuilder->weld_radio_button(radio))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
|
@ -66,11 +66,11 @@ OUString SvxPersonalizationTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& radio : radioButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_radio_button(radio))
|
||||
if (const auto pString = m_xBuilder->weld_radio_button(radio))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
if (const auto& pString = m_xBuilder->weld_label(u"personas_label"_ustr))
|
||||
if (const auto pString = m_xBuilder->weld_label(u"personas_label"_ustr))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
|
||||
return sAllStrings.replaceAll("_", "");
|
||||
|
|
|
@ -1180,8 +1180,8 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, weld::Entry&, rEdt, void)
|
|||
}
|
||||
}
|
||||
|
||||
const OUString& rShortTxt = m_xShortED->get_text();
|
||||
bool bEnableNew = !rShortTxt.isEmpty() &&
|
||||
const OUString aShortTxt = m_xShortED->get_text();
|
||||
bool bEnableNew = !aShortTxt.isEmpty() &&
|
||||
( !rRepString.isEmpty() ||
|
||||
( bHasSelectionText && bSWriter )) &&
|
||||
( !bFirstSelIterSet || rRepString !=
|
||||
|
@ -1190,7 +1190,7 @@ IMPL_LINK(OfaAutocorrReplacePage, ModifyHdl, weld::Entry&, rEdt, void)
|
|||
{
|
||||
for (auto const& elem : aFormatText)
|
||||
{
|
||||
if(elem == rShortTxt)
|
||||
if(elem == aShortTxt)
|
||||
{
|
||||
bEnableNew = false;
|
||||
break;
|
||||
|
@ -1529,7 +1529,7 @@ IMPL_LINK(OfaAutocorrExceptPage, SelectHdl, weld::TreeView&, rBox, void)
|
|||
|
||||
IMPL_LINK(OfaAutocorrExceptPage, ModifyHdl, weld::Entry&, rEdt, void)
|
||||
{
|
||||
const OUString& sEntry = rEdt.get_text();
|
||||
const OUString sEntry = rEdt.get_text();
|
||||
bool bEntryLen = !sEntry.isEmpty();
|
||||
if (&rEdt == m_xAbbrevED.get())
|
||||
{
|
||||
|
|
|
@ -867,13 +867,13 @@ bool SvxCharNamePage::FillItemSet_Impl( SfxItemSet& rSet, LanguageGroup eLangGrp
|
|||
const SfxItemSet* pExampleSet = GetDialogExampleSet();
|
||||
|
||||
bool bChanged = true;
|
||||
const OUString& rFontName = pNameBox->get_active_text();
|
||||
const OUString aFontName = pNameBox->get_active_text();
|
||||
const FontList* pFontList = GetFontList();
|
||||
OUString aStyleBoxText = pStyleBox->get_active_text();
|
||||
int nEntryPos = pStyleBox->find_text(aStyleBoxText);
|
||||
if (nEntryPos >= m_pImpl->m_nExtraEntryPos)
|
||||
aStyleBoxText.clear();
|
||||
FontMetric aInfo( pFontList->Get( rFontName, aStyleBoxText ) );
|
||||
FontMetric aInfo( pFontList->Get( aFontName, aStyleBoxText ) );
|
||||
SvxFontItem aFontItem( aInfo.GetFamilyType(), aInfo.GetFamilyName(), aInfo.GetStyleName(),
|
||||
aInfo.GetPitch(), aInfo.GetCharSet(), nWhich );
|
||||
pOld = GetOldItem( rSet, nSlot );
|
||||
|
@ -894,7 +894,7 @@ bool SvxCharNamePage::FillItemSet_Impl( SfxItemSet& rSet, LanguageGroup eLangGrp
|
|||
static_cast<const SvxFontItem*>(pItem)->GetFamilyName() != aFontItem.GetFamilyName() )
|
||||
bChanged = true;
|
||||
|
||||
if ( bChanged && !rFontName.isEmpty() )
|
||||
if ( bChanged && !aFontName.isEmpty() )
|
||||
{
|
||||
rSet.Put( aFontItem );
|
||||
bModified = true;
|
||||
|
|
|
@ -286,7 +286,7 @@ OUString SvxAreaTabPage::GetAllStrings()
|
|||
|
||||
for (const auto& toggle : toggleButton)
|
||||
{
|
||||
if (const auto& pString = m_xBuilder->weld_toggle_button(toggle))
|
||||
if (const auto pString = m_xBuilder->weld_toggle_button(toggle))
|
||||
sAllStrings += pString->get_label() + " ";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue