#include <button.hxx>


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 PushButton & | operator= (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 |
Definition at line 118 of file button.hxx.
| SAL_DLLPRIVATE PushButton::PushButton | ( | const PushButton & | ) | [protected] |
| PushButton::PushButton | ( | WindowType | nType | ) | [protected] |
| PushButton::PushButton | ( | Window * | pParent, | |
| const ResId & | rResId | |||
| ) |
Definition at line 1512 of file button.cxx.
References ImplInit(), ImplInitPushButtonData(), Window::ImplInitRes(), Window::ImplLoadRes(), Window::Show(), and WB_HIDE.
| PushButton::~PushButton | ( | ) |
Definition at line 1527 of file button.cxx.
| void PushButton::ImplInitPushButtonData | ( | ) | [protected] |
Definition at line 807 of file button.cxx.
References mbInUserDraw, mbPressed, WindowImpl::mbPushButton, meSaveValue, meState, meSymbol, mnDDStyle, Window::mpWindowImpl, STATE_NOCHECK, and SYMBOL_NOSYMBOL.
Referenced by PushButton().
Definition at line 834 of file button.cxx.
References Window::GetType(), WB_BOTTOM, WB_GROUP, WB_NOGROUP, WB_NOTABSTOP, WB_TABSTOP, WB_TOP, WB_VCENTER, WINDOW_CANCELBUTTON, WINDOW_HELPBUTTON, WINDOW_OKBUTTON, and WINDOW_PUSHBUTTON.
Referenced by ImplInit(), and StateChanged().
| void PushButton::ImplInitSettings | ( | BOOL | bFont, | |
| BOOL | bForeground, | |||
| BOOL | bBackground | |||
| ) | [protected] |
Definition at line 857 of file button.cxx.
References CTRL_PUSHBUTTON, Window::EnableChildTransparentMode(), StyleSettings::GetButtonTextColor(), Window::GetControlFont(), Window::GetControlForeground(), StyleSettings::GetPushButtonFont(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), ImplGetSVData(), Window::IsControlFont(), Window::IsControlForeground(), Window::IsNativeControlSupported(), ImplSVData::maNWFData, ImplSVNWFData::mbNoFocusRects, WindowImpl::mbUseNativeFocus, Font::Merge(), Window::mpWindowImpl, PARENTCLIPMODE_NOCLIP, PART_ENTIRE_CONTROL, OutputDevice::SetBackground(), Window::SetPaintTransparent(), Window::SetParentClipMode(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), and Window::SetZoomedPointFont().
Referenced by DataChanged(), ImplInit(), and StateChanged().
| void PushButton::ImplDrawPushButtonContent | ( | OutputDevice * | pDev, | |
| ULONG | nDrawFlags, | |||
| const Rectangle & | rRect, | |||
| bool | bLayout | |||
| ) | [protected] |
Definition at line 1142 of file button.cxx.
References BUTTON_DRAW_NOTEXT, DecorationView::DrawSymbol(), StyleSettings::GetButtonRolloverTextColor(), StyleSettings::GetButtonTextColor(), Window::GetControlForeground(), OutputDevice::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), Window::GetText(), OutputDevice::GetTextHeight(), Window::ImplCalcSymbolRect(), Button::ImplDrawAlignedImage(), ImplDrawBtnDropDownArrow(), Button::ImplGetButtonState(), ImplGetTextStyle(), OutputDevice::IntersectClipRegion(), Window::IsControlForeground(), Window::IsEnabled(), IsSymbol(), meSymbol, mnDDStyle, OutputDevice::Pop(), OutputDevice::Push(), PUSH_CLIPREGION, PUSHBUTTON_DROPDOWN_MENUBUTTON, PUSHBUTTON_DROPDOWN_TOOLBOX, OutputDevice::SetTextColor(), SYMBOL_DRAW_DISABLE, SYMBOL_SPIN_DOWN, UserDraw(), WINDOW_DRAW_MONO, WINDOW_DRAW_NODISABLE, and WINDOW_DRAW_ROLLOVER.
Referenced by Draw(), and ImplDrawPushButton().
| void PushButton::ImplDrawPushButton | ( | bool | bLayout = false |
) | [protected] |
Definition at line 1250 of file button.cxx.
References BUTTON_DRAW_DEFAULT, BUTTON_DRAW_PRESSED, CTRL_COMBOBOX, CTRL_LISTBOX, CTRL_PUSHBUTTON, CTRL_STATE_DEFAULT, CTRL_STATE_ENABLED, CTRL_STATE_FOCUSED, CTRL_STATE_PRESSED, CTRL_STATE_ROLLOVER, Window::DrawNativeControl(), OutputDevice::GetOutputSizePixel(), Window::GetParent(), Window::GetPointerPosPixel(), Application::GetSettings(), Window::GetStyle(), GetSymbol(), Window::GetText(), Window::GetType(), HAS_BACKGROUND_TEXTURE, Window::HasFocus(), Window::HideFocus(), ImplDrawPushButtonContent(), ImplDrawPushButtonFrame(), Button::ImplGetButtonState(), Button::ImplGetFocusRect(), Edit::ImplUseNativeBorder(), IsChecked(), Window::IsEnabled(), Window::IsMouseOver(), Window::IsNativeControlSupported(), IsSymbol(), OutputDevice::LogicToPixel(), MAP_POINT, mbPressed, PART_BUTTON_DOWN, PART_ENTIRE_CONTROL, Window::ShowFocus(), SYMBOL_SPIN_DOWN, WB_BEVELBUTTON, WB_FLATBUTTON, WINDOW_COMBOBOX, WINDOW_CURRENCYBOX, WINDOW_DATEBOX, WINDOW_DRAW_ROLLOVER, WINDOW_LISTBOX, WINDOW_LONGCURRENCYBOX, WINDOW_METRICBOX, WINDOW_MULTILISTBOX, WINDOW_NUMERICBOX, WINDOW_PATTERNBOX, WINDOW_TIMEBOX, and WINDOW_TREELISTBOX.
Referenced by EndSelection(), FillLayoutData(), KeyInput(), KeyUp(), MouseButtonDown(), Paint(), and Tracking().
| USHORT PushButton::ImplGetTextStyle | ( | ULONG | nDrawFlags | ) | const [protected] |
Definition at line 1077 of file button.cxx.
References StyleSettings::GetOptions(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::IsEnabled(), STYLE_OPTION_MONO, TEXT_DRAW_BOTTOM, TEXT_DRAW_CENTER, TEXT_DRAW_DISABLE, TEXT_DRAW_ENDELLIPSIS, TEXT_DRAW_LEFT, TEXT_DRAW_MNEMONIC, TEXT_DRAW_MONO, TEXT_DRAW_MULTILINE, TEXT_DRAW_RIGHT, TEXT_DRAW_TOP, TEXT_DRAW_VCENTER, TEXT_DRAW_WORDBREAK, WB_BOTTOM, WB_LEFT, WB_NOLABEL, WB_RIGHT, WB_TOP, WB_WORDBREAK, WINDOW_DRAW_MONO, and WINDOW_DRAW_NODISABLE.
Referenced by CalcMinimumSize(), and ImplDrawPushButtonContent().
| SAL_DLLPRIVATE BOOL PushButton::IsSymbol | ( | ) | const [inline, protected] |
Definition at line 137 of file button.hxx.
References SYMBOL_IMAGE, and SYMBOL_NOSYMBOL.
Referenced by CalcMinimumSize(), ImplDrawPushButton(), ImplDrawPushButtonContent(), and PreNotify().
| 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] |
Reimplemented in OKButton, CancelButton, HelpButton, MenuButton, and MoreButton.
Definition at line 821 of file button.cxx.
References BUTTON_DRAW_NOLIGHTBORDER, Window::GetWindow(), Button::ImplGetButtonState(), Window::ImplInit(), ImplInitSettings(), ImplInitStyle(), WB_NOLIGHTBORDER, and WINDOW_LASTCHILD.
Referenced by MoreButton::ImplInit(), MenuButton::ImplInit(), HelpButton::ImplInit(), CancelButton::ImplInit(), OKButton::ImplInit(), and PushButton().
| void PushButton::ImplSetDefButton | ( | BOOL | bSet | ) |
Definition at line 1425 of file button.cxx.
References BUTTON_DRAW_DEFAULT, CTRL_PUSHBUTTON, CTRL_STATE_DEFAULT, CTRL_STATE_ENABLED, Region::GetBoundRect(), Window::GetNativeControlRegion(), Window::GetPosPixel(), Window::GetSizePixel(), Button::ImplGetButtonState(), Window::Invalidate(), Window::IsNativeControlSupported(), PART_ENTIRE_CONTROL, Window::SetPosSizePixel(), and WINDOW_POSSIZE_ALL.
Referenced by ImplDlgCtrlUpdateDefButton(), and StateChanged().
| void PushButton::ImplDrawPushButtonFrame | ( | Window * | pDev, | |
| Rectangle & | rRect, | |||
| USHORT | nStyle | |||
| ) | [static] |
Definition at line 905 of file button.cxx.
References BUTTON_DRAW_CHECKED, BUTTON_DRAW_DEFAULT, BUTTON_DRAW_MONO, BUTTON_DRAW_PRESSED, DecorationView::DrawButton(), OutputDevice::DrawLine(), OutputDevice::DrawPixel(), OutputDevice::DrawRect(), StyleSettings::GetCheckedColor(), Window::GetControlBackground(), StyleSettings::GetDarkShadowColor(), StyleSettings::GetFaceColor(), StyleSettings::GetLightColor(), StyleSettings::GetOptions(), OutputDevice::GetOutDevType(), StyleSettings::GetPushButtonStyle(), OutputDevice::GetSettings(), StyleSettings::GetShadowColor(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::IsControlBackground(), OUTDEV_PRINTER, StyleSettings::Set3DColors(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), AllSettings::SetStyleSettings(), STYLE_OPTION_MONO, STYLE_PUSHBUTTON_MAC, STYLE_PUSHBUTTON_STYLE, WB_RECTSTYLE, and WB_SMALLSTYLE.
Referenced by ImplDrawPushButton().
| BOOL PushButton::ImplHitTestPushButton | ( | Window * | pDev, | |
| const Point & | rPos | |||
| ) | [static] |
Definition at line 1052 of file button.cxx.
References OutputDevice::GetOutputSizePixel(), StyleSettings::GetPushButtonStyle(), OutputDevice::GetSettings(), Window::GetStyle(), AllSettings::GetStyleSettings(), STYLE_PUSHBUTTON_MAC, STYLE_PUSHBUTTON_STYLE, WB_RECTSTYLE, and WB_SMALLSTYLE.
Referenced by MenuButton::MouseButtonDown(), MouseButtonDown(), and Tracking().
| BOOL PushButton::ImplIsDefButton | ( | ) | const |
Definition at line 1488 of file button.cxx.
References BUTTON_DRAW_DEFAULT, and Button::ImplGetButtonState().
Referenced by ImplDlgCtrlUpdateDefButton(), and ImplGetDefaultButton().
| 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] |
Reimplemented from Window.
Reimplemented in ImplBtn, and MenuButton.
Definition at line 1533 of file button.cxx.
References BUTTON_DRAW_PRESSED, Button::Click(), MouseEvent::GetPosPixel(), Window::GetStyle(), ImplDrawPushButton(), Button::ImplGetButtonState(), ImplHitTestPushButton(), MouseEvent::IsLeft(), STARTTRACK_BUTTONREPEAT, Window::StartTracking(), WB_REPEAT, and WB_TOGGLE.
Referenced by MenuButton::MouseButtonDown().
| void PushButton::Tracking | ( | const TrackingEvent & | rTEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 1555 of file button.cxx.
References BUTTON_DRAW_PRESSED, Check(), Button::Click(), TrackingEvent::GetMouseEvent(), MouseEvent::GetPosPixel(), Window::GetStyle(), Window::GrabFocus(), ImplDrawPushButton(), Button::ImplGetButtonState(), ImplHitTestPushButton(), IsChecked(), TrackingEvent::IsTrackingCanceled(), TrackingEvent::IsTrackingEnded(), TrackingEvent::IsTrackingRepeat(), WB_NOPOINTERFOCUS, WB_REPEAT, and WB_TOGGLE.
| void PushButton::KeyInput | ( | const KeyEvent & | rKEvt | ) | [virtual] |
Reimplemented from Window.
Reimplemented in MenuButton.
Definition at line 1621 of file button.cxx.
References BUTTON_DRAW_PRESSED, Button::Click(), KeyCode::GetCode(), KeyEvent::GetKeyCode(), KeyCode::GetModifier(), Window::GetStyle(), ImplDrawPushButton(), Button::ImplGetButtonState(), KEY_ESCAPE, KEY_RETURN, KEY_SPACE, Window::KeyInput(), WB_REPEAT, and WB_TOGGLE.
Referenced by MenuButton::KeyInput().
| void PushButton::KeyUp | ( | const KeyEvent & | rKEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 1649 of file button.cxx.
References BUTTON_DRAW_PRESSED, Check(), Button::Click(), KeyCode::GetCode(), KeyEvent::GetKeyCode(), Window::GetStyle(), ImplDrawPushButton(), Button::ImplGetButtonState(), IsChecked(), KEY_RETURN, KEY_SPACE, Window::KeyUp(), Toggle(), WB_REPEAT, and WB_TOGGLE.
| 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] |
Reimplemented from Window.
Definition at line 1698 of file button.cxx.
References BUTTON_DRAW_CHECKED, BUTTON_DRAW_MONO, DecorationView::DrawButton(), Window::GetControlBackground(), Window::GetDrawPixelFont(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), OutputDevice::GetTextColor(), ImplDrawPushButtonContent(), IsChecked(), Window::IsControlBackground(), OutputDevice::LogicToPixel(), OutputDevice::Pop(), OutputDevice::Push(), StyleSettings::SetFaceColor(), OutputDevice::SetFont(), OutputDevice::SetMapMode(), OutputDevice::SetSettings(), AllSettings::SetStyleSettings(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), and WINDOW_DRAW_MONO.
| 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] |
Reimplemented from Control.
Definition at line 1752 of file button.cxx.
References Control::GetFocus(), OutputDevice::GetFont(), Button::ImplGetFocusRect(), Window::SetInputContext(), and Window::ShowFocus().
| 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] |
Reimplemented from Control.
Definition at line 1770 of file button.cxx.
References Window::GetPrevStyle(), Window::GetStyle(), Window::GetWindow(), ImplInitSettings(), ImplInitStyle(), ImplSetDefButton(), Window::Invalidate(), Window::IsReallyVisible(), Window::IsUpdateMode(), PUSHBUTTON_VIEW_STYLE, Window::SetStyle(), STATE_CHANGE_CONTROLBACKGROUND, STATE_CHANGE_CONTROLFONT, STATE_CHANGE_CONTROLFOREGROUND, STATE_CHANGE_DATA, STATE_CHANGE_ENABLE, STATE_CHANGE_IMAGE, STATE_CHANGE_STATE, STATE_CHANGE_STYLE, STATE_CHANGE_TEXT, STATE_CHANGE_UPDATEMODE, STATE_CHANGE_ZOOM, Control::StateChanged(), WB_DEFBUTTON, and WINDOW_PREV.
Referenced by SetDropDown(), SetPressed(), SetState(), and SetSymbol().
| void PushButton::DataChanged | ( | const DataChangedEvent & | rDCEvt | ) | [virtual] |
Reimplemented from Button.
Definition at line 1820 of file button.cxx.
References Button::DataChanged(), DATACHANGED_FONTS, DATACHANGED_FONTSUBSTITUTION, DATACHANGED_SETTINGS, DataChangedEvent::GetFlags(), DataChangedEvent::GetType(), ImplInitSettings(), Window::Invalidate(), and SETTINGS_STYLE.
| long PushButton::PreNotify | ( | NotifyEvent & | rNEvt | ) | [virtual] |
Reimplemented from Window.
Definition at line 1836 of file button.cxx.
References CTRL_COMBOBOX, CTRL_LISTBOX, CTRL_PUSHBUTTON, EVENT_MOUSEMOVE, NotifyEvent::GetMouseEvent(), OutputDevice::GetOutputSizePixel(), Window::GetParent(), GetSymbol(), Window::GetText(), Window::GetType(), NotifyEvent::GetType(), Window::GetWindow(), Window::Invalidate(), INVALIDATE_NOERASE, MouseEvent::IsEnterWindow(), MouseEvent::IsLeaveWindow(), Window::IsNativeControlSupported(), IsSymbol(), Window::OutputToScreenPixel(), PART_BUTTON_DOWN, PART_ENTIRE_CONTROL, Window::PreNotify(), Window::ScreenToOutputPixel(), SYMBOL_SPIN_DOWN, Window::Update(), WINDOW_BORDER, WINDOW_COMBOBOX, WINDOW_CURRENCYBOX, WINDOW_DATEBOX, WINDOW_LISTBOX, WINDOW_LONGCURRENCYBOX, WINDOW_METRICBOX, WINDOW_MULTILISTBOX, WINDOW_NUMERICBOX, WINDOW_PATTERNBOX, WINDOW_TIMEBOX, and WINDOW_TREELISTBOX.
| void PushButton::UserDraw | ( | const UserDrawEvent & | rUDEvt | ) | [virtual] |
| 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 | ) |
Definition at line 1910 of file button.cxx.
References meSymbol, STATE_CHANGE_DATA, and StateChanged().
Referenced by ImageButton::ImageButton(), ImplInitDropDownButton(), TabControl::ImplPosScrollBtns(), MenuBarWindow::MenuBarWindow(), MenuBarWindow::Resize(), and MoreButton::ShowState().
| SymbolType PushButton::GetSymbol | ( | ) | const [inline] |
| void PushButton::SetSymbolAlign | ( | SymbolAlign | eAlign | ) |
Definition at line 1920 of file button.cxx.
References Button::ImplSetSymbolAlign().
Referenced by MoreButton::ImplInit().
| SymbolAlign PushButton::GetSymbolAlign | ( | ) | const |
| 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 | ) |
Definition at line 1944 of file button.cxx.
References BUTTON_DRAW_CHECKED, BUTTON_DRAW_DONTKNOW, Button::ImplGetButtonState(), meState, STATE_CHANGE_STATE, STATE_CHECK, STATE_NOCHECK, StateChanged(), and Toggle().
Referenced by Check(), and ImageButton::ImageButton().
| 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 | ) |
Definition at line 1969 of file button.cxx.
References mbPressed, STATE_CHANGE_DATA, and StateChanged().
Referenced by IMPL_LINK(), MenuButton::ImplExecuteMenu(), ComboBox::Notify(), ListBox::PreNotify(), ListBox::ToggleDropDown(), and ComboBox::ToggleDropDown().
| BOOL PushButton::IsPressed | ( | ) | const [inline] |
Definition at line 194 of file button.hxx.
| void PushButton::EndSelection | ( | ) |
Definition at line 1980 of file button.cxx.
References BUTTON_DRAW_PRESSED, ENDTRACK_CANCEL, Window::EndTracking(), ImplDrawPushButton(), Button::ImplGetButtonState(), and mbPressed.
Referenced by MenuButton::ImplExecuteMenu(), and LoseFocus().
| 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 |
Definition at line 1993 of file button.cxx.
References BUTTON_DRAW_NOIMAGE, BUTTON_DRAW_NOTEXT, Window::CalcWindowSize(), Button::GetModeImage(), Image::GetSizePixel(), Window::GetText(), OutputDevice::GetTextRect(), Button::ImplGetButtonState(), ImplGetTextStyle(), IsImage(), Button::IsSmallSymbol(), and IsSymbol().
Referenced by GetOptimalSize().
| 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.
SymbolType PushButton::meSymbol [protected] |
Definition at line 121 of file button.hxx.
Referenced by ImplDrawPushButtonContent(), ImplInitPushButtonData(), and SetSymbol().
TriState PushButton::meState [protected] |
Definition at line 122 of file button.hxx.
Referenced by CheckBox::GetState(), ImplInitPushButtonData(), and SetState().
TriState PushButton::meSaveValue [protected] |
Definition at line 123 of file button.hxx.
Referenced by CheckBox::GetSavedValue(), ImplInitPushButtonData(), and CheckBox::SaveValue().
USHORT PushButton::mnDDStyle [protected] |
Definition at line 124 of file button.hxx.
Referenced by ImplDrawPushButtonContent(), MenuButton::ImplInitMenuButtonData(), ImplInitPushButtonData(), and SetDropDown().
BOOL PushButton::mbPressed [protected] |
Definition at line 125 of file button.hxx.
Referenced by EndSelection(), ImplDrawPushButton(), ImplInitPushButtonData(), and SetPressed().
BOOL PushButton::mbInUserDraw [protected] |
Link PushButton::maToggleHdl [protected] |
Definition at line 127 of file button.hxx.
Referenced by CheckBox::GetToggleHdl(), RadioButton::GetToggleHdl(), CheckBox::SetToggleHdl(), RadioButton::SetToggleHdl(), and Toggle().
1.5.6