diff options
author | Anders Jonsson <anders.jonsson@norsjonet.se> | 2010-12-18 13:35:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-18 18:58:32 +0000 |
commit | f15dfff3b033e9405e4c4a391f42ea6ba7cba944 (patch) | |
tree | 250fde5926ac3f9b3b6a2d525d70c37dc6e027bc /svtools/source | |
parent | 219eb043b3f3654fa8655af7df978d36d016744d (diff) |
Remove large blocks of commented code
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/property.cxx | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/svtools/source/dialogs/property.cxx b/svtools/source/dialogs/property.cxx index 6d93a885ec86..61ce869cacec 100644 --- a/svtools/source/dialogs/property.cxx +++ b/svtools/source/dialogs/property.cxx @@ -1406,146 +1406,4 @@ void SvBasicPropertyDataControl::SetIsCorrect(BOOL nFlag) bCorrectness=nFlag; } - - -//======================================================================== -// Property-Dialog: -/* zum TESTEN im CALC*/ -//======================================================================== -/* -ScPropertyDlg::ScPropertyDlg( Window* pParent) : - ModalDialog ( pParent, ScResId( RID_SCDLG_PROPERTIES) ), - aPropListBox ( this, ResId( CTR_PROPLINE) ), - aKindOfListBox (this,ResId( LB_KIND_OF_PROP)), - aModAnswer (this,ResId(FT_ANSMOD )), - aClickAnswer (this,ResId(FT_ANSCLICK )), - aCommitAnswer (this,ResId(FT_ANSCOMMIT)), - aSelectAnswer (this,ResId(FT_ANSSELECT)), - anOk(this,ResId( BTN_OK)), - aCancel(this,ResId( BTN_CANCEL)) -{ - FreeResource(); - - aKindOfListBox.SelectEntryPos(0); - aKindOfListBox.SetSelectHdl( - LINK( this, ScPropertyDlg, ModifiedHdl )); - nCount=0; - nClickCount=0; - - String aString("Don't know "); - - aBaProDatCtr.SetModifyHdl (LINK( this, ScPropertyDlg, RowModifiedHdl )); - aBaProDatCtr.SetClickedHdl(LINK( this, ScPropertyDlg, ClickHdl )); - aBaProDatCtr.SetCommitHdl (LINK( this, ScPropertyDlg, SelectHdl )); - aBaProDatCtr.SetSelectHdl (LINK( this, ScPropertyDlg, CommitHdl )); - - aPropListBox.SetController(&aBaProDatCtr); - - USHORT nPageId=aPropListBox.AppendPage("YabbaDabbaDo"); - aPropListBox.SetPage(nPageId); - aProperty.eKind=KOC_EDIT; - aProperty.aName=aString; - aProperty.aName+=String((USHORT)++nCount); - aProperty.aValue=sizeof ComboBox; - aProperty.bHasVisibleXButton=FALSE; - aProperty.bIsHyperLink=FALSE; - aProperty.bIsLocked=FALSE; - aProperty.pDataPtr=NULL; - aProperty.pControl=NULL; - aProperty.theValues.Insert(new String("1"),aProperty.theValues.Count()); - aProperty.theValues.Insert(new String("2"),aProperty.theValues.Count()); - aProperty.theValues.Insert(new String("3"),aProperty.theValues.Count()); - aProperty.theValues.Insert(new String("4"),aProperty.theValues.Count()); - aPropListBox.InsertEntry(aProperty); - aProperty.bHasVisibleXButton=TRUE; - aProperty.aName=aString; - aProperty.aName+=String((USHORT)++nCount); - aProperty.aValue="42"; - aProperty.eKind=KOC_LISTBOX; - aPropListBox.InsertEntry(aProperty); - aProperty.aName=aString; - aProperty.aName+=String((USHORT)++nCount); - aProperty.eKind=KOC_COMBOBOX; - aProperty.bHasVisibleXButton=FALSE; - aPropListBox.InsertEntry(aProperty); -} - -ScPropertyDlg::~ScPropertyDlg() -{ - delete aProperty.theValues[0]; - delete aProperty.theValues[1]; - delete aProperty.theValues[2]; - delete aProperty.theValues[3]; -} - -IMPL_LINK( ScPropertyDlg, ModifiedHdl, ListBox*, pLB ) -{ - if(pLB!=NULL) - { - String aString("Don't know "); - aProperty.aName=aString; - aProperty.aName+=String((USHORT)++nCount); - if(nCount>20) - { - String aStr("Yabba "); - aStr+=aPropListBox.GetCurPage(); - USHORT nPageId=aPropListBox.AppendPage(aStr); - aPropListBox.SetPage(nPageId); - nCount=0; - } - - aProperty.eKind=(eKindOfControl)(aKindOfListBox.GetSelectEntryPos()+1); - aProperty.bHasVisibleXButton=FALSE; - if((nCount % 5)==0) aProperty.bHasVisibleXButton=TRUE; - aPropListBox.InsertEntry(aProperty); - } - return 0; -} - -IMPL_LINK( ScPropertyDlg, RowModifiedHdl, SvBasicPropertyDataControl* ,pProCtr) -{ - if(pProCtr!=NULL) - { - aModAnswer.SetText(aBaProDatCtr.GetProperty()); - aModAnswer.Invalidate(); - aBaProDatCtr.SetIsCorrect(TRUE); - } - return 0; -} - -IMPL_LINK( ScPropertyDlg, CommitHdl, SvBasicPropertyDataControl*,pProCtr) -{ - if(pProCtr!=NULL) - { - aCommitAnswer.SetText(aBaProDatCtr.GetProperty()); - aCommitAnswer.Invalidate(); - aBaProDatCtr.SetIsCorrect(TRUE); - } - return 0; -} - -IMPL_LINK( ScPropertyDlg, ClickHdl, SvBasicPropertyDataControl*,pProCtr) -{ - if(pProCtr!=NULL) - { - aClickAnswer.SetText(aBaProDatCtr.GetName()); - aClickAnswer.Invalidate(); - aBaProDatCtr.SetIsCorrect(TRUE); - } - return 0; -} - -IMPL_LINK( ScPropertyDlg, SelectHdl, SvBasicPropertyDataControl*,pProCtr) -{ - if(pProCtr!=NULL) - { - aSelectAnswer.SetText(aBaProDatCtr.GetName()); - aSelectAnswer.Invalidate(); - aBaProDatCtr.SetIsCorrect(TRUE); - } - return 0; -} -*/ - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |