summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-02 08:37:23 +0200
committerNoel Grandin <noel@peralex.com>2015-10-06 10:17:02 +0200
commit7e776c0027c19f1bb8e64dd68d3fd9ded0b5d896 (patch)
tree62bae1461c0388af6f7a8bebbf134e9a86c92153 /svtools
parentd7f2db4b9ce445afdcabf370497bc66db76efbbc (diff)
loplugin:unusedmethods
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/accessibilityoptions.cxx54
-rw-r--r--svtools/source/config/htmlcfg.cxx12
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx50
-rw-r--r--svtools/source/graphic/grfmgr.cxx9
4 files changed, 0 insertions, 125 deletions
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx
index c083ffce71a0..cc7e1e456937 100644
--- a/svtools/source/config/accessibilityoptions.cxx
+++ b/svtools/source/config/accessibilityoptions.cxx
@@ -89,11 +89,9 @@ public:
void SetAutoDetectSystemHC(bool bSet);
void SetIsForPagePreviews(bool bSet);
- void SetIsHelpTipsDisappear(bool bSet);
void SetIsAllowAnimatedGraphics(bool bSet);
void SetIsAllowAnimatedText(bool bSet);
void SetIsAutomaticFontColor(bool bSet);
- void SetHelpTipSeconds(sal_Int16 nSet);
void SetSelectionInReadonly(bool bSet);
};
@@ -391,26 +389,6 @@ void SvtAccessibilityOptions_Impl::SetIsForPagePreviews(bool bSet)
}
}
-void SvtAccessibilityOptions_Impl::SetIsHelpTipsDisappear(bool bSet)
-{
- css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
-
- try
- {
- if(xNode.is() && xNode->getPropertyValue(s_sIsHelpTipsDisappear)!=bSet)
- {
- xNode->setPropertyValue(s_sIsHelpTipsDisappear, css::uno::makeAny(bSet));
- ::comphelper::ConfigurationHelper::flush(m_xCfg);
-
- bIsModified = true;
- }
- }
- catch(const css::uno::Exception& ex)
- {
- SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
- }
-}
-
void SvtAccessibilityOptions_Impl::SetIsAllowAnimatedGraphics(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
@@ -471,26 +449,6 @@ void SvtAccessibilityOptions_Impl::SetIsAutomaticFontColor(bool bSet)
}
}
-void SvtAccessibilityOptions_Impl::SetHelpTipSeconds(sal_Int16 nSet)
-{
- css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
-
- try
- {
- if(xNode.is() && xNode->getPropertyValue(s_sHelpTipSeconds)!=nSet)
- {
- xNode->setPropertyValue(s_sHelpTipSeconds, css::uno::makeAny(nSet));
- ::comphelper::ConfigurationHelper::flush(m_xCfg);
-
- bIsModified = true;
- }
- }
- catch(const css::uno::Exception& ex)
- {
- SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
- }
-}
-
void SvtAccessibilityOptions_Impl::SetSelectionInReadonly(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
@@ -629,10 +587,6 @@ bool SvtAccessibilityOptions::GetIsAutomaticFontColor() const
{
return sm_pSingleImplConfig->GetIsAutomaticFontColor();
}
-sal_Int16 SvtAccessibilityOptions::GetHelpTipSeconds() const
-{
- return sm_pSingleImplConfig->GetHelpTipSeconds();
-}
bool SvtAccessibilityOptions::IsSelectionInReadonly() const
{
return sm_pSingleImplConfig->IsSelectionInReadonly();
@@ -647,10 +601,6 @@ void SvtAccessibilityOptions::SetIsForPagePreviews(bool bSet)
{
sm_pSingleImplConfig->SetIsForPagePreviews(bSet);
}
-void SvtAccessibilityOptions::SetIsHelpTipsDisappear(bool bSet)
-{
- sm_pSingleImplConfig->SetIsHelpTipsDisappear(bSet);
-}
void SvtAccessibilityOptions::SetIsAllowAnimatedGraphics(bool bSet)
{
sm_pSingleImplConfig->SetIsAllowAnimatedGraphics(bSet);
@@ -663,10 +613,6 @@ void SvtAccessibilityOptions::SetIsAutomaticFontColor(bool bSet)
{
sm_pSingleImplConfig->SetIsAutomaticFontColor(bSet);
}
-void SvtAccessibilityOptions::SetHelpTipSeconds(sal_Int16 nSet)
-{
- sm_pSingleImplConfig->SetHelpTipSeconds(nSet);
-}
void SvtAccessibilityOptions::SetSelectionInReadonly(bool bSet)
{
sm_pSingleImplConfig->SetSelectionInReadonly(bSet);
diff --git a/svtools/source/config/htmlcfg.cxx b/svtools/source/config/htmlcfg.cxx
index 073ac0ebf488..84c6cb8beed4 100644
--- a/svtools/source/config/htmlcfg.cxx
+++ b/svtools/source/config/htmlcfg.cxx
@@ -296,18 +296,6 @@ sal_uInt16 SvxHtmlOptions::GetExportMode() const
-void SvxHtmlOptions::SetExportMode(sal_uInt16 nSet)
-{
- if(nSet <= HTML_CFG_MAX )
- {
- pImp->nExportMode = nSet;
- SetModified();
- }
-}
-
-
-
-
bool SvxHtmlOptions::IsStarBasic() const
{
return 0 != (pImp->nFlags & HTMLCFG_STAR_BASIC) ;
diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx
index 1b1ecc80ebce..d1ee4cd3a092 100644
--- a/svtools/source/config/optionsdrawinglayer.cxx
+++ b/svtools/source/config/optionsdrawinglayer.cxx
@@ -217,9 +217,6 @@ public:
sal_uInt16 GetTransparentSelectionPercent() const { return m_nTransparentSelectionPercent;}
sal_uInt16 GetSelectionMaximumLuminancePercent() const { return m_nSelectionMaximumLuminancePercent;}
- void SetTransparentSelection( bool bState );
- void SetTransparentSelectionPercent( sal_uInt16 nPercent );
-
// private methods
private:
@@ -757,29 +754,6 @@ void SvtOptionsDrawinglayer_Impl::SetAntiAliasing( bool bState )
}
}
-// #i97672# selection settings
-
-void SvtOptionsDrawinglayer_Impl::SetTransparentSelection( bool bState )
-{
- if(m_bTransparentSelection != bState)
- {
- m_bTransparentSelection = bState;
- SetModified();
- }
-}
-
-void SvtOptionsDrawinglayer_Impl::SetTransparentSelectionPercent( sal_uInt16 nPercent )
-{
- if(m_nTransparentSelectionPercent != nPercent)
- {
- m_nTransparentSelectionPercent = nPercent;
- SetModified();
- }
-}
-
-
-
-
// private method
Sequence< OUString > SvtOptionsDrawinglayer_Impl::impl_GetPropertyNames()
@@ -1058,12 +1032,6 @@ bool SvtOptionsDrawinglayer::IsTransparentSelection() const
return m_pDataContainer->IsTransparentSelection();
}
-void SvtOptionsDrawinglayer::SetTransparentSelection( bool bState )
-{
- MutexGuard aGuard( GetOwnStaticMutex() );
- m_pDataContainer->SetTransparentSelection( bState );
-}
-
sal_uInt16 SvtOptionsDrawinglayer::GetTransparentSelectionPercent() const
{
MutexGuard aGuard( GetOwnStaticMutex() );
@@ -1083,24 +1051,6 @@ sal_uInt16 SvtOptionsDrawinglayer::GetTransparentSelectionPercent() const
return aRetval;
}
-void SvtOptionsDrawinglayer::SetTransparentSelectionPercent( sal_uInt16 nPercent )
-{
- MutexGuard aGuard( GetOwnStaticMutex() );
-
- // crop to range [10% .. 90%]
- if(nPercent < 10)
- {
- nPercent = 10;
- }
-
- if(nPercent > 90)
- {
- nPercent = 90;
- }
-
- m_pDataContainer->SetTransparentSelectionPercent( nPercent );
-}
-
sal_uInt16 SvtOptionsDrawinglayer::GetSelectionMaximumLuminancePercent() const
{
MutexGuard aGuard( GetOwnStaticMutex() );
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index a1f1015b644b..9289c43421b0 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -425,15 +425,6 @@ void GraphicObject::SetUserData( const OUString& rUserData )
SetSwapState();
}
-void GraphicObject::SetSwapStreamHdl()
-{
- if( mpSwapOutTimer )
- {
- delete mpSwapOutTimer, mpSwapOutTimer = NULL;
- }
- maSwapStreamHdl = Link<const GraphicObject*, SvStream*>();
-}
-
static sal_uInt32 GetCacheTimeInMs()
{
if (utl::ConfigManager::IsAvoidConfig())