LibreOffice Module vcl (master) 1
|
#include <decoview.hxx>
Public Member Functions | |
DecorationView (OutputDevice *pOutDev) | |
void | DrawSymbol (const tools::Rectangle &rRect, SymbolType eType, const Color &rColor, DrawSymbolFlags nStyle=DrawSymbolFlags::NONE) |
void | DrawFrame (const tools::Rectangle &rRect, const Color &rLeftTopColor, const Color &rRightBottomColor) |
void | DrawHighlightFrame (const tools::Rectangle &rRect, DrawHighlightFrameStyle nStyle) |
tools::Rectangle | DrawFrame (const tools::Rectangle &rRect, DrawFrameStyle nStyle=DrawFrameStyle::Out, DrawFrameFlags nFlags=DrawFrameFlags::NONE) |
tools::Rectangle | DrawButton (const tools::Rectangle &rRect, DrawButtonFlags nStyle) |
void | DrawSeparator (const Point &rStart, const Point &rStop, bool bVertical=true) |
void | DrawHandle (const tools::Rectangle &rRectangle) |
Private Attributes | |
VclPtr< OutputDevice > | mpOutDev |
Definition at line 72 of file decoview.hxx.
DecorationView::DecorationView | ( | OutputDevice * | pOutDev | ) |
Definition at line 764 of file decoview.cxx.
tools::Rectangle DecorationView::DrawButton | ( | const tools::Rectangle & | rRect, |
DrawButtonFlags | nStyle | ||
) |
Definition at line 894 of file decoview.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), Checked, OutputDevice::EnableMapMode(), OutputDevice::GetFillColor(), tools::Rectangle::GetHeight(), OutputDevice::GetLineColor(), tools::Rectangle::GetWidth(), tools::Rectangle::IsEmpty(), OutputDevice::IsMapModeEnabled(), OutputDevice::LogicToPixel(), mpOutDev, NoLeftLightBorder, NoLightBorder, OutputDevice::PixelToLogic(), Pressed, OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by PushButton::Draw(), SpinField::Draw(), ScrollBar::ImplDraw(), Slider::ImplDraw(), ImplDrawBrdWinSymbolButton(), PushButton::ImplDrawPushButtonFrame(), ImplDrawUpDownButtons(), and SpinField::Paint().
void DecorationView::DrawFrame | ( | const tools::Rectangle & | rRect, |
const Color & | rLeftTopColor, | ||
const Color & | rRightBottomColor | ||
) |
Definition at line 811 of file decoview.cxx.
References OutputDevice::EnableMapMode(), OutputDevice::GetLineColor(), OutputDevice::IsMapModeEnabled(), OutputDevice::LogicToPixel(), mpOutDev, and OutputDevice::SetLineColor().
Referenced by VclScrolledWindow::CalcBorderWidth(), FixedBitmap::Draw(), VclMultiLineEdit::Draw(), DrawHighlightFrame(), ImplSmallBorderWindowView::DrawWindow(), Control::ImplDrawFrame(), StatusBar::ImplDrawProgress(), RadioButton::ImplDrawRadioButtonState(), Menu::ImplPaint(), ImplStdBorderWindowView::Init(), ImplSmallBorderWindowView::Init(), vcl::PrintDialog::ShowNupOrderWindow::Paint(), VclScrolledWindow::Paint(), and vcl::PrintDialog::PrintPreviewWindow::Paint().
tools::Rectangle DecorationView::DrawFrame | ( | const tools::Rectangle & | rRect, |
DrawFrameStyle | nStyle = DrawFrameStyle::Out , |
||
DrawFrameFlags | nFlags = DrawFrameFlags::NONE |
||
) |
Definition at line 868 of file decoview.cxx.
References OutputDevice::EnableMapMode(), OutputDevice::GetFillColor(), OutputDevice::GetLineColor(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), tools::Rectangle::IsEmpty(), OutputDevice::IsMapModeEnabled(), OutputDevice::LogicToPixel(), mpOutDev, NoDraw, OutputDevice::PixelToLogic(), OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
void DecorationView::DrawHandle | ( | const tools::Rectangle & | rRectangle | ) |
Definition at line 991 of file decoview.cxx.
References OutputDevice::DrawEllipse(), StyleSettings::GetDarkShadowColor(), OutputDevice::GetSettings(), tools::Rectangle::GetSize(), AllSettings::GetStyleSettings(), Size::Height(), i, mpOutDev, round, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and Size::Width().
void DecorationView::DrawHighlightFrame | ( | const tools::Rectangle & | rRect, |
DrawHighlightFrameStyle | nStyle | ||
) |
Definition at line 824 of file decoview.cxx.
References COL_BLACK(), COL_WHITE(), Color::DecreaseLuminance(), DrawFrame(), OutputDevice::GetBackground(), Wallpaper::GetColor(), Color::GetColorError(), StyleSettings::GetFaceColor(), StyleSettings::GetLightColor(), StyleSettings::GetOptions(), OutputDevice::GetOutDevType(), OutputDevice::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), In, Color::IncreaseLuminance(), Wallpaper::IsBitmap(), Wallpaper::IsGradient(), Mono, mpOutDev, and OUTDEV_PRINTER.
Referenced by SvxIconChoiceCtrl_Impl::DrawHighlightFrame().
void DecorationView::DrawSeparator | ( | const Point & | rStart, |
const Point & | rStop, | ||
bool | bVertical = true |
||
) |
Definition at line 965 of file decoview.cxx.
References COL_BLACK(), OutputDevice::DrawLine(), OutputDevice::DrawNativeControl(), Fixedline, StyleSettings::GetOptions(), vcl::Window::GetOutDev(), OutputDevice::GetOwnerWindow(), StyleSettings::GetSeparatorColor(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), vcl::Window::IsNativeControlSupported(), vcl::LINECOLOR, Mono, mpOutDev, NONE, OutputDevice::Pop(), OutputDevice::Push(), SeparatorHorz, SeparatorVert, and OutputDevice::SetLineColor().
Referenced by FixedLine::ImplDraw(), StatusBar::ImplDrawItem(), PushButton::ImplDrawPushButtonContent(), and vcl::PrintDialog::PrintPreviewWindow::Paint().
void DecorationView::DrawSymbol | ( | const tools::Rectangle & | rRect, |
SymbolType | eType, | ||
const Color & | rColor, | ||
DrawSymbolFlags | nStyle = DrawSymbolFlags::NONE |
||
) |
Definition at line 768 of file decoview.cxx.
References COL_BLACK(), COL_GRAY(), Disable, OutputDevice::EnableMapMode(), eType, OutputDevice::GetFillColor(), StyleSettings::GetLightColor(), OutputDevice::GetLineColor(), StyleSettings::GetOptions(), OutputDevice::GetOutDevType(), OutputDevice::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), OutputDevice::IsMapModeEnabled(), OutputDevice::LogicToPixel(), Mono, mpOutDev, OUTDEV_PRINTER, OutputDevice::SetFillColor(), and OutputDevice::SetLineColor().
Referenced by SpinField::Draw(), ScrollBar::ImplDraw(), ImplDrawBrdWinSymbol(), PushButton::ImplDrawPushButtonContent(), MenuFloatingWindow::ImplDrawScroller(), ImplDrawUpDownButtons(), Menu::ImplPaint(), SpinField::Paint(), and SvTreeListBox::PaintEntry1().
|
private |
Definition at line 75 of file decoview.hxx.
Referenced by DrawButton(), DrawFrame(), DrawHandle(), DrawHighlightFrame(), DrawSeparator(), and DrawSymbol().