PushButton Class Reference

#include <button.hxx>

Inheritance diagram for PushButton:

Inheritance graph
[legend]
Collaboration diagram for PushButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

SAL_DLLPRIVATE void ImplSetDefButton (BOOL bSet)
SAL_DLLPRIVATE BOOL ImplIsDefButton () const
 PushButton (Window *pParent, WinBits nStyle=0)
 PushButton (Window *pParent, const ResId &rResId)
 ~PushButton ()
virtual void MouseButtonDown (const MouseEvent &rMEvt)
virtual void Tracking (const TrackingEvent &rTEvt)
virtual void KeyInput (const KeyEvent &rKEvt)
virtual void KeyUp (const KeyEvent &rKEvt)
virtual void Paint (const Rectangle &rRect)
virtual void Draw (OutputDevice *pDev, const Point &rPos, const Size &rSize, ULONG nFlags)
virtual void Resize ()
virtual void GetFocus ()
virtual void LoseFocus ()
virtual void StateChanged (StateChangedType nType)
virtual void DataChanged (const DataChangedEvent &rDCEvt)
virtual long PreNotify (NotifyEvent &rNEvt)
virtual void UserDraw (const UserDrawEvent &rUDEvt)
virtual void Toggle ()
void SetSymbol (SymbolType eSymbol)
SymbolType GetSymbol () const
void SetSymbolAlign (SymbolAlign eAlign)
SymbolAlign GetSymbolAlign () const
void SetDropDown (USHORT nStyle)
USHORT GetDropDown () const
void SetState (TriState eState)
TriState GetState () const
void Check (BOOL bCheck=TRUE)
BOOL IsChecked () const
void SetPressed (BOOL bPressed)
BOOL IsPressed () const
void EndSelection ()
void SaveValue ()
TriState GetSavedValue () const
Size CalcMinimumSize (long nMaxWidth=0) const
virtual Size GetOptimalSize (WindowSizeType eType) const
void SetToggleHdl (const Link &rLink)
const Link & GetToggleHdl () const

Static Public Member Functions

static SAL_DLLPRIVATE void ImplDrawPushButtonFrame (Window *pDev, Rectangle &rRect, USHORT nStyle)
static SAL_DLLPRIVATE BOOL ImplHitTestPushButton (Window *pDev, const Point &rPos)

Protected Member Functions

SAL_DLLPRIVATE void ImplInitPushButtonData ()
SAL_DLLPRIVATE WinBits ImplInitStyle (const Window *pPrevWindow, WinBits nStyle)
SAL_DLLPRIVATE void ImplInitSettings (BOOL bFont, BOOL bForeground, BOOL bBackground)
SAL_DLLPRIVATE void ImplDrawPushButtonContent (OutputDevice *pDev, ULONG nDrawFlags, const Rectangle &rRect, bool bLayout)
SAL_DLLPRIVATE void ImplDrawPushButton (bool bLayout=false)
SAL_DLLPRIVATE USHORT ImplGetTextStyle (ULONG nDrawFlags) const
SAL_DLLPRIVATE BOOL IsSymbol () const
SAL_DLLPRIVATE BOOL IsImage () const
SAL_DLLPRIVATE PushButton (const PushButton &)
SAL_DLLPRIVATE PushButtonoperator= (const PushButton &)
SAL_DLLPRIVATE void ImplInit (Window *pParent, WinBits nStyle)
 PushButton (WindowType nType)
virtual void FillLayoutData () const

Protected Attributes

SymbolType meSymbol
TriState meState
TriState meSaveValue
USHORT mnDDStyle
BOOL mbPressed
BOOL mbInUserDraw
Link maToggleHdl


Detailed Description

Definition at line 118 of file button.hxx.


Constructor & Destructor Documentation

SAL_DLLPRIVATE PushButton::PushButton ( const PushButton  )  [protected]

PushButton::PushButton ( WindowType  nType  )  [protected]

Definition at line 1495 of file button.cxx.

References ImplInitPushButtonData().

PushButton::PushButton ( Window pParent,
WinBits  nStyle = 0 
)

Definition at line 1503 of file button.cxx.

References ImplInit(), and ImplInitPushButtonData().

PushButton::PushButton ( Window pParent,
const ResId &  rResId 
)

PushButton::~PushButton (  ) 

Definition at line 1527 of file button.cxx.


Member Function Documentation

void PushButton::ImplInitPushButtonData (  )  [protected]

WinBits PushButton::ImplInitStyle ( const Window pPrevWindow,
WinBits  nStyle 
) [protected]

void PushButton::ImplInitSettings ( BOOL  bFont,
BOOL  bForeground,
BOOL  bBackground 
) [protected]

void PushButton::ImplDrawPushButtonContent ( OutputDevice pDev,
ULONG  nDrawFlags,
const Rectangle &  rRect,
bool  bLayout 
) [protected]

void PushButton::ImplDrawPushButton ( bool  bLayout = false  )  [protected]

USHORT PushButton::ImplGetTextStyle ( ULONG  nDrawFlags  )  const [protected]

SAL_DLLPRIVATE BOOL PushButton::IsSymbol (  )  const [inline, protected]

SAL_DLLPRIVATE BOOL PushButton::IsImage (  )  const [inline, protected]

Definition at line 138 of file button.hxx.

References Button::HasImage().

Referenced by CalcMinimumSize().

SAL_DLLPRIVATE PushButton& PushButton::operator= ( const PushButton  )  [protected]

void PushButton::ImplInit ( Window pParent,
WinBits  nStyle 
) [protected]

void PushButton::ImplSetDefButton ( BOOL  bSet  ) 

void PushButton::ImplDrawPushButtonFrame ( Window pDev,
Rectangle &  rRect,
USHORT  nStyle 
) [static]

BOOL PushButton::ImplHitTestPushButton ( Window pDev,
const Point &  rPos 
) [static]

BOOL PushButton::ImplIsDefButton (  )  const

void PushButton::FillLayoutData (  )  const [protected, virtual]

Reimplemented from Control.

Definition at line 1683 of file button.cxx.

References ImplDrawPushButton(), and Control::mpLayoutData.

void PushButton::MouseButtonDown ( const MouseEvent rMEvt  )  [virtual]

void PushButton::Tracking ( const TrackingEvent rTEvt  )  [virtual]

void PushButton::KeyInput ( const KeyEvent rKEvt  )  [virtual]

void PushButton::KeyUp ( const KeyEvent rKEvt  )  [virtual]

void PushButton::Paint ( const Rectangle &  rRect  )  [virtual]

Reimplemented from Window.

Definition at line 1691 of file button.cxx.

References ImplDrawPushButton().

void PushButton::Draw ( OutputDevice pDev,
const Point &  rPos,
const Size &  rSize,
ULONG  nFlags 
) [virtual]

void PushButton::Resize (  )  [virtual]

Reimplemented from Control.

Definition at line 1744 of file button.cxx.

References Window::Invalidate(), and Control::Resize().

void PushButton::GetFocus (  )  [virtual]

void PushButton::LoseFocus (  )  [virtual]

Reimplemented from Control.

Definition at line 1761 of file button.cxx.

References EndSelection(), Window::HideFocus(), and Control::LoseFocus().

void PushButton::StateChanged ( StateChangedType  nType  )  [virtual]

void PushButton::DataChanged ( const DataChangedEvent rDCEvt  )  [virtual]

long PushButton::PreNotify ( NotifyEvent rNEvt  )  [virtual]

void PushButton::UserDraw ( const UserDrawEvent rUDEvt  )  [virtual]

Definition at line 1244 of file button.cxx.

Referenced by ImplDrawPushButtonContent().

void PushButton::Toggle (  )  [virtual]

Definition at line 1903 of file button.cxx.

References Control::ImplCallEventListenersAndHandler(), maToggleHdl, and VCLEVENT_PUSHBUTTON_TOGGLE.

Referenced by KeyUp(), and SetState().

void PushButton::SetSymbol ( SymbolType  eSymbol  ) 

SymbolType PushButton::GetSymbol (  )  const [inline]

Definition at line 180 of file button.hxx.

Referenced by ImplDrawPushButton(), and PreNotify().

void PushButton::SetSymbolAlign ( SymbolAlign  eAlign  ) 

Definition at line 1920 of file button.cxx.

References Button::ImplSetSymbolAlign().

Referenced by MoreButton::ImplInit().

SymbolAlign PushButton::GetSymbolAlign (  )  const

Definition at line 1926 of file button.cxx.

References Button::ImplGetSymbolAlign().

void PushButton::SetDropDown ( USHORT  nStyle  ) 

Definition at line 1933 of file button.cxx.

References mnDDStyle, STATE_CHANGE_DATA, and StateChanged().

USHORT PushButton::GetDropDown (  )  const [inline]

Definition at line 185 of file button.hxx.

void PushButton::SetState ( TriState  eState  ) 

TriState PushButton::GetState (  )  const [inline]

Reimplemented in MoreButton.

Definition at line 188 of file button.hxx.

Referenced by IsChecked(), and CheckBox::SaveValue().

void PushButton::Check ( BOOL  bCheck = TRUE  )  [inline]

Definition at line 208 of file button.hxx.

References SetState(), STATE_CHECK, and STATE_NOCHECK.

Referenced by KeyUp(), and Tracking().

BOOL PushButton::IsChecked (  )  const [inline]

Definition at line 213 of file button.hxx.

References GetState(), and STATE_CHECK.

Referenced by Draw(), ImplDrawPushButton(), KeyUp(), RadioButton::SaveValue(), and Tracking().

void PushButton::SetPressed ( BOOL  bPressed  ) 

BOOL PushButton::IsPressed (  )  const [inline]

Definition at line 194 of file button.hxx.

void PushButton::EndSelection (  ) 

void PushButton::SaveValue (  )  [inline]

Definition at line 198 of file button.hxx.

TriState PushButton::GetSavedValue (  )  const [inline]

Definition at line 199 of file button.hxx.

Size PushButton::CalcMinimumSize ( long  nMaxWidth = 0  )  const

Size PushButton::GetOptimalSize ( WindowSizeType  eType  )  const [virtual]

Reimplemented from Control.

Definition at line 2022 of file button.cxx.

References CalcMinimumSize(), Control::GetOptimalSize(), and WINDOWSIZE_MINIMUM.

void PushButton::SetToggleHdl ( const Link &  rLink  )  [inline]

Definition at line 204 of file button.hxx.

const Link& PushButton::GetToggleHdl (  )  const [inline]

Definition at line 205 of file button.hxx.


Member Data Documentation

Definition at line 121 of file button.hxx.

Referenced by ImplDrawPushButtonContent(), ImplInitPushButtonData(), and SetSymbol().

Definition at line 122 of file button.hxx.

Referenced by CheckBox::GetState(), ImplInitPushButtonData(), and SetState().

USHORT PushButton::mnDDStyle [protected]

BOOL PushButton::mbPressed [protected]

Definition at line 125 of file button.hxx.

Referenced by EndSelection(), ImplDrawPushButton(), ImplInitPushButtonData(), and SetPressed().

BOOL PushButton::mbInUserDraw [protected]

Definition at line 126 of file button.hxx.

Referenced by ImplInitPushButtonData().

Link PushButton::maToggleHdl [protected]


The documentation for this class was generated from the following files:

Generated on Thu Apr 29 14:01:10 2010 for ooo-build Module vcl (ooo/OOO320_m15) by  doxygen 1.5.6