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

#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, const Color &rBackgroundColor) 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
 

Static Public Member Functions

static void drawPolyPolygon (SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolyPolygon &i_rPolyPolygon, double i_fTransparency)
 
static void drawPolyLine (SalGraphics &rGraphics, const basegfx::B2DHomMatrix &rObjectToDevice, const basegfx::B2DPolygon &i_rPolygon, double i_fTransparency, double i_fLineWidth, const std::vector< double > *i_pStroke, basegfx::B2DLineJoin i_eLineJoin, css::drawing::LineCap i_eLineCap, double i_fMiterMinimumAngle, bool bPixelSnapHairline)
 
static void drawBitmap (SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap)
 
static void drawBitmap (SalGraphics &rGraphics, const SalTwoRect &rPosAry, const SalBitmap &rSalBitmap, const SalBitmap &rTransparentBitmap)
 
static void implDrawGradient (SalGraphics &rGraphics, const basegfx::B2DPolyPolygon &rPolyPolygon, const SalGradient &rGradient)
 

Private Member Functions

bool resolveDefinition (ControlType eType, ControlPart ePart, ControlState eState, const ImplControlValue &rValue, tools::Long nX, tools::Long nY, tools::Long nWidth, tools::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

void vcl::FileDefinitionWidgetDraw::drawBitmap ( SalGraphics rGraphics,
const SalTwoRect rPosAry,
const SalBitmap rSalBitmap 
)
static

Definition at line 231 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawBitmap().

void vcl::FileDefinitionWidgetDraw::drawBitmap ( SalGraphics rGraphics,
const SalTwoRect rPosAry,
const SalBitmap rSalBitmap,
const SalBitmap rTransparentBitmap 
)
static

Definition at line 237 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawBitmap().

bool vcl::FileDefinitionWidgetDraw::drawNativeControl ( ControlType  eType,
ControlPart  ePart,
const tools::Rectangle rBoundingControlRegion,
ControlState  eState,
const ImplControlValue aValue,
const OUString &  aCaptions,
const Color rBackgroundColor 
)
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.).
[in]rBackgroundColorBackground color for the control (may be COL_AUTO)
Returns
true, if the control could be drawn.

Reimplemented from vcl::WidgetDrawInterface.

Definition at line 586 of file FileDefinitionWidgetDraw.cxx.

References Button, Checkbox, Combobox, Editbox, EditboxNoBorder, Fixedline, Frame, SalGraphics::getAntiAlias(), 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::setAntiAlias(), Slider, Spinbox, SpinButtons, TabBody, TabHeader, TabItem, TabPane, Toolbar, Tooltip, tools::Rectangle::Top(), TrackHorzArea, TrackHorzLeft, TrackHorzRight, TrackVertArea, TrackVertLower, TrackVertUpper, and WindowBackground.

void vcl::FileDefinitionWidgetDraw::drawPolyLine ( SalGraphics rGraphics,
const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolygon i_rPolygon,
double  i_fTransparency,
double  i_fLineWidth,
const std::vector< double > *  i_pStroke,
basegfx::B2DLineJoin  i_eLineJoin,
css::drawing::LineCap  i_eLineCap,
double  i_fMiterMinimumAngle,
bool  bPixelSnapHairline 
)
static

Definition at line 221 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawPolyLine().

void vcl::FileDefinitionWidgetDraw::drawPolyPolygon ( SalGraphics rGraphics,
const basegfx::B2DHomMatrix rObjectToDevice,
const basegfx::B2DPolyPolygon i_rPolyPolygon,
double  i_fTransparency 
)
static

Definition at line 213 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::drawPolyPolygon().

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 785 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, Point, 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 206 of file FileDefinitionWidgetDraw.cxx.

void vcl::FileDefinitionWidgetDraw::implDrawGradient ( SalGraphics rGraphics,
const basegfx::B2DPolyPolygon rPolyPolygon,
const SalGradient rGradient 
)
static

Definition at line 244 of file FileDefinitionWidgetDraw.cxx.

References SalGraphics::implDrawGradient().

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 145 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,
tools::Long  nX,
tools::Long  nY,
tools::Long  nWidth,
tools::Long  nHeight 
)
private

Definition at line 561 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 1011 of file FileDefinitionWidgetDraw.cxx.

References FAMILY_SWISS, StyleSettings::GetFloatTitleHeight(), AllSettings::GetStyleSettings(), StyleSettings::GetTitleHeight(), m_pWidgetDefinition, StyleSettings::SetActionButtonPressedRolloverTextColor(), StyleSettings::SetActionButtonRolloverTextColor(), StyleSettings::SetActionButtonTextColor(), StyleSettings::SetActiveBorderColor(), StyleSettings::SetActiveColor(), StyleSettings::SetActiveTabColor(), StyleSettings::SetActiveTextColor(), StyleSettings::SetAppFont(), StyleSettings::SetButtonPressedRolloverTextColor(), StyleSettings::SetButtonRolloverTextColor(), StyleSettings::SetButtonTextColor(), vcl::Font::SetCharSet(), StyleSettings::SetCheckedColor(), StyleSettings::SetDarkShadowColor(), StyleSettings::SetDeactiveBorderColor(), StyleSettings::SetDeactiveColor(), StyleSettings::SetDeactiveTextColor(), StyleSettings::SetDefaultActionButtonPressedRolloverTextColor(), StyleSettings::SetDefaultActionButtonRolloverTextColor(), StyleSettings::SetDefaultActionButtonTextColor(), StyleSettings::SetDefaultButtonPressedRolloverTextColor(), StyleSettings::SetDefaultButtonRolloverTextColor(), StyleSettings::SetDefaultButtonTextColor(), StyleSettings::SetDialogColor(), StyleSettings::SetDialogTextColor(), StyleSettings::SetDisableColor(), StyleSettings::SetFaceColor(), vcl::Font::SetFamilyName(), StyleSettings::SetFieldColor(), StyleSettings::SetFieldFont(), StyleSettings::SetFieldRolloverTextColor(), StyleSettings::SetFieldTextColor(), StyleSettings::SetFlatButtonPressedRolloverTextColor(), StyleSettings::SetFlatButtonRolloverTextColor(), StyleSettings::SetFlatButtonTextColor(), 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: