#include <button.hxx>


Public Member Functions | |
| SAL_DLLPRIVATE USHORT | ImplGetButtonState () const |
| SAL_DLLPRIVATE USHORT & | ImplGetButtonState () |
| SAL_DLLPRIVATE USHORT | ImplGetTextStyle (XubString &rText, WinBits nWinStyle, ULONG nDrawFlags) |
| SAL_DLLPRIVATE void | ImplDrawAlignedImage (OutputDevice *pDev, Point &rPos, Size &rSize, BOOL bLayout, ULONG nImageSep, ULONG nDrawFlags, USHORT nTextStyle, Rectangle *pSymbolRect=NULL) |
| SAL_DLLPRIVATE void | ImplSetFocusRect (const Rectangle &rFocusRect) |
| SAL_DLLPRIVATE const Rectangle & | ImplGetFocusRect () const |
| SAL_DLLPRIVATE void | ImplSetSymbolAlign (SymbolAlign eAlign) |
| SAL_DLLPRIVATE SymbolAlign | ImplGetSymbolAlign () const |
| SAL_DLLPRIVATE void | ImplSetSmallSymbol (BOOL bSmall=TRUE) |
| Button (Window *pParent, WinBits nStyle=0) | |
| Button (Window *pParent, const ResId &rResId) | |
| ~Button () | |
| virtual void | Click () |
| virtual void | DataChanged (const DataChangedEvent &rDCEvt) |
| void | SetClickHdl (const Link &rLink) |
| const Link & | GetClickHdl () const |
| BOOL | SetModeImage (const Image &rImage, BmpColorMode eMode=BMP_COLOR_NORMAL) |
| const Image | GetModeImage (BmpColorMode eMode=BMP_COLOR_NORMAL) const |
| BOOL | HasImage () const |
| void | SetImageAlign (ImageAlign eAlign) |
| ImageAlign | GetImageAlign () const |
| BOOL | SetModeBitmap (const BitmapEx &rBitmap, BmpColorMode eMode=BMP_COLOR_NORMAL) |
| BitmapEx | GetModeBitmap (BmpColorMode eMode=BMP_COLOR_NORMAL) const |
| void | EnableImageDisplay (BOOL bEnable) |
| BOOL | IsImageDisplayEnabled () |
| void | EnableTextDisplay (BOOL bEnable) |
| BOOL | IsTextDisplayEnabled () |
| void | SetFocusRect (const Rectangle &rFocusRect) |
| const Rectangle & | GetFocusRect () const |
| void | SetSmallSymbol (bool bSmall=true) |
| bool | IsSmallSymbol () const |
Static Public Member Functions | |
| static XubString | GetStandardText (StandardButtonType eButton) |
| static XubString | GetStandardHelpText (StandardButtonType eButton) |
Protected Member Functions | |
| Button (WindowType nType) | |
Private Member Functions | |
| SAL_DLLPRIVATE | Button (const Button &) |
| SAL_DLLPRIVATE Button & | operator= (const Button &) |
Private Attributes | |
| ImplCommonButtonData * | mpButtonData |
| Link | maClickHdl |
Definition at line 48 of file button.hxx.
| SAL_DLLPRIVATE Button::Button | ( | const Button & | ) | [private] |
| Button::Button | ( | WindowType | nType | ) | [protected] |
| Button::Button | ( | Window * | pParent, | |
| const ResId & | rResId | |||
| ) |
Definition at line 139 of file button.cxx.
References Window::ImplInit(), Window::ImplInitRes(), Window::ImplLoadRes(), mpButtonData, Window::Show(), and WB_HIDE.
| Button::~Button | ( | ) |
| USHORT Button::ImplGetButtonState | ( | ) | const |
Definition at line 697 of file button.cxx.
References ImplCommonButtonData::mnButtonState, and mpButtonData.
Referenced by CheckBox::CalcMinimumSize(), RadioButton::CalcMinimumSize(), PushButton::CalcMinimumSize(), PushButton::EndSelection(), CheckBox::GetFocus(), CheckBox::ImplDraw(), RadioButton::ImplDraw(), ImplDrawAlignedImage(), CheckBox::ImplDrawCheckBoxState(), PushButton::ImplDrawPushButton(), PushButton::ImplDrawPushButtonContent(), RadioButton::ImplDrawRadioButtonState(), PushButton::ImplInit(), PushButton::ImplIsDefButton(), PushButton::ImplSetDefButton(), CheckBox::KeyInput(), RadioButton::KeyInput(), PushButton::KeyInput(), CheckBox::KeyUp(), RadioButton::KeyUp(), PushButton::KeyUp(), CheckBox::LoseFocus(), RadioButton::LoseFocus(), CheckBox::MouseButtonDown(), RadioButton::MouseButtonDown(), PushButton::MouseButtonDown(), PushButton::SetState(), CheckBox::Tracking(), RadioButton::Tracking(), and PushButton::Tracking().
| USHORT & Button::ImplGetButtonState | ( | ) |
Definition at line 691 of file button.cxx.
References ImplCommonButtonData::mnButtonState, and mpButtonData.
| USHORT Button::ImplGetTextStyle | ( | XubString & | rText, | |
| WinBits | nWinStyle, | |||
| ULONG | nDrawFlags | |||
| ) |
Definition at line 337 of file button.cxx.
References OutputDevice::GetNonMnemonicString(), StyleSettings::GetOptions(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), FixedText::ImplGetTextStyle(), Window::IsEnabled(), STYLE_OPTION_MONO, TEXT_DRAW_DISABLE, TEXT_DRAW_MNEMONIC, TEXT_DRAW_MONO, WB_DEFBUTTON, WINDOW_DRAW_MONO, WINDOW_DRAW_NODISABLE, and WINDOW_DRAW_NOMNEMONIC.
Referenced by CheckBox::ImplDraw(), and RadioButton::ImplDraw().
| void Button::ImplDrawAlignedImage | ( | OutputDevice * | pDev, | |
| Point & | rPos, | |||
| Size & | rSize, | |||
| BOOL | bLayout, | |||
| ULONG | nImageSep, | |||
| ULONG | nDrawFlags, | |||
| USHORT | nTextStyle, | |||
| Rectangle * | pSymbolRect = NULL | |||
| ) |
Definition at line 367 of file button.cxx.
References BUTTON_DRAW_NOIMAGE, BUTTON_DRAW_NOTEXT, Window::CalcZoom(), BitmapEx::Draw(), OutputDevice::DrawImage(), OutputDevice::DrawText(), StyleSettings::GetHighContrastMode(), OutputDevice::GetNonMnemonicString(), OutputDevice::GetOutDevType(), OutputDevice::GetSettings(), Image::GetSizePixel(), Window::GetStyle(), AllSettings::GetStyleSettings(), Window::GetText(), OutputDevice::GetTextHeight(), OutputDevice::GetTextRect(), HasImage(), IMAGE_DRAW_DISABLE, IMAGEALIGN_BOTTOM, IMAGEALIGN_BOTTOM_LEFT, IMAGEALIGN_BOTTOM_RIGHT, IMAGEALIGN_CENTER, IMAGEALIGN_LEFT, IMAGEALIGN_LEFT_BOTTOM, IMAGEALIGN_LEFT_TOP, IMAGEALIGN_RIGHT, IMAGEALIGN_RIGHT_BOTTOM, IMAGEALIGN_RIGHT_TOP, IMAGEALIGN_TOP, IMAGEALIGN_TOP_LEFT, IMAGEALIGN_TOP_RIGHT, Window::ImplCalcSymbolRect(), ImplGetButtonState(), ImplSetFocusRect(), Window::IsEnabled(), Window::IsZoom(), OutputDevice::LogicToPixel(), vcl::ControlLayoutData::m_aDisplayText, vcl::ControlLayoutData::m_aUnicodeBoundRects, ImplCommonButtonData::maImage, ImplCommonButtonData::maImageHC, MAP_100TH_MM, ImplCommonButtonData::mbSmallSymbol, ImplCommonButtonData::meImageAlign, ImplCommonButtonData::meSymbolAlign, ImplCommonButtonData::mpBitmapEx, ImplCommonButtonData::mpBitmapExHC, mpButtonData, Control::mpLayoutData, OUTDEV_PRINTER, OutputDevice::PixelToLogic(), SYMBOLALIGN_RIGHT, TEXT_DRAW_MNEMONIC, WB_BOTTOM, WB_CENTER, WB_RIGHT, WB_VCENTER, WINDOW_DRAW_NODISABLE, and WINDOW_DRAW_NOMNEMONIC.
Referenced by CheckBox::ImplDraw(), RadioButton::ImplDraw(), and PushButton::ImplDrawPushButtonContent().
| void Button::ImplSetFocusRect | ( | const Rectangle & | rFocusRect | ) |
Definition at line 663 of file button.cxx.
References OutputDevice::GetOutputSizePixel(), ImplCommonButtonData::maFocusRect, and mpButtonData.
Referenced by CheckBox::ImplDraw(), RadioButton::ImplDraw(), ImplDrawAlignedImage(), RadioButton::ImplDrawRadioButtonState(), and SetFocusRect().
| const Rectangle & Button::ImplGetFocusRect | ( | ) | const |
Definition at line 685 of file button.cxx.
References ImplCommonButtonData::maFocusRect, and mpButtonData.
Referenced by CheckBox::GetFocus(), RadioButton::GetFocus(), PushButton::GetFocus(), GetFocusRect(), CheckBox::ImplDrawCheckBox(), PushButton::ImplDrawPushButton(), RadioButton::ImplDrawRadioButton(), and RadioButton::ImplDrawRadioButtonState().
| void Button::ImplSetSymbolAlign | ( | SymbolAlign | eAlign | ) |
Definition at line 703 of file button.cxx.
References ImplCommonButtonData::meSymbolAlign, mpButtonData, STATE_CHANGE_DATA, and Control::StateChanged().
Referenced by PushButton::SetSymbolAlign().
| SymbolAlign Button::ImplGetSymbolAlign | ( | ) | const |
Definition at line 713 of file button.cxx.
References ImplCommonButtonData::meSymbolAlign, and mpButtonData.
Referenced by PushButton::GetSymbolAlign().
| void Button::ImplSetSmallSymbol | ( | BOOL | bSmall = TRUE |
) |
Definition at line 718 of file button.cxx.
References ImplCommonButtonData::mbSmallSymbol, and mpButtonData.
Referenced by MoreButton::ImplInit(), and SetSmallSymbol().
| void Button::Click | ( | ) | [virtual] |
Reimplemented in OKButton, CancelButton, HelpButton, and MoreButton.
Definition at line 161 of file button.cxx.
References Control::ImplCallEventListenersAndHandler(), maClickHdl, and VCLEVENT_BUTTON_CLICK.
Referenced by MoreButton::Click(), HelpButton::Click(), CancelButton::Click(), OKButton::Click(), Dialog::Close(), RadioButton::ImplCallClick(), CheckBox::ImplCheck(), PushButton::KeyInput(), PushButton::KeyUp(), PushButton::MouseButtonDown(), and PushButton::Tracking().
| void Button::DataChanged | ( | const DataChangedEvent & | rDCEvt | ) | [virtual] |
Reimplemented from Control.
Reimplemented in PushButton, RadioButton, and CheckBox.
Definition at line 754 of file button.cxx.
References Control::DataChanged(), DATACHANGED_SETTINGS, StyleSettings::GetCheckBoxStyle(), DataChangedEvent::GetFlags(), DataChangedEvent::GetOldSettings(), StyleSettings::GetRadioButtonStyle(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), DataChangedEvent::GetType(), StyleSettings::SetCheckBoxStyle(), StyleSettings::SetRadioButtonStyle(), Window::SetSettings(), AllSettings::SetStyleSettings(), and SETTINGS_IN_UPDATE_SETTINGS.
Referenced by CheckBox::DataChanged(), RadioButton::DataChanged(), and PushButton::DataChanged().
| void Button::SetClickHdl | ( | const Link & | rLink | ) | [inline] |
Definition at line 81 of file button.hxx.
Referenced by DbgDialog::DbgDialog(), ButtonDialog::ImplCreatePushButton(), TabControl::ImplPosScrollBtns(), and MenuBarWindow::MenuBarWindow().
| const Link& Button::GetClickHdl | ( | ) | const [inline] |
Definition at line 82 of file button.hxx.
Referenced by HelpButton::Click(), CancelButton::Click(), and OKButton::Click().
| XubString Button::GetStandardText | ( | StandardButtonType | eButton | ) | [static] |
Definition at line 168 of file button.cxx.
References BUTTON_COUNT, and ImplGetResMgr().
Referenced by ButtonDialog::AddButton(), Window::ImplCheckUIFont(), MoreButton::ImplInit(), HelpButton::ImplInit(), CancelButton::ImplInit(), OKButton::ImplInit(), and ReplaceJavaErrorMessages().
| XubString Button::GetStandardHelpText | ( | StandardButtonType | eButton | ) | [static] |
Definition at line 206 of file button.cxx.
Referenced by ButtonDialog::AddButton(), MoreButton::ImplInit(), HelpButton::ImplInit(), CancelButton::ImplInit(), and OKButton::ImplInit().
| BOOL Button::SetModeImage | ( | const Image & | rImage, | |
| BmpColorMode | eMode = BMP_COLOR_NORMAL | |||
| ) |
Definition at line 212 of file button.cxx.
References BMP_COLOR_HIGHCONTRAST, BMP_COLOR_NORMAL, ImplCommonButtonData::maImage, ImplCommonButtonData::maImageHC, ImplCommonButtonData::mpBitmapEx, ImplCommonButtonData::mpBitmapExHC, mpButtonData, STATE_CHANGE_DATA, and Control::StateChanged().
Referenced by ImageButton::ImageButton(), and SetModeBitmap().
| const Image Button::GetModeImage | ( | BmpColorMode | eMode = BMP_COLOR_NORMAL |
) | const |
Definition at line 245 of file button.cxx.
References BMP_COLOR_HIGHCONTRAST, BMP_COLOR_NORMAL, ImplCommonButtonData::maImage, ImplCommonButtonData::maImageHC, and mpButtonData.
Referenced by PushButton::CalcMinimumSize().
| BOOL Button::HasImage | ( | ) | const |
Definition at line 260 of file button.cxx.
References ImplCommonButtonData::maImage, and mpButtonData.
Referenced by CheckBox::ImplDraw(), RadioButton::ImplDraw(), ImplDrawAlignedImage(), and PushButton::IsImage().
| void Button::SetImageAlign | ( | ImageAlign | eAlign | ) |
Definition at line 266 of file button.cxx.
References ImplCommonButtonData::meImageAlign, mpButtonData, STATE_CHANGE_DATA, and Control::StateChanged().
| ImageAlign Button::GetImageAlign | ( | ) | const |
Definition at line 276 of file button.cxx.
References ImplCommonButtonData::meImageAlign, and mpButtonData.
| BOOL Button::SetModeBitmap | ( | const BitmapEx & | rBitmap, | |
| BmpColorMode | eMode = BMP_COLOR_NORMAL | |||
| ) |
Definition at line 282 of file button.cxx.
References BMP_COLOR_HIGHCONTRAST, BMP_COLOR_NORMAL, ImplCommonButtonData::mpBitmapEx, ImplCommonButtonData::mpBitmapExHC, mpButtonData, and SetModeImage().
| BitmapEx Button::GetModeBitmap | ( | BmpColorMode | eMode = BMP_COLOR_NORMAL |
) | const |
Definition at line 305 of file button.cxx.
References BMP_COLOR_HIGHCONTRAST, BMP_COLOR_NORMAL, ImplCommonButtonData::mpBitmapEx, ImplCommonButtonData::mpBitmapExHC, and mpButtonData.
| void Button::EnableImageDisplay | ( | BOOL | bEnable | ) |
Definition at line 724 of file button.cxx.
References BUTTON_DRAW_NOIMAGE, ImplCommonButtonData::mnButtonState, and mpButtonData.
| BOOL Button::IsImageDisplayEnabled | ( | ) |
Definition at line 733 of file button.cxx.
References BUTTON_DRAW_NOIMAGE, ImplCommonButtonData::mnButtonState, and mpButtonData.
| void Button::EnableTextDisplay | ( | BOOL | bEnable | ) |
Definition at line 739 of file button.cxx.
References BUTTON_DRAW_NOTEXT, ImplCommonButtonData::mnButtonState, and mpButtonData.
| BOOL Button::IsTextDisplayEnabled | ( | ) |
Definition at line 748 of file button.cxx.
References BUTTON_DRAW_NOTEXT, ImplCommonButtonData::mnButtonState, and mpButtonData.
| void Button::SetFocusRect | ( | const Rectangle & | rFocusRect | ) |
| const Rectangle & Button::GetFocusRect | ( | ) | const |
| void Button::SetSmallSymbol | ( | bool | bSmall = true |
) |
| bool Button::IsSmallSymbol | ( | ) | const |
Definition at line 800 of file button.cxx.
References ImplCommonButtonData::mbSmallSymbol, and mpButtonData.
Referenced by PushButton::CalcMinimumSize().
ImplCommonButtonData* Button::mpButtonData [private] |
Definition at line 51 of file button.hxx.
Referenced by Button(), EnableImageDisplay(), EnableTextDisplay(), GetImageAlign(), GetModeBitmap(), GetModeImage(), HasImage(), ImplDrawAlignedImage(), ImplGetButtonState(), ImplGetFocusRect(), ImplGetSymbolAlign(), ImplSetFocusRect(), ImplSetSmallSymbol(), ImplSetSymbolAlign(), IsImageDisplayEnabled(), IsSmallSymbol(), IsTextDisplayEnabled(), SetImageAlign(), SetModeBitmap(), SetModeImage(), and ~Button().
Link Button::maClickHdl [private] |
1.5.6