loplugin:unusedmethods
Change-Id: Ia216da9bd7764f2d21aaee761a02eafda88d892e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169257 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
parent
e74a5bea04
commit
4aa2cc878d
28 changed files with 0 additions and 215 deletions
|
@ -95,8 +95,6 @@ private:
|
|||
virtual const css::uno::Sequence< css::beans::Property >& getPropertySequence() override;
|
||||
virtual std::vector< std::unique_ptr<WrappedProperty> > createWrappedProperties() override;
|
||||
|
||||
css::uno::Reference< css::beans::XPropertySet > getFirstCharacterPropertySet();
|
||||
|
||||
css::uno::Reference< css::chart2::XTitle > getTitleObject();
|
||||
|
||||
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
|
||||
|
|
|
@ -1270,11 +1270,6 @@ public:
|
|||
|
||||
void setScalingParameters(ScalingParameters const& rScalingParameters);
|
||||
|
||||
void resetScalingParameters()
|
||||
{
|
||||
setScalingParameters(ScalingParameters());
|
||||
}
|
||||
|
||||
ScalingParameters getScalingParameters()
|
||||
{
|
||||
return maScalingParameters;
|
||||
|
|
|
@ -39,9 +39,6 @@ class WakeUpThread final
|
|||
public:
|
||||
WakeUpThread(css::uno::Reference<css::util::XUpdatable> const& updatable);
|
||||
void stop();
|
||||
|
||||
static void joinThread();
|
||||
static void startThread();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -88,13 +88,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
static void startThread()
|
||||
{
|
||||
std::unique_lock g(getMutex());
|
||||
if (!updatables.empty() && !wakeupThread)
|
||||
wakeupThread = new SharedWakeUpThread();
|
||||
}
|
||||
|
||||
void stopWithLock(std::unique_lock<std::mutex>& g)
|
||||
{
|
||||
terminate = true;
|
||||
|
@ -142,12 +135,6 @@ public:
|
|||
if (updatables.empty())
|
||||
disposeThreadWithLock(g);
|
||||
}
|
||||
|
||||
static void joinThread()
|
||||
{
|
||||
std::unique_lock g(getMutex());
|
||||
disposeThreadWithLock(g);
|
||||
}
|
||||
};
|
||||
|
||||
rtl::Reference<SharedWakeUpThread> SharedWakeUpThread::wakeupThread;
|
||||
|
@ -156,8 +143,6 @@ std::vector<css::uno::WeakReference<css::util::XUpdatable>> SharedWakeUpThread::
|
|||
|
||||
namespace framework
|
||||
{
|
||||
/* static */ void WakeUpThread::startThread() { SharedWakeUpThread::startThread(); }
|
||||
|
||||
WakeUpThread::WakeUpThread(css::uno::Reference<css::util::XUpdatable> const& up)
|
||||
: _updatable(up)
|
||||
{
|
||||
|
@ -167,8 +152,6 @@ WakeUpThread::WakeUpThread(css::uno::Reference<css::util::XUpdatable> const& up)
|
|||
|
||||
void WakeUpThread::stop() { SharedWakeUpThread::remove(_updatable); }
|
||||
|
||||
/* static */ void WakeUpThread::joinThread() { SharedWakeUpThread::joinThread(); }
|
||||
|
||||
} // namespace framework
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -276,7 +276,6 @@ public:
|
|||
sal_Int16 GetMinTrailing() const { return nResHyphMinTrailing; }
|
||||
sal_Int16 GetCompoundMinLeading() const { return nResHyphCompoundMinLeading; }
|
||||
sal_Int16 GetMinWordLength() const { return nResHyphMinWordLength; }
|
||||
sal_Int16 GetTextHyphenZone() const { return nResHyphTextHyphenZone; }
|
||||
bool IsNoHyphenateCaps() const { return bResNoHyphenateCaps; }
|
||||
};
|
||||
|
||||
|
|
|
@ -150,7 +150,6 @@ public:
|
|||
const OUString& getTitle() const { return m_Title; }
|
||||
void setTitle(const OUString& i_val) { m_Title = i_val; }
|
||||
sal_Int64 getFileSize() const { return m_nFileSize; }
|
||||
void setFileSize(sal_Int64 i_val) { m_nFileSize = i_val; }
|
||||
|
||||
/// reset user-specific data (author, modified-by, ...)
|
||||
void resetUserData(const OUString & i_rAuthor);
|
||||
|
|
|
@ -19,7 +19,6 @@ public:
|
|||
virtual ~RecordItemWindowBase();
|
||||
|
||||
void set_text(const OUString& rText) { m_xWidget->set_text(rText); }
|
||||
void set_font(const vcl::Font& rFont) { m_xWidget->set_font(rFont); }
|
||||
void set_help_id(const OUString& rHelpId) { m_xWidget->set_help_id(rHelpId); }
|
||||
|
||||
protected:
|
||||
|
|
|
@ -72,7 +72,6 @@ public:
|
|||
SCROW GetMarkEnd( SCROW nRow, bool bUp ) const;
|
||||
|
||||
void Shift( SCROW nStartRow, tools::Long nOffset );
|
||||
void Intersect( const ScMarkArray& rOther );
|
||||
};
|
||||
|
||||
class SC_DLLPUBLIC ScMarkArrayIter // iterate over selected range
|
||||
|
|
|
@ -348,82 +348,6 @@ void ScMarkArray::Shift(SCROW nStartRow, tools::Long nOffset)
|
|||
}
|
||||
}
|
||||
|
||||
void ScMarkArray::Intersect(const ScMarkArray& rOther)
|
||||
{
|
||||
size_t i = 0;
|
||||
size_t j = 0;
|
||||
|
||||
std::vector<ScMarkEntry> aEntryArray;
|
||||
aEntryArray.reserve(std::max(mvData.size(), rOther.mvData.size()));
|
||||
|
||||
while (i < mvData.size() && j < rOther.mvData.size())
|
||||
{
|
||||
const auto& rEntry = mvData[i];
|
||||
const auto& rOtherEntry = rOther.mvData[j];
|
||||
|
||||
if (rEntry.bMarked != rOtherEntry.bMarked)
|
||||
{
|
||||
if (!rOtherEntry.bMarked)
|
||||
{
|
||||
aEntryArray.push_back(rOther.mvData[j++]);
|
||||
while (i < mvData.size() && mvData[i].nRow <= rOtherEntry.nRow)
|
||||
++i;
|
||||
}
|
||||
else // rEntry not marked
|
||||
{
|
||||
aEntryArray.push_back(mvData[i++]);
|
||||
while (j < rOther.mvData.size() && rOther.mvData[j].nRow <= rEntry.nRow)
|
||||
++j;
|
||||
}
|
||||
}
|
||||
else // rEntry.bMarked == rOtherEntry.bMarked
|
||||
{
|
||||
if (rEntry.bMarked) // both marked
|
||||
{
|
||||
if (rEntry.nRow <= rOtherEntry.nRow)
|
||||
{
|
||||
aEntryArray.push_back(mvData[i++]); // upper row
|
||||
if (rEntry.nRow == rOtherEntry.nRow)
|
||||
++j;
|
||||
}
|
||||
else
|
||||
{
|
||||
aEntryArray.push_back(rOther.mvData[j++]); // upper row
|
||||
}
|
||||
}
|
||||
else // both not marked
|
||||
{
|
||||
if (rEntry.nRow <= rOtherEntry.nRow)
|
||||
{
|
||||
aEntryArray.push_back(rOther.mvData[j++]); // lower row
|
||||
while (i < mvData.size() && mvData[i].nRow <= rOtherEntry.nRow)
|
||||
++i;
|
||||
}
|
||||
else
|
||||
{
|
||||
aEntryArray.push_back(mvData[i++]); // lower row
|
||||
while (j < rOther.mvData.size() && rOther.mvData[j].nRow <= rEntry.nRow)
|
||||
++j;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert((i == mvData.size() || j == rOther.mvData.size()) && "Unexpected case.");
|
||||
|
||||
if (i == mvData.size())
|
||||
{
|
||||
aEntryArray.insert(aEntryArray.end(), rOther.mvData.begin() + j, rOther.mvData.end());
|
||||
}
|
||||
else // j == rOther.nCount
|
||||
{
|
||||
aEntryArray.insert(aEntryArray.end(), mvData.begin() + i, mvData.end());
|
||||
}
|
||||
|
||||
mvData = std::move(aEntryArray);
|
||||
}
|
||||
|
||||
|
||||
// -------------- Iterator ----------------------------------------------
|
||||
|
||||
ScMarkArrayIter::ScMarkArrayIter( const ScMarkArray* pNewArray ) :
|
||||
|
|
|
@ -70,11 +70,6 @@ void SdNavigatorFloat::InitTreeLB(const SdDrawDocument* pDoc)
|
|||
m_xNavWin->InitTreeLB(pDoc);
|
||||
}
|
||||
|
||||
void SdNavigatorFloat::FreshTree(const SdDrawDocument* pDoc)
|
||||
{
|
||||
m_xNavWin->FreshTree(pDoc);
|
||||
}
|
||||
|
||||
void SdNavigatorFloat::dispose()
|
||||
{
|
||||
m_xNavWin.reset();
|
||||
|
|
|
@ -92,7 +92,6 @@ public:
|
|||
SdNavigatorFloat(SfxBindings* _pBindings, SfxChildWindow* pMgr,
|
||||
vcl::Window* pParent, SfxChildWinInfo* pInfo);
|
||||
void InitTreeLB(const SdDrawDocument* pDoc);
|
||||
void FreshTree(const SdDrawDocument* pDoc);
|
||||
virtual void Activate() override;
|
||||
virtual void dispose() override;
|
||||
virtual ~SdNavigatorFloat() override;
|
||||
|
|
|
@ -176,11 +176,6 @@ public:
|
|||
|
||||
bool IsEditingActive() const {return m_bEditing;}
|
||||
|
||||
void set_sensitive(bool bSensitive)
|
||||
{
|
||||
m_xTreeView->set_sensitive(bSensitive);
|
||||
}
|
||||
|
||||
void hide()
|
||||
{
|
||||
m_xTreeView->hide();
|
||||
|
|
|
@ -60,8 +60,6 @@ public:
|
|||
/** returns true if this smart tag is currently selected */
|
||||
bool isSelected() const { return mbSelected; }
|
||||
|
||||
::sd::View& getView() const { return mrView; }
|
||||
|
||||
protected:
|
||||
virtual sal_Int32 GetMarkablePointCount() const;
|
||||
virtual sal_Int32 GetMarkedPointCount() const;
|
||||
|
|
|
@ -174,7 +174,6 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr final : public SfxListener
|
|||
|
||||
void Hide( std::u16string_view rAuthor );
|
||||
void Hide();
|
||||
void Show();
|
||||
void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin* topNote);
|
||||
void ShowHideResolvedNotes(bool visible);
|
||||
|
||||
|
|
|
@ -382,12 +382,8 @@ public:
|
|||
m_aCompareConfig.SetModified(); }
|
||||
|
||||
bool IsIgnorePieces() const { return m_aCompareConfig.m_bIgnorePieces; }
|
||||
void SetIgnorePieces( bool b ) { m_aCompareConfig.m_bIgnorePieces = b;
|
||||
m_aCompareConfig.SetModified(); }
|
||||
|
||||
sal_uInt16 GetPieceLen() const { return m_aCompareConfig.m_nPieceLen; }
|
||||
void SetPieceLen( sal_uInt16 nLen ) { m_aCompareConfig.m_nPieceLen = nLen;
|
||||
m_aCompareConfig.SetModified(); }
|
||||
|
||||
bool IsStoreRsid() const
|
||||
{
|
||||
|
|
|
@ -435,11 +435,6 @@ public:
|
|||
m_nLen = nNewLen;
|
||||
}
|
||||
|
||||
void SetLayoutContext(std::optional<SwLinePortionLayoutContext> nNew)
|
||||
{
|
||||
m_nLayoutContext = nNew;
|
||||
}
|
||||
|
||||
void SetWrong(sw::WrongListIterator *const pNew)
|
||||
{
|
||||
m_pWrong = pNew;
|
||||
|
|
|
@ -1080,7 +1080,6 @@ public:
|
|||
~WW8ScannerBase();
|
||||
bool AreThereFootnotes() const { return m_pFootnotePLCF->Count() > 0; };
|
||||
bool AreThereEndnotes() const { return m_pEdnPLCF->Count() > 0; };
|
||||
tools::Long GetEndnoteCount() const { return m_pEdnPLCF->Count(); };
|
||||
|
||||
//If you use WW8Fc2Cp you are almost certainly doing the wrong thing
|
||||
//when it comes to fastsaved files, avoid like the plague. For export
|
||||
|
|
|
@ -100,32 +100,4 @@ SfxEventNamesItem SwMacroAssignDlg::AddEvents( DlgEventType eType )
|
|||
return aItem;
|
||||
}
|
||||
|
||||
void SwMacroAssignDlg::INetFormatDlg(weld::Window* pParent, SwWrtShell& rSh, const SvxMacroItem& rItem,
|
||||
const std::function<void(const SvxMacroItem&)>& onItemSelectedFunc )
|
||||
{
|
||||
SfxItemSetFixed<RES_FRMMACRO, RES_FRMMACRO, SID_EVENTCONFIG, SID_EVENTCONFIG> aSet( rSh.GetAttrPool() );
|
||||
aSet.Put( rItem );
|
||||
aSet.Put( AddEvents( MACASSGN_INETFMT ) );
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
VclPtr<SfxAbstractDialog> pMacroDlg( pFact->CreateEventConfigDialog(pParent, aSet,
|
||||
rSh.GetView().GetViewFrame().GetFrame().GetFrameInterface() ) );
|
||||
if ( !pMacroDlg )
|
||||
return;
|
||||
pMacroDlg->StartExecuteAsync(
|
||||
[pMacroDlg, onItemSelectedFunc] (sal_Int32 nResult)->void
|
||||
{
|
||||
if (nResult == RET_OK)
|
||||
{
|
||||
const SfxItemSet* pOutSet = pMacroDlg->GetOutputItemSet();
|
||||
if( const SvxMacroItem* pItem = pOutSet->GetItemIfSet( RES_FRMMACRO, false ))
|
||||
{
|
||||
onItemSelectedFunc(*pItem);
|
||||
}
|
||||
}
|
||||
pMacroDlg->disposeOnce();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -1814,15 +1814,6 @@ void SwPostItMgr::Hide()
|
|||
}
|
||||
}
|
||||
|
||||
void SwPostItMgr::Show()
|
||||
{
|
||||
for (auto const& postItField : mvPostItFields)
|
||||
{
|
||||
postItField->mbShow = true;
|
||||
}
|
||||
LayoutPostIts();
|
||||
}
|
||||
|
||||
SwAnnotationWin* SwPostItMgr::GetSidebarWin( const SfxBroadcaster* pBroadcaster) const
|
||||
{
|
||||
for (auto const& postItField : mvPostItFields)
|
||||
|
|
|
@ -40,8 +40,6 @@ class SwMacroAssignDlg
|
|||
{
|
||||
public:
|
||||
static SfxEventNamesItem AddEvents(DlgEventType eType);
|
||||
static void INetFormatDlg(weld::Window* pParent, SwWrtShell& rSh, const SvxMacroItem& rItem,
|
||||
const std::function<void(const SvxMacroItem&)>& onItemSelectedFunc);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -239,8 +239,6 @@ typedef bool (SwWrtShell::*FNSimpleMove)();
|
|||
{ SimpleMove( &SwWrtShell::BwdPara_, false/*bSelect*/ ); }
|
||||
void FwdSentence( bool bSelect = false )
|
||||
{ SimpleMove( &SwWrtShell::FwdSentence_, bSelect ); }
|
||||
void EndSentence( bool bSelect = false )
|
||||
{ SimpleMove( &SwWrtShell::EndSentence_, bSelect ); }
|
||||
void BwdSentence( bool bSelect = false )
|
||||
{ SimpleMove( &SwWrtShell::BwdSentence_, bSelect ); }
|
||||
|
||||
|
|
|
@ -410,14 +410,6 @@ uno::Sequence<beans::PropertyValue> DomainMapperTableManager::getCurrentTablePos
|
|||
return uno::Sequence< beans::PropertyValue >();
|
||||
}
|
||||
|
||||
TablePositionHandler* DomainMapperTableManager::getCurrentTableRealPosition()
|
||||
{
|
||||
if ( !m_aTablePositions.empty( ) && m_aTablePositions.back() )
|
||||
return m_aTablePositions.back().get();
|
||||
else
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const TableParagraphVectorPtr & DomainMapperTableManager::getCurrentParagraphs( )
|
||||
{
|
||||
return m_aParagraphsToEndTable.top( );
|
||||
|
|
|
@ -95,7 +95,6 @@ public:
|
|||
/// Turn the attributes collected so far in m_aTableLook into a property and clear the container.
|
||||
void finishTableLook();
|
||||
css::uno::Sequence<css::beans::PropertyValue> getCurrentTablePosition();
|
||||
TablePositionHandler* getCurrentTableRealPosition();
|
||||
|
||||
virtual void cellProps(const TablePropertyMapPtr& pProps) override
|
||||
{
|
||||
|
|
|
@ -364,9 +364,6 @@ public:
|
|||
return m_sPageStyleName;
|
||||
}
|
||||
|
||||
bool getFirstPageHeader() { return m_bFirstPageHeaderLinkToPrevious; }
|
||||
bool getFirstPageFooter() { return m_bFirstPageFooterLinkToPrevious; }
|
||||
|
||||
// @throws css::beans::UnknownPropertyException
|
||||
// @throws css::beans::PropertyVetoException
|
||||
// @throws css::lang::IllegalArgumentException
|
||||
|
@ -391,8 +388,6 @@ public:
|
|||
void SetPageNumber( sal_Int32 nSet ) { m_nPageNumber = nSet; }
|
||||
void SetPageNumberType( sal_Int32 nSet ) { m_nPageNumberType = nSet; }
|
||||
void SetBreakType( sal_Int32 nSet ) { m_nBreakType = nSet; }
|
||||
// GetBreakType returns -1 if the breakType has not yet been identified for the section
|
||||
sal_Int32 GetBreakType() const { return m_nBreakType; }
|
||||
|
||||
void SetLeftMargin( sal_Int32 nSet ) { m_nLeftMargin = nSet; }
|
||||
sal_Int32 GetLeftMargin() const { return m_nLeftMargin; }
|
||||
|
|
|
@ -37,18 +37,6 @@ class TablePositionHandler : public LoggedProperties
|
|||
void lcl_sprm(Sprm& sprm) override;
|
||||
|
||||
public:
|
||||
sal_Int32 getY() const { return m_nY; }
|
||||
sal_Int32 getX() const { return m_nX; }
|
||||
sal_Int32 getLeftFromText() const { return m_nLeftFromText; }
|
||||
sal_Int32 getRightFromText() const { return m_nRightFromText; }
|
||||
sal_Int32 getTopFromText() const { return m_nTopFromText; }
|
||||
sal_Int32 getBottomFromText() const { return m_nBottomFromText; }
|
||||
|
||||
const OUString& getVertAnchor() const { return m_aVertAnchor; }
|
||||
const OUString& getYSpec() const { return m_aYSpec; }
|
||||
const OUString& getHorzAnchor() const { return m_aHorzAnchor; }
|
||||
const OUString& getXSpec() const { return m_aXSpec; }
|
||||
|
||||
void setTableOverlap(Id nTableOverlap) { m_nTableOverlap = nTableOverlap; }
|
||||
|
||||
TablePositionHandler();
|
||||
|
|
|
@ -66,8 +66,6 @@ protected:
|
|||
}
|
||||
}
|
||||
|
||||
bool isRegistered() const { return mbIsRegistered; }
|
||||
|
||||
void changeExisting(sal_Int64 nNewSize)
|
||||
{
|
||||
if (mbIsRegistered)
|
||||
|
|
|
@ -283,14 +283,10 @@ class GtkSalData final : public GenericUnixSalData
|
|||
osl::Condition m_aDispatchCondition;
|
||||
std::exception_ptr m_aException;
|
||||
|
||||
unotools::WeakReference<DocumentFocusListener> m_xDocumentFocusListener;
|
||||
|
||||
public:
|
||||
GtkSalData();
|
||||
virtual ~GtkSalData() override;
|
||||
|
||||
rtl::Reference<DocumentFocusListener> GetDocumentFocusListener();
|
||||
|
||||
void Init();
|
||||
virtual void Dispose() override;
|
||||
|
||||
|
|
|
@ -270,15 +270,4 @@ void DocumentFocusListener::detachRecursive(
|
|||
}
|
||||
}
|
||||
|
||||
rtl::Reference<DocumentFocusListener> GtkSalData::GetDocumentFocusListener()
|
||||
{
|
||||
rtl::Reference<DocumentFocusListener> xDFL = m_xDocumentFocusListener.get();
|
||||
if (!xDFL)
|
||||
{
|
||||
xDFL = new DocumentFocusListener;
|
||||
m_xDocumentFocusListener = xDFL.get();
|
||||
}
|
||||
return xDFL;
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
Loading…
Reference in a new issue