summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-13 16:08:52 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-02-13 16:08:52 +0000
commitabc235e73e70ffba83240759a8500a08becc9d71 (patch)
tree614b5036cdf7950e79425938d56ab789a8f889fe /svtools
parentRemove unused code (diff)
downloadcore-abc235e73e70ffba83240759a8500a08becc9d71.tar.gz
core-abc235e73e70ffba83240759a8500a08becc9d71.zip
Remove unused code
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/ctrlbox.hxx1
-rw-r--r--svtools/inc/svtools/filectrl.hxx1
-rw-r--r--svtools/source/control/ctrlbox.cxx22
-rw-r--r--svtools/source/control/filectrl.cxx9
4 files changed, 0 insertions, 33 deletions
diff --git a/svtools/inc/svtools/ctrlbox.hxx b/svtools/inc/svtools/ctrlbox.hxx
index 3828cf7f7d06..7143d3c7e765 100644
--- a/svtools/inc/svtools/ctrlbox.hxx
+++ b/svtools/inc/svtools/ctrlbox.hxx
@@ -560,7 +560,6 @@ public:
virtual void SetValue( sal_Int64 nNewValue );
virtual sal_Int64 GetValue( FieldUnit eOutUnit ) const;
virtual sal_Int64 GetValue() const;
- void SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit );
void SetUserValue( sal_Int64 nNewValue ) { SetUserValue( nNewValue, FUNIT_NONE ); }
private:
diff --git a/svtools/inc/svtools/filectrl.hxx b/svtools/inc/svtools/filectrl.hxx
index 7a0f54666023..9e5b3dc69592 100644
--- a/svtools/inc/svtools/filectrl.hxx
+++ b/svtools/inc/svtools/filectrl.hxx
@@ -97,7 +97,6 @@ public:
//------
//manipulate the Button-Text:
XubString GetButtonText() const { return maButtonText; }
- void SetButtonText( const XubString& rStr );
//------
//use this to manipulate the dialog bevore executing it:
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 00cd75fc676f..deb207b2b84e 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -2005,26 +2005,4 @@ sal_Int64 FontSizeBox::GetValue() const
return GetValue( FUNIT_NONE );
}
-// -----------------------------------------------------------------------
-
-void FontSizeBox::SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit )
-{
- if ( !bRelative )
- {
- sal_Int64 nTempValue = MetricField::ConvertValue( nNewValue, GetBaseValue(), GetDecimalDigits(), eInUnit, GetUnit() );
- FontSizeNames aFontSizeNames( GetSettings().GetUILanguage() );
- // conversion loses precision
- // however font sizes should never have a problem with that
- String aName = aFontSizeNames.Size2Name( static_cast<long>(nTempValue) );
- if ( aName.Len() && (GetEntryPos( aName ) != LISTBOX_ENTRY_NOTFOUND) )
- {
- mnLastValue = nTempValue;
- SetText( aName );
- return;
- }
- }
-
- MetricBox::SetUserValue( nNewValue, eInUnit );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index 9372cd82b5f3..d3ec1770d4a8 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -208,13 +208,4 @@ void FileControl::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize
GetEdit().SetStyle( nOldEditStyle );
}
-// -----------------------------------------------------------------------
-
-void FileControl::SetButtonText( const XubString& rStr )
-{
- mnInternalFlags &= ~FILECTRL_ORIGINALBUTTONTEXT;
- maButtonText = rStr;
- Resize();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */