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

loplugin:staticcall

Change-Id: If6fca7f7761877b5642eddb800de46efb59aa6dc
üst 6e3d5efd
......@@ -313,7 +313,7 @@ void EditRTFParser::SetAttrInDoc( SvxRTFItemStackType &rSet )
{
sal_uInt32 nHeight = ((SvxFontHeightItem*)pItem)->GetHeight();
long nNewHeight;
nNewHeight = mpEditEngine->GetRefDevice()->LogicToLogic( (long)nHeight, eSrcUnit, eDestUnit );
nNewHeight = OutputDevice::LogicToLogic( (long)nHeight, eSrcUnit, eDestUnit );
SvxFontHeightItem aFntHeightItem( nNewHeight, ((SvxFontHeightItem*)pItem)->GetProp(), aFntHeightIems[i] );
rSet.GetAttrSet().Put( aFntHeightItem );
......
......@@ -650,7 +650,7 @@ namespace editeng
// something went wrong, has already been asserted
return;
if (m_pAntiImpl->IsUseSavedConversionDirectionState())
if (HangulHanjaConversion::IsUseSavedConversionDirectionState())
{
m_ePrimaryConversionDirection = m_pAntiImpl->m_ePrimaryConversionDirectionSave;
m_bTryBothDirections = m_pAntiImpl->m_bTryBothDirectionsSave;
......@@ -670,7 +670,7 @@ namespace editeng
{
//always open dialog if at least having a hangul or hanja text portion
createDialog();
if(m_pAntiImpl->IsUseSavedConversionDirectionState())
if(HangulHanjaConversion::IsUseSavedConversionDirectionState())
ContinueConversion( false );
else
implUpdateData();
......@@ -743,10 +743,10 @@ namespace editeng
{
// check if language needs to be changed
if ( m_pAntiImpl->GetTargetLanguage() == LANGUAGE_CHINESE_TRADITIONAL &&
!m_pAntiImpl->IsTraditional( m_nCurrentPortionLang ))
!HangulHanjaConversion::IsTraditional( m_nCurrentPortionLang ))
nNewUnitLang = LANGUAGE_CHINESE_TRADITIONAL;
else if ( m_pAntiImpl->GetTargetLanguage() == LANGUAGE_CHINESE_SIMPLIFIED &&
!m_pAntiImpl->IsSimplified( m_nCurrentPortionLang ))
!HangulHanjaConversion::IsSimplified( m_nCurrentPortionLang ))
nNewUnitLang = LANGUAGE_CHINESE_SIMPLIFIED;
if (nNewUnitLang != LANGUAGE_NONE)
pNewUnitLang = &nNewUnitLang;
......
......@@ -201,13 +201,13 @@ uno::Any SvxUnoFontDescriptor::getPropertyDefault( SfxItemPool* pPool )
uno::Any aAny;
if(!pPool->IsWhich(EE_CHAR_FONTINFO)||
!pPool->IsWhich(EE_CHAR_FONTHEIGHT)||
!pPool->IsWhich(EE_CHAR_ITALIC)||
!pPool->IsWhich(EE_CHAR_UNDERLINE)||
!pPool->IsWhich(EE_CHAR_WEIGHT)||
!pPool->IsWhich(EE_CHAR_STRIKEOUT)||
!pPool->IsWhich(EE_CHAR_WLM))
if(!SfxItemPool::IsWhich(EE_CHAR_FONTINFO)||
!SfxItemPool::IsWhich(EE_CHAR_FONTHEIGHT)||
!SfxItemPool::IsWhich(EE_CHAR_ITALIC)||
!SfxItemPool::IsWhich(EE_CHAR_UNDERLINE)||
!SfxItemPool::IsWhich(EE_CHAR_WEIGHT)||
!SfxItemPool::IsWhich(EE_CHAR_STRIKEOUT)||
!SfxItemPool::IsWhich(EE_CHAR_WLM))
return aAny;
aSet.Put(pPool->GetDefaultItem(EE_CHAR_FONTINFO));
......
......@@ -212,7 +212,7 @@ uno::Any SvxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry*
if( (pMap->nWID < OWN_ATTR_VALUE_START) && (pMap->nWID > OWN_ATTR_VALUE_END ) )
{
// Get Default from ItemPool
if(mrItemPool.IsWhich(pMap->nWID))
if(SfxItemPool::IsWhich(pMap->nWID))
aSet.Put(mrItemPool.GetDefaultItem(pMap->nWID));
}
......
......@@ -1293,7 +1293,7 @@ uno::Any SAL_CALL SvxUnoTextRangeBase::getPropertyDefault( const OUString& aProp
default:
{
// Get Default from ItemPool
if(pPool->IsWhich(pMap->nWID))
if(SfxItemPool::IsWhich(pMap->nWID))
{
SfxItemSet aSet( *pPool, pMap->nWID, pMap->nWID);
aSet.Put(pPool->GetDefaultItem(pMap->nWID));
......
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