summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 10:11:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 14:38:37 +0200
commitd4d037619638e1915d15dba81c38a1c9b3157972 (patch)
tree93260b9952c2be6dbb56c7c67eccfb4960608627 /svtools
parent807d4382cb021d2ac3ea99d6757a7b368a32941d (diff)
loplugin:unusedmethods
Change-Id: I26a0da1ec9cda9030371977596053a45303756a0 Reviewed-on: https://gerrit.libreoffice.org/55609 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueacc.cxx26
-rw-r--r--svtools/source/control/valueimp.hxx4
-rw-r--r--svtools/source/control/valueset.cxx43
3 files changed, 0 insertions, 73 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index 093fd4d2de92..73826ddfbc96 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -1072,32 +1072,6 @@ SvtValueItemAcc::~SvtValueItemAcc()
{
}
-void SvtValueItemAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue, const uno::Any& rNewValue )
-{
- if( !nEventId )
- return;
-
- ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > > aTmpListeners( mxEventListeners );
- accessibility::AccessibleEventObject aEvtObject;
-
- aEvtObject.EventId = nEventId;
- aEvtObject.Source = static_cast<uno::XWeak*>(this);
- aEvtObject.NewValue = rNewValue;
- aEvtObject.OldValue = rOldValue;
-
- for (auto const& tmpListener : aTmpListeners)
- {
- tmpListener->notifyEvent( aEvtObject );
- }
-}
-
-
-void SvtValueItemAcc::ParentDestroyed()
-{
- const ::osl::MutexGuard aGuard( maMutex );
- mpParent = nullptr;
-}
-
namespace
{
class theSvtValueItemAccUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSvtValueItemAccUnoTunnelId > {};
diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx
index 66c59fa6f24b..cc45bcd27475 100644
--- a/svtools/source/control/valueimp.hxx
+++ b/svtools/source/control/valueimp.hxx
@@ -410,10 +410,6 @@ public:
SvtValueItemAcc(SvtValueSetItem* pParent, bool bIsTransientChildrenDisabled);
virtual ~SvtValueItemAcc() override;
- void ParentDestroyed();
-
- void FireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue );
-
static SvtValueItemAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) throw();
public:
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index a71349721ef7..c51a032e58f1 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -2698,11 +2698,6 @@ tools::Rectangle SvtValueSet::GetItemRect( sal_uInt16 nItemId ) const
return tools::Rectangle();
}
-void SvtValueSet::EnableFullItemMode( bool bFullMode )
-{
- mbFullMode = bFullMode;
-}
-
tools::Rectangle SvtValueSet::ImplGetItemRect( size_t nPos ) const
{
const size_t nVisibleBegin = static_cast<size_t>(mnFirstLine)*mnCols;
@@ -2723,11 +2718,6 @@ tools::Rectangle SvtValueSet::ImplGetItemRect( size_t nPos ) const
return tools::Rectangle( Point(x, y), Size(mnItemWidth, mnItemHeight) );
}
-void SvtValueSet::SetFormat()
-{
- mbFormat = true;
-}
-
void SvtValueSet::ImplDraw(vcl::RenderContext& rRenderContext)
{
if (mbFormat)
@@ -3462,39 +3452,6 @@ void SvtValueSet::ImplDrawItemText(vcl::RenderContext& rRenderContext, const OUS
rRenderContext.DrawText(Point((aWinSize.Width() - nTxtWidth) / 2, nTxtOffset + (NAME_OFFSET / 2)), rText);
}
-bool SvtValueSet::ImplScroll(const Point& rPos)
-{
- if (!mbScroll || !maItemListRect.IsInside(rPos))
- return false;
-
- const long nScrollOffset = (mnItemHeight <= 16) ? SCROLL_OFFSET / 2 : SCROLL_OFFSET;
- bool bScroll = false;
-
- if (rPos.Y() <= maItemListRect.Top() + nScrollOffset)
- {
- if (mnFirstLine > 0)
- {
- --mnFirstLine;
- bScroll = true;
- }
- }
- else if (rPos.Y() >= maItemListRect.Bottom() - nScrollOffset)
- {
- if (mnFirstLine < static_cast<sal_uInt16>(mnLines - mnVisLines))
- {
- ++mnFirstLine;
- bScroll = true;
- }
- }
-
- if (!bScroll)
- return false;
-
- mbFormat = true;
- Invalidate();
- return true;
-}
-
void SvtValueSet::StyleUpdated()
{
mbFormat = true;