Kaydet (Commit) 32096886 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: remove unused TimeBox::Foo

üst 58eaf5ff
...@@ -866,7 +866,6 @@ class VCL_DLLPUBLIC TimeBox : public ComboBox, public TimeFormatter ...@@ -866,7 +866,6 @@ class VCL_DLLPUBLIC TimeBox : public ComboBox, public TimeFormatter
{ {
public: public:
TimeBox( Window* pParent, WinBits nWinStyle ); TimeBox( Window* pParent, WinBits nWinStyle );
TimeBox( Window* pParent, const ResId& rResId );
~TimeBox(); ~TimeBox();
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
...@@ -876,12 +875,6 @@ public: ...@@ -876,12 +875,6 @@ public:
virtual void Modify(); virtual void Modify();
virtual void ReformatAll(); virtual void ReformatAll();
void InsertTime( const Time& rTime, sal_uInt16 nPos = COMBOBOX_APPEND );
void RemoveTime( const Time& rTime );
using TimeFormatter::GetTime;
Time GetTime( sal_uInt16 nPos ) const;
sal_uInt16 GetTimePos( const Time& rTime ) const;
}; };
#endif // _SV_FIELD_HXX #endif // _SV_FIELD_HXX
......
...@@ -3323,26 +3323,6 @@ TimeBox::TimeBox( Window* pParent, WinBits nWinStyle ) : ...@@ -3323,26 +3323,6 @@ TimeBox::TimeBox( Window* pParent, WinBits nWinStyle ) :
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
TimeBox::TimeBox( Window* pParent, const ResId& rResId ) :
ComboBox( WINDOW_TIMEBOX )
{
rResId.SetRT( RSC_TIMEBOX );
WinBits nStyle = ImplInitRes( rResId );
ComboBox::ImplInit( pParent, nStyle );
SetField( this );
SetText( ImplGetLocaleDataWrapper().getTime( maFieldTime, sal_False, sal_False ) );
ComboBox::ImplLoadRes( rResId );
ResMgr* pMgr = rResId.GetResMgr();
if( pMgr )
TimeFormatter::ImplLoadRes( ResId( (RSHEADER_TYPE *)GetClassRes(), *pMgr ) );
Reformat();
if ( !(nStyle & WB_HIDE) )
Show();
}
// -----------------------------------------------------------------------
TimeBox::~TimeBox() TimeBox::~TimeBox()
{ {
} }
...@@ -3414,58 +3394,4 @@ void TimeBox::ReformatAll() ...@@ -3414,58 +3394,4 @@ void TimeBox::ReformatAll()
SetUpdateMode( sal_True ); SetUpdateMode( sal_True );
} }
// -----------------------------------------------------------------------
void TimeBox::InsertTime( const Time& rTime, sal_uInt16 nPos )
{
Time aTime = rTime;
if ( aTime > GetMax() )
aTime = GetMax();
else if ( aTime < GetMin() )
aTime = GetMin();
sal_Bool bSec = sal_False;
sal_Bool b100Sec = sal_False;
if ( GetFormat() == TIMEF_SEC )
bSec = sal_True;
if ( GetFormat() == TIMEF_100TH_SEC || GetFormat() == TIMEF_SEC_CS )
bSec = b100Sec = sal_True;
ComboBox::InsertEntry( ImplGetLocaleDataWrapper().getTime( aTime, bSec, b100Sec ), nPos );
}
// -----------------------------------------------------------------------
void TimeBox::RemoveTime( const Time& rTime )
{
sal_Bool bSec = sal_False;
sal_Bool b100Sec = sal_False;
if ( GetFormat() == TIMEF_SEC )
bSec = sal_True;
if ( GetFormat() == TIMEF_100TH_SEC || TIMEF_SEC_CS )
bSec = b100Sec = sal_True;
ComboBox::RemoveEntry( ImplGetLocaleDataWrapper().getTime( rTime, bSec, b100Sec ) );
}
// -----------------------------------------------------------------------
Time TimeBox::GetTime( sal_uInt16 nPos ) const
{
Time aTime( 0, 0, 0 );
ImplTimeGetValue( ComboBox::GetEntry( nPos ), aTime, GetFormat(), IsDuration(), ImplGetLocaleDataWrapper() );
return aTime;
}
// -----------------------------------------------------------------------
sal_uInt16 TimeBox::GetTimePos( const Time& rTime ) const
{
sal_Bool bSec = sal_False;
sal_Bool b100Sec = sal_False;
if ( GetFormat() == TIMEF_SEC )
bSec = sal_True;
if ( GetFormat() == TIMEF_100TH_SEC || TIMEF_SEC_CS )
bSec = b100Sec = sal_True;
return ComboBox::GetEntryPos( ImplGetLocaleDataWrapper().getTime( rTime, bSec, b100Sec ) );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment