Lines Matching refs:m_pWindow
559 ,m_pWindow( NULL ) in TYPEINIT1()
646 delete m_pWindow; in ~DbCellControl()
656 if ( m_pWindow ) in implValuePropertyChanged()
730 Window* pWindows[] = { m_pPainter, m_pWindow }; in ImplInitWindow()
822 if (m_pWindow) in ImplInitWindow()
825 m_pWindow->SetBackground(rParent.GetBackground()); in ImplInitWindow()
827 m_pWindow->SetFillColor(rParent.GetFillColor()); in ImplInitWindow()
836 DBG_ASSERT( m_pWindow, "DbCellControl::implAdjustReadOnly: not to be called without window!" ); in implAdjustReadOnly()
838 if ( m_pWindow && _rxModel.is() ) in implAdjustReadOnly()
840 Edit* pEditWindow = dynamic_cast< Edit* >( m_pWindow ); in implAdjustReadOnly()
848 static_cast< Edit* >( m_pWindow )->SetReadOnly( bReadOnly ); in implAdjustReadOnly()
856 DBG_ASSERT( m_pWindow, "DbCellControl::implAdjustEnabled: not to be called without window!" ); in implAdjustEnabled()
858 if ( m_pWindow && _rxModel.is() ) in implAdjustEnabled()
862 m_pWindow->Enable( bEnable ); in implAdjustEnabled()
871 if ( m_pWindow ) in Init()
908 AllSettings aSettings = m_pWindow->GetSettings(); in Init()
912 m_pWindow->SetSettings( aSettings, sal_True ); in Init()
926 if (m_pWindow) in SetTextLineColor()
927 m_pWindow->SetTextLineColor(); in SetTextLineColor()
935 if (m_pWindow) in SetTextLineColor()
936 m_pWindow->SetTextLineColor(_rColor); in SetTextLineColor()
967 lcl_implAlign( m_pWindow, nAlignmentBit ); in AlignControl()
1062 …DBG_ASSERT( m_pWindow, "DbLimitedLengthField::implAdjustGenericFieldSetting: not to be called with… in implAdjustGenericFieldSetting()
1064 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
1075 dynamic_cast< Edit* >( m_pWindow )->SetMaxTextLen( _nMaxLen ); in implSetEffectiveMaxTextLen()
1136 m_pWindow = new MultiLineTextCell( &rParent, nStyle ); in Init()
1137 … m_pEdit = new MultiLineEditImplementation( *static_cast< MultiLineTextCell* >( m_pWindow ) ); in Init()
1144 m_pWindow = new Edit( &rParent, nStyle ); in Init()
1145 m_pEdit = new EditImplementation( *static_cast< Edit* >( m_pWindow ) ); in Init()
1154 AllSettings aSettings = m_pWindow->GetSettings(); in Init()
1159 m_pWindow->SetSettings(aSettings); in Init()
1212 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbTextField::updateFromModel: invalid call!" ); in updateFromModel()
1287 m_pWindow = new FormattedField( &rParent, WB_RIGHT ); in Init()
1292 m_pWindow = new FormattedField( &rParent, WB_CENTER ); in Init()
1296 m_pWindow = new FormattedField( &rParent, WB_LEFT ); in Init()
1300 AllSettings aSettings = m_pWindow->GetSettings(); in Init()
1305 m_pWindow->SetSettings(aSettings); in Init()
1310 static_cast< FormattedField* >( m_pWindow )->SetStrictFormat( sal_False ); in Init()
1379 pFormatterUsed = ((FormattedField*)m_pWindow)->StandardFormatter(); in Init()
1388 ((FormattedField*)m_pWindow)->SetFormatter(pFormatterUsed); in Init()
1391 ((FormattedField*)m_pWindow)->SetFormatKey(nFormatKey); in Init()
1394 ((FormattedField*)m_pWindow)->TreatAsNumber(m_rColumn.IsNumeric()); in Init()
1408 ((FormattedField*)m_pWindow)->SetMinValue(dMin); in Init()
1415 ((FormattedField*)m_pWindow)->ClearMinValue(); in Init()
1426 ((FormattedField*)m_pWindow)->SetMaxValue(dMin); in Init()
1433 ((FormattedField*)m_pWindow)->ClearMaxValue(); in Init()
1447 … ((FormattedField*)m_pWindow)->SetDefaultValue(::comphelper::getDouble(aDefault)); in Init()
1455 ((FormattedField*)m_pWindow)->SetDefaultText(sConverted); in Init()
1468 ((FormattedField*)m_pWindow)->SetDefaultValue(dVal); in Init()
1474 ((FormattedField*)m_pWindow)->SetDefaultText(sDefault); in Init()
1489 return new ::svt::FormattedFieldCellController( static_cast< FormattedField* >( m_pWindow ) ); in CreateController()
1500 …DBG_ASSERT(m_pWindow && m_pPainter, "DbFormattedField::_propertyChanged : where are my windows ?"); in _propertyChanged()
1501 if (m_pWindow) in _propertyChanged()
1502 static_cast< FormattedField* >( m_pWindow )->SetFormatKey( nNewKey ); in _propertyChanged()
1565 FormattedField* pFormattedWindow = static_cast<FormattedField*>(m_pWindow); in UpdateFromField()
1568 m_pWindow->SetText(String()); in UpdateFromField()
1579 m_pWindow->SetText(String()); in UpdateFromField()
1602 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbFormattedField::updateFromModel: invalid call!" ); in updateFromModel()
1604 FormattedField* pFormattedWindow = static_cast< FormattedField* >( m_pWindow ); in updateFromModel()
1625 FormattedField& rField = *(FormattedField*)m_pWindow; in commitControl()
1626 …DBG_ASSERT(&rField == m_pWindow, "DbFormattedField::commitControl : can't work with a window other… in commitControl()
1670 m_pWindow = new CheckBoxControl( &rParent ); in Init()
1673 m_pWindow->SetPaintTransparent( sal_True ); in Init()
1685 setCheckBoxStyle( m_pWindow, nStyle == awt::VisualEffect::FLAT ); in Init()
1690 static_cast< CheckBoxControl* >( m_pWindow )->GetBox().EnableTriState( bTristate ); in Init()
1704 return new CheckBoxCellController((CheckBoxControl*)m_pWindow); in CreateController()
1730 lcl_setCheckBoxState( _rxField, static_cast<CheckBoxControl*>(m_pWindow) ); in UpdateFromField()
1745 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbCheckBox::updateFromModel: invalid call!" ); in updateFromModel()
1749 …static_cast< CheckBoxControl* >( m_pWindow )->GetBox().SetState( static_cast< TriState >( nState )… in updateFromModel()
1756 …Any aVal = makeAny( (sal_Int16)( static_cast< CheckBoxControl* >( m_pWindow )->GetBox().GetState()… in commitControl()
1759 makeAny( (sal_Int16)( static_cast< CheckBoxControl* >( m_pWindow )->GetBox().GetState() ) ) ); in commitControl()
1784 …DBG_ASSERT( m_pWindow, "DbPatternField::implAdjustGenericFieldSetting: not to be called without wi… in implAdjustGenericFieldSetting()
1786 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
1798 static_cast< PatternField* >( m_pWindow )->SetMask( aAsciiEditMask, aLitMask ); in implAdjustGenericFieldSetting()
1800 static_cast< PatternField* >( m_pWindow )->SetStrictFormat( bStrict ); in implAdjustGenericFieldSetting()
1810 m_pWindow = new PatternField( &rParent, 0 ); in Init()
1822 return new SpinCellController( static_cast< PatternField* >( m_pWindow ) ); in CreateController()
1860 static_cast< Edit* >( m_pWindow )->SetText( GetFormatText( _rxField, _rxFormatter ) ); in UpdateFromField()
1861 static_cast< Edit* >( m_pWindow )->SetSelection( Selection( SELECTION_MAX, SELECTION_MIN ) ); in UpdateFromField()
1867 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbPatternField::updateFromModel: invalid call!" ); in updateFromModel()
1872 static_cast< Edit* >( m_pWindow )->SetText( impl_formatText( sText ) ); in updateFromModel()
1873 static_cast< Edit* >( m_pWindow )->SetSelection( Selection( SELECTION_MAX, SELECTION_MIN ) ); in updateFromModel()
1879 String aText(m_pWindow->GetText()); in commitControl()
1906 m_pWindow = createField( &_rParent, nFieldStyle, xModel ); in Init()
1919 return new SpinCellController( static_cast< SpinField* >( m_pWindow ) ); in CreateController()
1940 …DBG_ASSERT( m_pWindow, "DbNumericField::implAdjustGenericFieldSetting: not to be called without wi… in implAdjustGenericFieldSetting()
1942 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
1951 static_cast< DoubleNumericField* >( m_pWindow )->SetMinValue(nMin); in implAdjustGenericFieldSetting()
1952 static_cast< DoubleNumericField* >( m_pWindow )->SetMaxValue(nMax); in implAdjustGenericFieldSetting()
1953 static_cast< DoubleNumericField* >( m_pWindow )->SetSpinSize(nStep); in implAdjustGenericFieldSetting()
1954 static_cast< DoubleNumericField* >( m_pWindow )->SetStrictFormat(bStrict); in implAdjustGenericFieldSetting()
1977 pFormatterUsed = static_cast< DoubleNumericField* >( m_pWindow )->StandardFormatter(); in implAdjustGenericFieldSetting()
1980 static_cast< DoubleNumericField* >( m_pWindow )->SetFormatter( pFormatterUsed ); in implAdjustGenericFieldSetting()
1988 static_cast< DoubleNumericField* >( m_pWindow )->SetFormat( sFormatString, aAppLanguage ); in implAdjustGenericFieldSetting()
2035 …lcl_setFormattedNumeric_nothrow( *dynamic_cast< DoubleNumericField* >( m_pWindow ), *this, _rxFiel… in UpdateFromField()
2041 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbNumericField::updateFromModel: invalid call!" ); in updateFromModel()
2045 static_cast< DoubleNumericField* >( m_pWindow )->SetValue( dValue ); in updateFromModel()
2047 m_pWindow->SetText( String() ); in updateFromModel()
2053 String aText( m_pWindow->GetText()); in commitControl()
2058 double fValue = ((DoubleNumericField*)m_pWindow)->GetValue(); in commitControl()
2085 …DBG_ASSERT( m_pWindow, "DbCurrencyField::implAdjustGenericFieldSetting: not to be called without w… in implAdjustGenericFieldSetting()
2087 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
2097 static_cast< LongCurrencyField* >( m_pWindow )->SetUseThousandSep( bThousand ); in implAdjustGenericFieldSetting()
2098 static_cast< LongCurrencyField* >( m_pWindow )->SetDecimalDigits( m_nScale ); in implAdjustGenericFieldSetting()
2099 static_cast< LongCurrencyField* >( m_pWindow )->SetCurrencySymbol( aStr ); in implAdjustGenericFieldSetting()
2100 static_cast< LongCurrencyField* >( m_pWindow )->SetFirst( nMin ); in implAdjustGenericFieldSetting()
2101 static_cast< LongCurrencyField* >( m_pWindow )->SetLast( nMax ); in implAdjustGenericFieldSetting()
2102 static_cast< LongCurrencyField* >( m_pWindow )->SetMin( nMin ); in implAdjustGenericFieldSetting()
2103 static_cast< LongCurrencyField* >( m_pWindow )->SetMax( nMax ); in implAdjustGenericFieldSetting()
2104 static_cast< LongCurrencyField* >( m_pWindow )->SetSpinSize( nStep ); in implAdjustGenericFieldSetting()
2105 static_cast< LongCurrencyField* >( m_pWindow )->SetStrictFormat( bStrict ); in implAdjustGenericFieldSetting()
2175 …lcl_setFormattedCurrency_nothrow( *dynamic_cast< LongCurrencyField* >( m_pWindow ), *this, _rxFiel… in UpdateFromField()
2181 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbCurrencyField::updateFromModel: invalid call!" ); in updateFromModel()
2192 static_cast< LongCurrencyField* >( m_pWindow )->SetValue( dValue ); in updateFromModel()
2195 m_pWindow->SetText( String() ); in updateFromModel()
2201 String aText( m_pWindow->GetText()); in commitControl()
2205 double fValue = ((LongCurrencyField*)m_pWindow)->GetValue(); in commitControl()
2251 …DBG_ASSERT( m_pWindow, "DbDateField::implAdjustGenericFieldSetting: not to be called without windo… in implAdjustGenericFieldSetting()
2253 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
2265 static_cast<DateField*>( m_pWindow )->SetShowDateCentury( bShowDateCentury ); in implAdjustGenericFieldSetting()
2269 static_cast< DateField* >( m_pWindow )->SetExtDateFormat( (ExtDateFieldFormat)nFormat ); in implAdjustGenericFieldSetting()
2270 static_cast< DateField* >( m_pWindow )->SetMin( nMin ); in implAdjustGenericFieldSetting()
2271 static_cast< DateField* >( m_pWindow )->SetMax( nMax ); in implAdjustGenericFieldSetting()
2272 static_cast< DateField* >( m_pWindow )->SetStrictFormat( bStrict ); in implAdjustGenericFieldSetting()
2273 static_cast< DateField* >( m_pWindow )->EnableEmptyFieldValue( sal_True ); in implAdjustGenericFieldSetting()
2319 lcl_setFormattedDate_nothrow( *dynamic_cast< DateField* >( m_pWindow ), _rxField ); in UpdateFromField()
2325 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbDateField::updateFromModel: invalid call!" ); in updateFromModel()
2329 static_cast< DateField* >( m_pWindow )->SetDate( ::Date( nDate ) ); in updateFromModel()
2331 static_cast< DateField* >( m_pWindow )->SetText( String() ); in updateFromModel()
2337 String aText( m_pWindow->GetText()); in commitControl()
2340 aVal <<= (sal_Int32)static_cast<DateField*>(m_pWindow)->GetDate().GetDate(); in commitControl()
2370 …DBG_ASSERT( m_pWindow, "DbTimeField::implAdjustGenericFieldSetting: not to be called without windo… in implAdjustGenericFieldSetting()
2372 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
2379 static_cast< TimeField* >( m_pWindow )->SetExtFormat( (ExtTimeFieldFormat)nFormat ); in implAdjustGenericFieldSetting()
2380 static_cast< TimeField* >( m_pWindow )->SetMin( nMin ); in implAdjustGenericFieldSetting()
2381 static_cast< TimeField* >( m_pWindow )->SetMax( nMax ); in implAdjustGenericFieldSetting()
2382 static_cast< TimeField* >( m_pWindow )->SetStrictFormat( bStrict ); in implAdjustGenericFieldSetting()
2383 static_cast< TimeField* >( m_pWindow )->EnableEmptyFieldValue( sal_True ); in implAdjustGenericFieldSetting()
2429 lcl_setFormattedTime_nothrow( *static_cast< TimeField* >( m_pWindow ), _rxField ); in UpdateFromField()
2435 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbTimeField::updateFromModel: invalid call!" ); in updateFromModel()
2439 static_cast< TimeField* >( m_pWindow )->SetTime( ::Time( nTime ) ); in updateFromModel()
2441 static_cast< TimeField* >( m_pWindow )->SetText( String() ); in updateFromModel()
2447 String aText( m_pWindow->GetText()); in commitControl()
2450 aVal <<= (sal_Int32)static_cast<TimeField*>(m_pWindow)->GetTime().GetTime(); in commitControl()
2488 ComboBoxControl* pField = (ComboBoxControl*)m_pWindow; in SetList()
2507 …DBG_ASSERT( m_pWindow, "DbComboBox::implAdjustGenericFieldSetting: not to be called without window… in implAdjustGenericFieldSetting()
2509 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
2512 static_cast< ComboBoxControl* >( m_pWindow )->SetDropDownLineCount( nLines ); in implAdjustGenericFieldSetting()
2521 m_pWindow = new ComboBoxControl( &rParent ); in Init()
2524 AllSettings aSettings = m_pWindow->GetSettings(); in Init()
2529 m_pWindow->SetSettings(aSettings, sal_True); in Init()
2545 return new ComboBoxCellController((ComboBoxControl*)m_pWindow); in CreateController()
2567 m_pWindow->SetText(GetFormatText(_rxField, xFormatter)); in UpdateFromField()
2573 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbComboBox::updateFromModel: invalid call!" ); in updateFromModel()
2578 static_cast< ComboBox* >( m_pWindow )->SetText( sText ); in updateFromModel()
2579 … static_cast< ComboBox* >( m_pWindow )->SetSelection( Selection( SELECTION_MAX, SELECTION_MIN ) ); in updateFromModel()
2585 String aText( m_pWindow->GetText()); in commitControl()
2617 ListBoxControl* pField = (ListBoxControl*)m_pWindow; in SetList()
2646 m_pWindow = new ListBoxControl( &rParent ); in Init()
2659 …DBG_ASSERT( m_pWindow, "DbListBox::implAdjustGenericFieldSetting: not to be called without window!… in implAdjustGenericFieldSetting()
2661 if ( m_pWindow && _rxModel.is() ) in implAdjustGenericFieldSetting()
2664 static_cast< ListBoxControl* >( m_pWindow )->SetDropDownLineCount( nLines ); in implAdjustGenericFieldSetting()
2671 return new ListBoxCellController((ListBoxControl*)m_pWindow); in CreateController()
2687 sText = static_cast<ListBox*>(m_pWindow)->GetEntry(aPosSeq.getConstArray()[0]); in GetFormatText()
2705 static_cast< ListBox* >( m_pWindow )->SelectEntry( sFormattedText ); in UpdateFromField()
2707 static_cast< ListBox* >( m_pWindow )->SetNoSelection(); in UpdateFromField()
2713 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbListBox::updateFromModel: invalid call!" ); in updateFromModel()
2722 ListBox* pListBox = static_cast< ListBox* >( m_pWindow ); in updateFromModel()
2735 if (static_cast<ListBox*>(m_pWindow)->GetSelectEntryCount()) in commitControl()
2738 …*(sal_Int16 *)aSelectSeq.getArray() = (sal_Int16)static_cast<ListBox*>(m_pWindow)->GetSelectEntryP… in commitControl()
2765 ((CheckBoxControl*)m_pWindow)->SetClickHdl( Link() ); in ~DbFilterField()
2780 rDev.DrawText(rRect, static_cast<ListBox*>(m_pWindow)->GetSelectEntry(), nStyle); in PaintCell()
2798 ComboBox* pField = (ComboBox*)m_pWindow; in SetList()
2804 ListBox* pField = (ListBox*)m_pWindow; in SetList()
2820 m_pWindow = new CheckBoxControl(pParent); in CreateControl()
2821 m_pWindow->SetPaintTransparent( sal_True ); in CreateControl()
2822 ((CheckBoxControl*)m_pWindow)->SetClickHdl( LINK( this, DbFilterField, OnClick ) ); in CreateControl()
2830 m_pWindow = new ListBoxControl(pParent); in CreateControl()
2834 static_cast<ListBox*>(m_pWindow)->SetDropDownLineCount(nLines); in CreateControl()
2838 m_pWindow = new ComboBoxControl(pParent); in CreateControl()
2840 AllSettings aSettings = m_pWindow->GetSettings(); in CreateControl()
2845 m_pWindow->SetSettings(aSettings, sal_True); in CreateControl()
2852 ((ComboBox*)m_pWindow)->SetDropDownLineCount(nLines); in CreateControl()
2855 ((ComboBox*)m_pWindow)->SetDropDownLineCount(5); in CreateControl()
2860 m_pWindow = new Edit(pParent, WB_LEFT); in CreateControl()
2861 AllSettings aSettings = m_pWindow->GetSettings(); in CreateControl()
2866 m_pWindow->SetSettings(aSettings, sal_True); in CreateControl()
2906 Edit* pAsEdit = dynamic_cast< Edit* >( m_pWindow ); in Init()
2918 xController = new CheckBoxCellController((CheckBoxControl*)m_pWindow); in CreateController()
2921 xController = new ListBoxCellController((ListBoxControl*)m_pWindow); in CreateController()
2924 xController = new ComboBoxCellController((ComboBoxControl*)m_pWindow); in CreateController()
2928 xController = new ComboBoxCellController((ComboBoxControl*)m_pWindow); in CreateController()
2930 xController = new EditCellController((Edit*)m_pWindow); in CreateController()
2938 OSL_ENSURE( _rxModel.is() && m_pWindow, "DbFilterField::updateFromModel: invalid call!" ); in updateFromModel()
2956 if (static_cast<ListBox*>(m_pWindow)->GetSelectEntryCount()) in commitControl()
2958 sal_Int16 nPos = (sal_Int16)static_cast<ListBox*>(m_pWindow)->GetSelectEntryPos(); in commitControl()
2970 aText = m_pWindow->GetText(); in commitControl()
3008 displayException(aError, m_pWindow->GetParent()); in commitControl()
3017 m_pWindow->SetText(m_aText); in commitControl()
3039 ((CheckBoxControl*)m_pWindow)->GetBox().SetState(eState); in SetText()
3047 … static_cast<ListBox*>(m_pWindow)->SelectEntryPos(aPosSeq.getConstArray()[0], sal_True); in SetText()
3049 static_cast<ListBox*>(m_pWindow)->SetNoSelection(); in SetText()
3052 m_pWindow->SetText(m_aText); in SetText()
3174 ((ComboBox*)m_pWindow)->InsertEntry(*iter, LISTBOX_APPEND); in Update()
3194 TriState eState = ((CheckBoxControl*)m_pWindow)->GetBox().GetState(); in IMPL_LINK()