LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::FileDefinitionWidgetDraw Class Reference

#include <FileDefinitionWidgetDraw.hxx>

Inheritance diagram for vcl::FileDefinitionWidgetDraw:
[legend]
Collaboration diagram for vcl::FileDefinitionWidgetDraw:
[legend]

Public Member Functions

 FileDefinitionWidgetDraw (SalGraphics &rGraphics)
 
bool isActive () const
 
bool isNativeControlSupported (ControlType eType, ControlPart ePart) override
 Query the platform layer for native control support. More...
 
bool hitTestNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, const Point &aPos, bool &rIsInside) override
 Query if a position is inside the native widget part. More...
 
bool drawNativeControl (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaptions) override
 Draw the requested control. More...
 
bool getNativeControlRegion (ControlType eType, ControlPart ePart, const tools::Rectangle &rBoundingControlRegion, ControlState eState, const ImplControlValue &aValue, const OUString &aCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion) override
 Get the native control regions for the control part. More...
 
bool updateSettings (AllSettings &rSettings) override
 
- Public Member Functions inherited from vcl::WidgetDrawInterface
virtual ~WidgetDrawInterface () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

bool resolveDefinition (ControlType eType, ControlPart ePart, ControlState eState, const ImplControlValue &rValue, long nX, long nY, long nWidth, long nHeight)
 

Private Attributes

SalGraphicsm_rGraphics
 
bool m_bIsActive
 
std::shared_ptr< WidgetDefinitionm_pWidgetDefinition
 

Detailed Description

Definition at line 20 of file FileDefinitionWidgetDraw.hxx.

Constructor & Destructor Documentation

vcl::FileDefinitionWidgetDraw::FileDefinitionWidgetDraw ( SalGraphics rGraphics)

Member Function Documentation

bool vcl::FileDefinitionWidgetDraw::drawNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaptions 
)
overridevirtual

Draw the requested control.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding rectangle of the complete control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
Returns
true, if the control could be drawn.

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 471 of file FileDefinitionWidgetDraw.cxx.

References Button, Checkbox, Combobox, Editbox, EditboxNoBorder, Fixedline, Frame, SalGraphics::getAntiAliasB2DDraw(), tools::Rectangle::GetHeight(), ImplControlValue::getType(), tools::Rectangle::GetWidth(), IntroProgress, tools::Rectangle::Left(), Listbox, ListHeader, ListNet, ListNode, m_rGraphics, SpinbuttonValue::maLowerRect, SliderValue::maThumbRect, SpinbuttonValue::maUpperRect, Menubar, MenuPopup, SpinbuttonValue::mnLowerPart, SpinbuttonValue::mnLowerState, SliderValue::mnThumbState, SpinbuttonValue::mnUpperPart, SpinbuttonValue::mnUpperState, MultilineEditbox, Progress, Pushbutton, Radiobutton, resolveDefinition(), Scrollbar, SalGraphics::setAntiAliasB2DDraw(), Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, tools::Rectangle::Top(), TrackHorzArea, TrackHorzLeft, TrackHorzRight, TrackVertArea, TrackVertLower, TrackVertUpper, and WindowBackground.

bool vcl::FileDefinitionWidgetDraw::getNativeControlRegion ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaption,
tools::Rectangle rNativeBoundingRegion,
tools::Rectangle rNativeContentRegion 
)
overridevirtual

Get the native control regions for the control part.

If the return value is true, rNativeBoundingRegion contains the true bounding region covered by the control including any adornment, while rNativeContentRegion contains the area within the control that can be safely drawn into without drawing over the borders of the control.

Parameters
[in]eTypeType of the widget.
[in]ePartSpecification of the widget's part if it consists of more than one.
[in]rBoundingControlRegionThe bounding region of the control in VCL frame coordinates.
[in]eStateThe general state of the control (enabled, focused, etc.).
[in]aValueAddition control specific information.
[in]aCaptionA caption or title string (like button text etc.).
[out]rNativeBoundingRegionThe region covered by the control including any adornment.
[out]rNativeContentRegionThe region within the control that can be safely drawn into.
Returns
true, if the regions are filled.

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 669 of file FileDefinitionWidgetDraw.cxx.

References ButtonDown, ButtonLeft, ButtonRight, ButtonUp, Checkbox, Combobox, Editbox, EditboxNoBorder, Entire, tools::Rectangle::expand(), tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), Size::Height(), Listbox, m_pWidgetDefinition, MultilineEditbox, Radiobutton, Scrollbar, Slider, Spinbox, SubEdit, TabItem, ThumbHorz, ThumbVert, tools::Rectangle::TopLeft(), and Size::Width().

bool vcl::FileDefinitionWidgetDraw::hitTestNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
const Point aPos,
bool &  rIsInside 
)
overridevirtual

Query if a position is inside the native widget part.

Mainly used for scrollbars.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
[in]rBoundingControlRegionThe bounding Rectangle of the complete control in VCL frame coordinates.
[in]aPosThe position to check the hit.
[out]rIsInsidetrue, if aPos was inside the native widget.
Returns
true, if the query was successful.

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 176 of file FileDefinitionWidgetDraw.cxx.

bool vcl::FileDefinitionWidgetDraw::isActive ( ) const
inline

Definition at line 35 of file FileDefinitionWidgetDraw.hxx.

References m_bIsActive.

bool vcl::FileDefinitionWidgetDraw::isNativeControlSupported ( ControlType  eType,
ControlPart  ePart 
)
overridevirtual

Query the platform layer for native control support.

Parameters
[in]eTypeThe widget type.
[in]ePartThe part of the widget.
Returns
true if the platform supports native drawing of the widget type defined by part.

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 115 of file FileDefinitionWidgetDraw.cxx.

References AllButtons, Checkbox, Combobox, DrawBackgroundHorz, DrawBackgroundVert, Editbox, EditboxNoBorder, Fixedline, Frame, Generic, HasBackgroundTexture, IntroProgress, Listbox, ListHeader, ListNet, ListNode, Menubar, MenuPopup, MultilineEditbox, Progress, Pushbutton, Radiobutton, Scrollbar, Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, and WindowBackground.

bool vcl::FileDefinitionWidgetDraw::resolveDefinition ( ControlType  eType,
ControlPart  ePart,
ControlState  eState,
const ImplControlValue rValue,
long  nX,
long  nY,
long  nWidth,
long  nHeight 
)
private

Definition at line 447 of file FileDefinitionWidgetDraw.cxx.

References m_pWidgetDefinition, and m_rGraphics.

Referenced by drawNativeControl().

bool vcl::FileDefinitionWidgetDraw::updateSettings ( AllSettings rSettings)
overridevirtual

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 889 of file FileDefinitionWidgetDraw.cxx.

References FAMILY_SWISS, AllSettings::GetStyleSettings(), m_pWidgetDefinition, StyleSettings::SetActiveBorderColor(), StyleSettings::SetActiveColor(), StyleSettings::SetActiveTabColor(), StyleSettings::SetActiveTextColor(), StyleSettings::SetAppFont(), StyleSettings::SetButtonRolloverTextColor(), StyleSettings::SetButtonTextColor(), vcl::Font::SetCharSet(), StyleSettings::SetCheckedColor(), StyleSettings::SetDarkShadowColor(), StyleSettings::SetDeactiveBorderColor(), StyleSettings::SetDeactiveColor(), StyleSettings::SetDeactiveTextColor(), StyleSettings::SetDialogColor(), StyleSettings::SetDialogTextColor(), StyleSettings::SetDisableColor(), StyleSettings::SetFaceColor(), vcl::Font::SetFamilyName(), StyleSettings::SetFieldColor(), StyleSettings::SetFieldFont(), StyleSettings::SetFieldRolloverTextColor(), StyleSettings::SetFieldTextColor(), StyleSettings::SetFloatTitleFont(), StyleSettings::SetFloatTitleHeight(), StyleSettings::SetFontColor(), StyleSettings::SetGroupFont(), StyleSettings::SetGroupTextColor(), StyleSettings::SetHelpColor(), StyleSettings::SetHelpFont(), StyleSettings::SetHelpTextColor(), StyleSettings::SetHighlightColor(), StyleSettings::SetHighlightTextColor(), StyleSettings::SetIconFont(), StyleSettings::SetInactiveTabColor(), StyleSettings::SetLabelFont(), StyleSettings::SetLabelTextColor(), StyleSettings::SetLightBorderColor(), StyleSettings::SetLightColor(), StyleSettings::SetLinkColor(), StyleSettings::SetListBoxPreviewDefaultLogicSize(), StyleSettings::SetMenuBarColor(), StyleSettings::SetMenuBarHighlightTextColor(), StyleSettings::SetMenuBarRolloverColor(), StyleSettings::SetMenuBarRolloverTextColor(), StyleSettings::SetMenuBarTextColor(), StyleSettings::SetMenuBorderColor(), StyleSettings::SetMenuColor(), StyleSettings::SetMenuFont(), StyleSettings::SetMenuHighlightColor(), StyleSettings::SetMenuHighlightTextColor(), StyleSettings::SetMenuTextColor(), StyleSettings::SetMonoColor(), StyleSettings::SetPushButtonFont(), StyleSettings::SetRadioCheckFont(), StyleSettings::SetRadioCheckTextColor(), StyleSettings::SetShadowColor(), AllSettings::SetStyleSettings(), StyleSettings::SetTabFont(), StyleSettings::SetTabHighlightTextColor(), StyleSettings::SetTabRolloverTextColor(), StyleSettings::SetTabTextColor(), StyleSettings::SetTitleFont(), StyleSettings::SetTitleHeight(), StyleSettings::SetToolFont(), StyleSettings::SetToolTextColor(), StyleSettings::SetVisitedLinkColor(), vcl::Font::SetWeight(), StyleSettings::SetWindowColor(), StyleSettings::SetWindowTextColor(), StyleSettings::SetWorkspaceColor(), WEIGHT_BOLD, and WEIGHT_NORMAL.

Member Data Documentation

bool vcl::FileDefinitionWidgetDraw::m_bIsActive
private

Definition at line 24 of file FileDefinitionWidgetDraw.hxx.

Referenced by FileDefinitionWidgetDraw(), and isActive().

std::shared_ptr<WidgetDefinition> vcl::FileDefinitionWidgetDraw::m_pWidgetDefinition
private
SalGraphics& vcl::FileDefinitionWidgetDraw::m_rGraphics
private

Definition at line 23 of file FileDefinitionWidgetDraw.hxx.

Referenced by drawNativeControl(), and resolveDefinition().


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