diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-20 14:07:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-21 07:24:54 +0100 |
commit | eacc089ce8d352b6ed7ffa616d14557331ee4272 (patch) | |
tree | fa589439113e52207a9b6c5b6fc35e59e4dea03c /sw | |
parent | 3d9f9e7d16aae89ff9956bff54326a56d40b7866 (diff) |
loplugin:unusedmethods
Change-Id: I63f03bd1a0510bf411341e1a04a40eb7fce2d57e
Reviewed-on: https://gerrit.libreoffice.org/65495
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 17 | ||||
-rw-r--r-- | sw/source/uibase/inc/swuicnttab.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/uitool.hxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/utlui/uitool.cxx | 39 |
4 files changed, 0 insertions, 59 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index dc0f262836d4..100c11add88c 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2582,23 +2582,6 @@ void SwTOXEntryTabPage::SetWrtShell(SwWrtShell& rSh) RES_POOLCHR_IDX_MAIN_ENTRY, OUString())); } -OUString SwTOXEntryTabPage::GetLevelHelp(sal_uInt16 nLevel) const -{ - OUString sRet; - SwMultiTOXTabDialog* pTOXDlg = static_cast<SwMultiTOXTabDialog*>(GetTabDialog()); - const CurTOXType aCurType = pTOXDlg->GetCurrentTOXType(); - if( TOX_INDEX == aCurType.eType ) - SwStyleNameMapper::FillUIName( static_cast< sal_uInt16 >(1 == nLevel ? RES_POOLCOLL_TOX_IDXBREAK - : RES_POOLCOLL_TOX_IDX1 + nLevel-2), sRet ); - - else if( TOX_AUTHORITIES == aCurType.eType ) - { - //wildcard -> show entry text - sRet = "*"; - } - return sRet; -} - static const char* STR_TOKEN_ARY[] = { STR_TOKEN_ENTRY_NO, diff --git a/sw/source/uibase/inc/swuicnttab.hxx b/sw/source/uibase/inc/swuicnttab.hxx index 9042bf59aee6..ecbf95132305 100644 --- a/sw/source/uibase/inc/swuicnttab.hxx +++ b/sw/source/uibase/inc/swuicnttab.hxx @@ -416,8 +416,6 @@ public: const SfxItemSet* rAttrSet); void SetWrtShell(SwWrtShell& rSh); - OUString GetLevelHelp(sal_uInt16 nLevel) const; - void PreTokenButtonRemoved(const SwFormToken& rToken); void SetFocus2theAllBtn(); virtual bool EventNotify( NotifyEvent& rNEvt ) override; diff --git a/sw/source/uibase/inc/uitool.hxx b/sw/source/uibase/inc/uitool.hxx index 68def8b554bc..62fcb17514c9 100644 --- a/sw/source/uibase/inc/uitool.hxx +++ b/sw/source/uibase/inc/uitool.hxx @@ -86,7 +86,6 @@ SW_DLLPUBLIC bool HasCharUnit( bool bWeb ); void SetApplyCharUnit(bool bApplyChar, bool bWeb); // fill ListBox with all char style templates, except the standard ones -SW_DLLPUBLIC void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted = false, bool bWithDefault = false); SW_DLLPUBLIC void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted = false, bool bWithDefault = false); //inserts a string sorted into a ListBox, diff --git a/sw/source/uibase/utlui/uitool.cxx b/sw/source/uibase/utlui/uitool.cxx index c3d2c69780f7..c08f3e3a3c2d 100644 --- a/sw/source/uibase/utlui/uitool.cxx +++ b/sw/source/uibase/utlui/uitool.cxx @@ -687,45 +687,6 @@ void InsertStringSorted(const OUString& rId, const OUString& rEntry, weld::Combo rToFill.insert(nOffset, rEntry, &rId, nullptr, nullptr); } -void FillCharStyleListBox(ListBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault) -{ - const sal_Int32 nOffset = rToFill.GetEntryCount() > 0 ? 1 : 0; - SfxStyleSheetBasePool* pPool = pDocSh->GetStyleSheetPool(); - pPool->SetSearchMask(SfxStyleFamily::Char); - SwDoc* pDoc = pDocSh->GetDoc(); - const SfxStyleSheetBase* pBase = pPool->First(); - OUString sStandard; - SwStyleNameMapper::FillUIName( RES_POOLCOLL_STANDARD, sStandard ); - while(pBase) - { - if(bWithDefault || pBase->GetName() != sStandard) - { - const sal_Int32 nPos = bSorted - ? InsertStringSorted(pBase->GetName(), rToFill, nOffset ) - : rToFill.InsertEntry(pBase->GetName()); - sal_IntPtr nPoolId = SwStyleNameMapper::GetPoolIdFromUIName( pBase->GetName(), SwGetPoolIdFromName::ChrFmt ); - rToFill.SetEntryData( nPos, reinterpret_cast<void*>(nPoolId)); - } - pBase = pPool->Next(); - } - // non-pool styles - const SwCharFormats* pFormats = pDoc->GetCharFormats(); - for(size_t i = 0; i < pFormats->size(); ++i) - { - const SwCharFormat* pFormat = (*pFormats)[i]; - if(pFormat->IsDefault()) - continue; - const OUString& rName = pFormat->GetName(); - if(rToFill.GetEntryPos(rName) == LISTBOX_ENTRY_NOTFOUND) - { - const sal_Int32 nPos = bSorted - ? InsertStringSorted(rName, rToFill, nOffset ) - : rToFill.InsertEntry(rName); - rToFill.SetEntryData( nPos, reinterpret_cast<void*>(USHRT_MAX)); - } - } -}; - void FillCharStyleListBox(weld::ComboBox& rToFill, SwDocShell* pDocSh, bool bSorted, bool bWithDefault) { const int nOffset = rToFill.get_count() > 0 ? 1 : 0; |