summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:52:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:35 +0200
commit887b3a35628b349e7934f2ae7c220a1cc17c3e63 (patch)
tree3fc519fc86fe3a44de3d21233450d54c7e397dea /sw/source/ui
parent6b8440134f4a8fa05450cdd492942e92c1f75803 (diff)
loplugin:staticcall
Change-Id: I26e1e0f66dad5ed4e8351fc7509449b312559166
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/config/optpage.cxx10
-rw-r--r--sw/source/ui/fldui/flddb.cxx6
-rw-r--r--sw/source/ui/fldui/flddok.cxx6
-rw-r--r--sw/source/ui/fldui/fldedt.cxx4
-rw-r--r--sw/source/ui/fldui/fldfunc.cxx6
-rw-r--r--sw/source/ui/fldui/fldref.cxx4
-rw-r--r--sw/source/ui/fldui/fldvar.cxx6
-rw-r--r--sw/source/ui/index/cnttab.cxx2
-rw-r--r--sw/source/ui/misc/insfnote.cxx4
-rw-r--r--sw/source/ui/misc/num.cxx2
-rw-r--r--sw/source/ui/vba/vbarow.cxx2
11 files changed, 26 insertions, 26 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 22b56c43b669..7352a06ea6a7 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -838,15 +838,15 @@ void SwStdFontTabPage::Reset( const SfxItemSet* rSet)
nLabelHeight = pFontConfig->GetFontHeight( FONT_CAPTION , nFontGroup, eLanguage );
nIndexHeight = pFontConfig->GetFontHeight( FONT_INDEX , nFontGroup, eLanguage );
if( nStandardHeight <= 0)
- nStandardHeight = pFontConfig->GetDefaultHeightFor( FONT_STANDARD + nFontGroup * FONT_PER_GROUP, eLanguage);
+ nStandardHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_STANDARD + nFontGroup * FONT_PER_GROUP, eLanguage);
if( nTitleHeight <= 0)
- nTitleHeight = pFontConfig->GetDefaultHeightFor( FONT_OUTLINE + nFontGroup * FONT_PER_GROUP, eLanguage);
+ nTitleHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_OUTLINE + nFontGroup * FONT_PER_GROUP, eLanguage);
if( nListHeight <= 0)
- nListHeight = pFontConfig->GetDefaultHeightFor( FONT_LIST + nFontGroup * FONT_PER_GROUP, eLanguage);
+ nListHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_LIST + nFontGroup * FONT_PER_GROUP, eLanguage);
if( nLabelHeight <= 0)
- nLabelHeight = pFontConfig->GetDefaultHeightFor( FONT_CAPTION + nFontGroup * FONT_PER_GROUP, eLanguage);
+ nLabelHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_CAPTION + nFontGroup * FONT_PER_GROUP, eLanguage);
if( nIndexHeight <= 0)
- nIndexHeight = pFontConfig->GetDefaultHeightFor( FONT_INDEX + nFontGroup * FONT_PER_GROUP, eLanguage);
+ nIndexHeight = SwStdFontConfig::GetDefaultHeightFor( FONT_INDEX + nFontGroup * FONT_PER_GROUP, eLanguage);
pDocOnlyCB->Enable(false);
}
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
index eee381038623..2cbde87a6fc6 100644
--- a/sw/source/ui/fldui/flddb.cxx
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -94,8 +94,8 @@ void SwFldDBPage::Reset(const SfxItemSet*)
for(sal_uInt16 i = rRg.nStart; i < rRg.nEnd; ++i)
{
- const sal_uInt16 nTypeId = GetFldMgr().GetTypeId(i);
- const sal_Int32 nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(i));
+ const sal_uInt16 nTypeId = SwFldMgr::GetTypeId(i);
+ const sal_Int32 nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(i));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
}
}
@@ -103,7 +103,7 @@ void SwFldDBPage::Reset(const SfxItemSet*)
{
const sal_uInt16 nTypeId = GetCurField()->GetTypeId();
const sal_Int32 nPos = m_pTypeLB->InsertEntry(
- GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ SwFldMgr::GetTypeStr(SwFldMgr::GetPos(nTypeId)));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
}
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index abf1b45179c3..d19672b9ef17 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -101,7 +101,7 @@ void SwFldDokPage::Reset(const SfxItemSet* )
// fill Type-Listbox
for(sal_uInt16 i = rRg.nStart; i < rRg.nEnd; ++i)
{
- const sal_uInt16 nTypeId = GetFldMgr().GetTypeId(i);
+ const sal_uInt16 nTypeId = SwFldMgr::GetTypeId(i);
switch (nTypeId)
{
@@ -117,7 +117,7 @@ void SwFldDokPage::Reset(const SfxItemSet* )
break;
default:
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(i));
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(i));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
break;
}
@@ -131,7 +131,7 @@ void SwFldDokPage::Reset(const SfxItemSet* )
nTypeId = TYP_DATEFLD;
if (nTypeId == TYP_FIXTIMEFLD)
nTypeId = TYP_TIMEFLD;
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(SwFldMgr::GetPos(nTypeId)));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
m_pNumFormatLB->SetAutomaticLanguage(pCurField->IsAutomaticLanguage());
SwWrtShell *pSh = GetWrtShell();
diff --git a/sw/source/ui/fldui/fldedt.cxx b/sw/source/ui/fldui/fldedt.cxx
index 794485a51914..4e94a7775b82 100644
--- a/sw/source/ui/fldui/fldedt.cxx
+++ b/sw/source/ui/fldui/fldedt.cxx
@@ -68,7 +68,7 @@ SwFldEditDlg::SwFldEditDlg(SwView& rVw)
if(!pCurFld)
return;
- pSh->SetCareWin(this);
+ SwViewShell::SetCareWin(this);
if ( pSh->CrsrInsideInputFld() )
{
@@ -195,7 +195,7 @@ SfxTabPage* SwFldEditDlg::CreatePage(sal_uInt16 nGroup)
SwFldEditDlg::~SwFldEditDlg()
{
- pSh->SetCareWin(NULL);
+ SwViewShell::SetCareWin(NULL);
pSh->EnterStdMode();
}
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx
index 9b9bb40ce69e..a663eba68771 100644
--- a/sw/source/ui/fldui/fldfunc.cxx
+++ b/sw/source/ui/fldui/fldfunc.cxx
@@ -111,15 +111,15 @@ void SwFldFuncPage::Reset(const SfxItemSet* )
// fill Typ-Listbox
for(sal_uInt16 i = rRg.nStart; i < rRg.nEnd; ++i)
{
- const sal_uInt16 nTypeId = GetFldMgr().GetTypeId(i);
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(i));
+ const sal_uInt16 nTypeId = SwFldMgr::GetTypeId(i);
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(i));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
}
}
else
{
const sal_uInt16 nTypeId = GetCurField()->GetTypeId();
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(SwFldMgr::GetPos(nTypeId)));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
if (nTypeId == TYP_MACROFLD)
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx
index 08b822ff9bf2..031b6308c6e0 100644
--- a/sw/source/ui/fldui/fldref.cxx
+++ b/sw/source/ui/fldui/fldref.cxx
@@ -165,11 +165,11 @@ void SwFldRefPage::Reset(const SfxItemSet* )
for (short i = rRg.nStart; i < rRg.nEnd; ++i)
{
- const sal_uInt16 nTypeId = GetFldMgr().GetTypeId(i);
+ const sal_uInt16 nTypeId = SwFldMgr::GetTypeId(i);
if (!IsFldEdit() || nTypeId != TYP_SETREFFLD)
{
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(i), i - rRg.nStart);
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(i), i - rRg.nStart);
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
}
}
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index a017599c51cd..4e69ec32455c 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -107,8 +107,8 @@ void SwFldVarPage::Reset(const SfxItemSet* )
for (short i = rRg.nStart; i < rRg.nEnd; ++i)
{
- nTypeId = GetFldMgr().GetTypeId(i);
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(i));
+ nTypeId = SwFldMgr::GetTypeId(i);
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(i));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
}
}
@@ -118,7 +118,7 @@ void SwFldVarPage::Reset(const SfxItemSet* )
nTypeId = pCurField->GetTypeId();
if (nTypeId == TYP_SETINPFLD)
nTypeId = TYP_INPUTFLD;
- nPos = m_pTypeLB->InsertEntry(GetFldMgr().GetTypeStr(GetFldMgr().GetPos(nTypeId)));
+ nPos = m_pTypeLB->InsertEntry(SwFldMgr::GetTypeStr(SwFldMgr::GetPos(nTypeId)));
m_pTypeLB->SetEntryData(nPos, reinterpret_cast<void*>(nTypeId));
m_pNumFormatLB->SetAutomaticLanguage(pCurField->IsAutomaticLanguage());
SwWrtShell *pSh = GetWrtShell();
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 79268fdcf006..7f537e01e9b8 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -491,7 +491,7 @@ IMPL_LINK_NOARG( SwMultiTOXTabDialog, ShowPreviewHdl )
if(!pExampleFrame->IsServiceAvailable())
{
- pExampleFrame->CreateErrorMessage(0);
+ SwOneExampleFrame::CreateErrorMessage(0);
}
}
m_pShowExampleCB->Show(pExampleFrame && pExampleFrame->IsServiceAvailable());
diff --git a/sw/source/ui/misc/insfnote.cxx b/sw/source/ui/misc/insfnote.cxx
index 93ac3107d689..c96807725bff 100644
--- a/sw/source/ui/misc/insfnote.cxx
+++ b/sw/source/ui/misc/insfnote.cxx
@@ -191,7 +191,7 @@ SwInsFootNoteDlg::SwInsFootNoteDlg(Window *pParent, SwWrtShell &rShell, bool bEd
m_pPrevBT->SetClickHdl(LINK(this, SwInsFootNoteDlg, NextPrevHdl));
m_pNextBT->SetClickHdl(LINK(this, SwInsFootNoteDlg, NextPrevHdl));
- rSh.SetCareWin(this);
+ SwViewShell::SetCareWin(this);
if (bEdit)
{
@@ -204,7 +204,7 @@ SwInsFootNoteDlg::SwInsFootNoteDlg(Window *pParent, SwWrtShell &rShell, bool bEd
SwInsFootNoteDlg::~SwInsFootNoteDlg()
{
- rSh.SetCareWin(0);
+ SwViewShell::SetCareWin(0);
if (bEdit)
rSh.ResetSelect(0, false);
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
index fc4831177d83..9973c2d5a340 100644
--- a/sw/source/ui/misc/num.cxx
+++ b/sw/source/ui/misc/num.cxx
@@ -364,7 +364,7 @@ void SwNumPositionTabPage::ActivatePage(const SfxItemSet& )
{
const SfxPoolItem* pItem;
sal_uInt16 nTmpNumLvl =
- pOutlineDlg ? pOutlineDlg->GetActNumLevel() : 0;
+ pOutlineDlg ? SwOutlineTabDialog::GetActNumLevel() : 0;
const SfxItemSet* pExampleSet = GetTabDialog()->GetExampleSet();
if(pExampleSet && pExampleSet->GetItemState(FN_PARAM_NUM_PRESET, false, &pItem))
{
diff --git a/sw/source/ui/vba/vbarow.cxx b/sw/source/ui/vba/vbarow.cxx
index 27db78bd8cfd..21537b2820d9 100644
--- a/sw/source/ui/vba/vbarow.cxx
+++ b/sw/source/ui/vba/vbarow.cxx
@@ -87,7 +87,7 @@ void SwVbaRow::SelectRow( const uno::Reference< frame::XModel >& xModel, const u
sal_Int32 nColCount = aTableHelper.getTabColumnsCount( nEndRow );
// FIXME: the column count > 26
//sal_Char cCol = 'A' + nColCount - 1;
- OUString sCol = aTableHelper.getColumnStr( nColCount - 1);
+ OUString sCol = SwVbaTableHelper::getColumnStr( nColCount - 1);
aRangeName.append(':').append( sCol ).append( sal_Int32( nEndRow + 1 ) );
uno::Reference< table::XCellRange > xCellRange( xTextTable, uno::UNO_QUERY_THROW );