diff options
Diffstat (limited to 'svtools/source/dialogs/property.cxx')
-rw-r--r-- | svtools/source/dialogs/property.cxx | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/svtools/source/dialogs/property.cxx b/svtools/source/dialogs/property.cxx index 6d93a885ec86..6a5c791aa176 100644 --- a/svtools/source/dialogs/property.cxx +++ b/svtools/source/dialogs/property.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,19 +35,19 @@ SvXPropertyControl::SvXPropertyControl( Window* pParent, WinBits nWinStyle) - : Control(pParent,nWinStyle) + : Control(pParent,nWinStyle) { } SvXPropertyControl::SvXPropertyControl( Window* pParent, const ResId& rResId ) - : Control(pParent,rResId ) + : Control(pParent,rResId ) { } //------------------------------------------------------------------ SvXPropertyEdit::SvXPropertyEdit( Window* pParent, WinBits nWinStyle) - : SvXPropertyControl(pParent,nWinStyle), + : SvXPropertyControl(pParent,nWinStyle), aEdit(this,WB_BORDER | WB_TABSTOP) { pListener=NULL; @@ -62,7 +62,7 @@ SvXPropertyEdit::SvXPropertyEdit( Window* pParent, WinBits nWinStyle) } SvXPropertyEdit::SvXPropertyEdit( Window* pParent, const ResId& rResId) - : SvXPropertyControl(pParent,rResId), + : SvXPropertyControl(pParent,rResId), aEdit(this,WB_BORDER | WB_TABSTOP) { pListener=NULL; @@ -176,7 +176,7 @@ IMPL_LINK( SvXPropertyEdit, LoseFocusHdl, Edit*, EMPTYARG ) //------------------------------------------------------------------ SvXPropertyListBox::SvXPropertyListBox( Window* pParent, WinBits nWinStyle) - : SvXPropertyControl(pParent,nWinStyle), + : SvXPropertyControl(pParent,nWinStyle), aListBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP) { pListener=NULL; @@ -190,7 +190,7 @@ SvXPropertyListBox::SvXPropertyListBox( Window* pParent, WinBits nWinStyle) } SvXPropertyListBox::SvXPropertyListBox( Window* pParent, const ResId& rResId) - : SvXPropertyControl(pParent,rResId), + : SvXPropertyControl(pParent,rResId), aListBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP) { pListener=NULL; @@ -305,7 +305,7 @@ IMPL_LINK( SvXPropertyListBox, LoseFocusHdl, ListBox*, EMPTYARG ) SvXPropertyComboBox::SvXPropertyComboBox( Window* pParent, WinBits nWinStyle) - : SvXPropertyControl(pParent,nWinStyle), + : SvXPropertyControl(pParent,nWinStyle), aComboBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP) { pListener=NULL; @@ -319,7 +319,7 @@ SvXPropertyComboBox::SvXPropertyComboBox( Window* pParent, WinBits nWinStyle) } SvXPropertyComboBox::SvXPropertyComboBox( Window* pParent, const ResId& rResId) - : SvXPropertyControl(pParent,rResId), + : SvXPropertyControl(pParent,rResId), aComboBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP) { pListener=NULL; @@ -369,7 +369,7 @@ void SvXPropertyComboBox::SetProperty(const String &rString) aComboBox.SetText(rString); } -String SvXPropertyComboBox::GetProperty() const +String SvXPropertyComboBox::GetProperty() const { return aComboBox.GetText(); } @@ -432,7 +432,7 @@ IMPL_LINK( SvXPropertyComboBox, LoseFocusHdl, ComboBox*, EMPTYARG ) //------------------------------------------------------------------ SvPropertyLine::SvPropertyLine( Window* pParent,WinBits nWinStyle) - : Control(pParent,nWinStyle), + : Control(pParent,nWinStyle), aName(this,WB_BORDER), pSvXPropertyControl(NULL), aXButton(this,WB_BORDER), @@ -451,10 +451,10 @@ SvPropertyLine::SvPropertyLine( Window* pParent,WinBits nWinStyle) } SvPropertyLine::SvPropertyLine( Window* pParent,const ResId& rResId ) - : Control(pParent,rResId), - aName (this,WB_BORDER), + : Control(pParent,rResId), + aName (this,WB_BORDER), pSvXPropertyControl(NULL), - aXButton (this,WB_BORDER), + aXButton (this,WB_BORDER), bIsLocked(FALSE), bIsHyperlink(FALSE) { @@ -515,8 +515,8 @@ void SvPropertyLine::Resize() aPos.X()=GetOutputSizePixel().Width() -nXButtonWidth; aSize.Width()=nXButtonWidth; - aXButton .SetSizePixel(aSize); - aXButton .SetPosPixel(aPos); + aXButton .SetSizePixel(aSize); + aXButton .SetPosPixel(aPos); } } @@ -649,7 +649,7 @@ void SvXPropEvListener::KeyInput (SvXPropertyControl *pSvXPCtr,const KeyCode& th aKeyInputLink.Call(this); } -SvXPropertyControl * SvXPropEvListener::GetPropertyControl() +SvXPropertyControl * SvXPropEvListener::GetPropertyControl() { return pTheActiveControl; } @@ -662,13 +662,13 @@ KeyCode SvXPropEvListener::GetKeyCode() const //------------------------------------------------------------------ SvListBoxForProperties::SvListBoxForProperties( Window* pParent, WinBits nWinStyle) - : Control(pParent,nWinStyle), + : Control(pParent,nWinStyle), aPlayGround(this,WB_DIALOGCONTROL), aVScroll(this,WB_VSCROLL|WB_REPEAT|WB_DRAG), pPropDataControl(NULL) { - aListener.SetModifyHdl (LINK( this, SvListBoxForProperties, ModifyHdl)); + aListener.SetModifyHdl (LINK( this, SvListBoxForProperties, ModifyHdl)); aListener.SetGetFocusHdl (LINK( this, SvListBoxForProperties, GetFocusHdl)); aListener.SetLoseFocusHdl(LINK( this, SvListBoxForProperties,LoseFocusHdl)); aListener.SetKeyInputHdl (LINK( this, SvListBoxForProperties, KeyInputHdl)); @@ -690,7 +690,7 @@ SvListBoxForProperties::SvListBoxForProperties( Window* pParent, WinBits nWinSty SvListBoxForProperties::SvListBoxForProperties( Window* pParent, const ResId& rResId ) - : Control(pParent,rResId), + : Control(pParent,rResId), aPlayGround(this,0), aVScroll(this,WB_VSCROLL|WB_REPEAT|WB_DRAG), pPropDataControl(NULL) @@ -723,9 +723,9 @@ void SvListBoxForProperties::Clear() switch(pPropLine->GetKindOfControl()) { - case KOC_LISTBOX: - case KOC_COMBOBOX: - case KOC_EDIT: delete pPropLine->GetSvXPropertyControl(); + case KOC_LISTBOX: + case KOC_COMBOBOX: + case KOC_EDIT: delete pPropLine->GetSvXPropertyControl(); break; default: break; @@ -936,9 +936,9 @@ void SvListBoxForProperties::ChangeEntry( const SvPropertyData& aPropData, USHOR switch(pPropLine->GetKindOfControl()) { - case KOC_LISTBOX: - case KOC_COMBOBOX: - case KOC_EDIT: delete pPropLine->GetSvXPropertyControl(); + case KOC_LISTBOX: + case KOC_COMBOBOX: + case KOC_EDIT: delete pPropLine->GetSvXPropertyControl(); break; default: break; @@ -946,22 +946,22 @@ void SvListBoxForProperties::ChangeEntry( const SvPropertyData& aPropData, USHOR switch(aPropData.eKind) { - case KOC_LISTBOX: + case KOC_LISTBOX: pPropLine->SetSvXPropertyControl( new SvXPropertyComboBox(pPropLine,WB_TABSTOP)); pPropLine->SetKindOfControl(aPropData.eKind); break; - case KOC_COMBOBOX: + case KOC_COMBOBOX: pPropLine->SetSvXPropertyControl( new SvXPropertyComboBox(pPropLine,WB_TABSTOP)); pPropLine->SetKindOfControl(aPropData.eKind); break; - case KOC_EDIT: + case KOC_EDIT: pPropLine->SetSvXPropertyControl( new SvXPropertyEdit(pPropLine,WB_TABSTOP)); pPropLine->SetKindOfControl(aPropData.eKind); break; - case KOC_USERDEFINED: + case KOC_USERDEFINED: pPropLine->SetSvXPropertyControl(aPropData.pControl); aPropData.pControl->SetParent(pPropLine); pPropLine->SetKindOfControl(aPropData.eKind); @@ -1131,7 +1131,7 @@ IMPL_LINK( SvListBoxForProperties, KeyInputHdl,SvXPropEvListener*, pSvXPEvL) SvTabPageForProperties::SvTabPageForProperties(Window* pParent,WinBits nWinStyle) - : TabPage(pParent,nWinStyle), + : TabPage(pParent,nWinStyle), aLbProp(this) { aLbProp.Show(); @@ -1341,9 +1341,9 @@ void SvBasicPropertyDataControl::Modified(const String& aName, aModifyLink.Call(this); } -void SvBasicPropertyDataControl::Clicked( const String& aName, +void SvBasicPropertyDataControl::Clicked( const String& aName, const String& aVal, - void* pData) //Xtension-Button pressed + void* pData) //Xtension-Button pressed { aEntryName=aName; aEntryProperty=aVal; @@ -1351,9 +1351,9 @@ void SvBasicPropertyDataControl::Clicked( const String& aName, aClickedLink.Call(this); } -void SvBasicPropertyDataControl::Commit( const String& aName, +void SvBasicPropertyDataControl::Commit( const String& aName, const String& aVal, - void* pData) //User accept changes + void* pData) //User accept changes { aEntryName=aName; aEntryProperty=aVal; @@ -1361,8 +1361,8 @@ void SvBasicPropertyDataControl::Commit( const String& aName, aCommitLink.Call(this); } -void SvBasicPropertyDataControl::Select( const String& aName, - void* pData) //User select new Row +void SvBasicPropertyDataControl::Select( const String& aName, + void* pData) //User select new Row { aEntryName=aName; pTheData=pData; @@ -1374,17 +1374,17 @@ void SvBasicPropertyDataControl::LinkClicked(const String&, void*) } -String SvBasicPropertyDataControl::GetName() const //Tell's the name of the Property +String SvBasicPropertyDataControl::GetName() const //Tell's the name of the Property { return aEntryName; } -String SvBasicPropertyDataControl::GetProperty() const //Tell's the content of the Property +String SvBasicPropertyDataControl::GetProperty() const //Tell's the content of the Property { return aEntryProperty; } -void* SvBasicPropertyDataControl::GetData() //Tell's the storage +void* SvBasicPropertyDataControl::GetData() //Tell's the storage { return pTheData; } @@ -1414,13 +1414,13 @@ void SvBasicPropertyDataControl::SetIsCorrect(BOOL nFlag) //======================================================================== /* 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)), + 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)) { @@ -1435,9 +1435,9 @@ ScPropertyDlg::ScPropertyDlg( Window* pParent) : 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 )); + aBaProDatCtr.SetClickedHdl(LINK( this, ScPropertyDlg, ClickHdl )); + aBaProDatCtr.SetCommitHdl (LINK( this, ScPropertyDlg, SelectHdl )); + aBaProDatCtr.SetSelectHdl (LINK( this, ScPropertyDlg, CommitHdl )); aPropListBox.SetController(&aBaProDatCtr); |