summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-10 14:22:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-10 14:56:58 +0100
commit9f7f5b5f911c4e76c88258f6ee3e7d51484f195b (patch)
tree813fa04c2c1292de6dff20f1b134406b1c1335e6 /vcl
parent666787c4bcee7fc9a5de459eb18a1dcc1a4e350c (diff)
no numericfield, spinfield or spinbutton loaded from .src now
Change-Id: I90e4390d1fadcbb18036861dc9b9d39fa8a73551
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field.cxx59
1 files changed, 0 insertions, 59 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 4ea339ced88a..6e44a9d5ea41 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -524,34 +524,6 @@ NumericFormatter::NumericFormatter()
ImplInit();
}
-void NumericFormatter::ImplLoadRes( const ResId& rResId )
-{
- ResMgr* pMgr = rResId.GetResMgr();
-
- if( pMgr )
- {
- RscNumFormatterFlags nMask = (RscNumFormatterFlags)pMgr->ReadLong();
-
- if ( RscNumFormatterFlags::Min & nMask )
- mnMin = pMgr->ReadLong();
-
- if ( RscNumFormatterFlags::Max & nMask )
- mnMax = pMgr->ReadLong();
-
- if ( RscNumFormatterFlags::StrictFormat & nMask )
- SetStrictFormat( pMgr->ReadShort() != 0 );
-
- if ( RscNumFormatterFlags::DecimalDigits & nMask )
- SetDecimalDigits( pMgr->ReadShort() );
-
- if ( RscNumFormatterFlags::Value & nMask )
- {
- mnFieldValue = ClipAgainstMinMax(pMgr->ReadLong());
- mnLastValue = mnFieldValue;
- }
- }
-}
-
NumericFormatter::~NumericFormatter()
{
}
@@ -781,20 +753,6 @@ NumericField::NumericField( vcl::Window* pParent, WinBits nWinStyle ) :
Reformat();
}
-NumericField::NumericField( vcl::Window* pParent, const ResId& rResId ) :
- SpinField( WINDOW_NUMERICFIELD )
-{
- rResId.SetRT( RSC_NUMERICFIELD );
- WinBits nStyle = ImplInitRes( rResId ) ;
- SpinField::ImplInit( pParent, nStyle );
- SetField( this );
- ImplLoadRes( rResId );
- Reformat();
-
- if ( !(nStyle & WB_HIDE ) )
- Show();
-}
-
void NumericField::dispose()
{
NumericFormatter::SetField( nullptr );
@@ -814,23 +772,6 @@ bool NumericField::set_property(const OString &rKey, const OString &rValue)
return true;
}
-void NumericField::ImplLoadRes( const ResId& rResId )
-{
- SpinField::ImplLoadRes( rResId );
- NumericFormatter::ImplLoadRes( ResId( static_cast<RSHEADER_TYPE *>(GetClassRes()), *rResId.GetResMgr() ) );
-
- sal_uLong nMask = ReadLongRes();
-
- if ( NUMERICFIELD_FIRST & nMask )
- mnFirst = ReadLongRes();
-
- if ( NUMERICFIELD_LAST & nMask )
- mnLast = ReadLongRes();
-
- if ( NUMERICFIELD_SPINSIZE & nMask )
- mnSpinSize = ReadLongRes();
-}
-
bool NumericField::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == MouseNotifyEvent::KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )