LibreOffice Module vcl (master)
1
|
#include <wall.hxx>
Public Types | |
typedef o3tl::cow_wrapper< ImplWallpaper > | ImplType |
Public Member Functions | |
SAL_DLLPRIVATE void | ImplSetCachedBitmap (BitmapEx &rBmp) const |
SAL_DLLPRIVATE const BitmapEx * | ImplGetCachedBitmap () const |
SAL_DLLPRIVATE void | ImplReleaseCachedBitmap () const |
Wallpaper () | |
Wallpaper (const Wallpaper &rWallpaper) | |
Wallpaper (Wallpaper &&rWallpaper) | |
Wallpaper (const Color &rColor) | |
Wallpaper (const BitmapEx &rBmpEx) | |
~Wallpaper () | |
void | SetColor (const Color &rColor) |
const Color & | GetColor () const |
void | SetStyle (WallpaperStyle eStyle) |
WallpaperStyle | GetStyle () const |
void | SetBitmap (const BitmapEx &rBitmap) |
BitmapEx | GetBitmap () const |
bool | IsBitmap () const |
void | SetGradient (const Gradient &rGradient) |
Gradient | GetGradient () const |
bool | IsGradient () const |
void | SetRect (const tools::Rectangle &rRect) |
tools::Rectangle | GetRect () const |
bool | IsRect () const |
bool | IsFixed () const |
bool | IsScrollable () const |
Wallpaper & | operator= (const Wallpaper &rWallpaper) |
Wallpaper & | operator= (Wallpaper &&rWallpaper) |
bool | operator== (const Wallpaper &rWallpaper) const |
bool | operator!= (const Wallpaper &rWallpaper) const |
bool | IsEmpty () const |
Static Private Member Functions | |
static SAL_DLLPRIVATE Gradient | ImplGetApplicationGradient () |
Private Attributes | |
ImplType | mpImplWallpaper |
Friends | |
SvStream & | ReadWallpaper (SvStream &rIStm, Wallpaper &rWallpaper) |
SvStream & | WriteWallpaper (SvStream &rOStm, const Wallpaper &rWallpaper) |
|
default |
|
default |
Wallpaper::Wallpaper | ( | const Color & | rColor | ) |
Definition at line 158 of file wall.cxx.
References ImplWallpaper::maColor, ImplWallpaper::meStyle, mpImplWallpaper, and Tile.
|
explicit |
Definition at line 164 of file wall.cxx.
References ImplWallpaper::meStyle, ImplWallpaper::mpBitmap, mpImplWallpaper, and Tile.
|
default |
BitmapEx Wallpaper::GetBitmap | ( | ) | const |
Definition at line 242 of file wall.cxx.
References ImplWallpaper::mpBitmap, and mpImplWallpaper.
Referenced by TabPage::Draw(), Dialog::Draw(), OutputDevice::DrawBitmapWallpaper(), vcl::PDFWriterImpl::drawWallpaper(), SvtIconChoiceCtrl::SetBackground(), and OutputDevice::SetBackground().
const Color & Wallpaper::GetColor | ( | ) | const |
Definition at line 199 of file wall.cxx.
References ImplWallpaper::maColor, and mpImplWallpaper.
Referenced by TabPage::Draw(), Dialog::Draw(), OutputDevice::DrawBitmapWallpaper(), OutputDevice::DrawColorWallpaper(), OutputDevice::DrawCtrlText(), DecorationView::DrawHighlightFrame(), SvImpLBox::DrawNet(), vcl::PDFWriterImpl::drawWallpaper(), OutputDevice::GetBackgroundColor(), vcl::Window::GetBackgroundColor(), vcl::Window::GetDisplayBackground(), OutputDevice::ImplDrawText(), TextView::ImpPaint(), IconView::PaintEntry(), SvxIconChoiceCtrl_Impl::PaintEntry(), SvTreeListBox::PaintEntry1(), SvtIconChoiceCtrl::SetBackground(), OutputDevice::SetBackground(), SvxIconChoiceCtrl_Impl::ShowFocus(), and SvInplaceEdit2::SvInplaceEdit2().
Gradient Wallpaper::GetGradient | ( | ) | const |
Definition at line 268 of file wall.cxx.
References ApplicationGradient, ImplGetApplicationGradient(), ImplWallpaper::meStyle, ImplWallpaper::mpGradient, and mpImplWallpaper.
Referenced by OutputDevice::DrawGradientWallpaper(), and vcl::PDFWriterImpl::drawWallpaper().
tools::Rectangle Wallpaper::GetRect | ( | ) | const |
Definition at line 309 of file wall.cxx.
References mpImplWallpaper, and ImplWallpaper::mpRect.
Referenced by OutputDevice::DrawBitmapWallpaper(), and vcl::PDFWriterImpl::drawWallpaper().
WallpaperStyle Wallpaper::GetStyle | ( | ) | const |
Definition at line 214 of file wall.cxx.
References ImplWallpaper::meStyle, and mpImplWallpaper.
Referenced by OutputDevice::DrawBitmapWallpaper(), OutputDevice::DrawWallpaper(), vcl::PDFWriterImpl::drawWallpaper(), SvtIconChoiceCtrl::SetBackground(), and OutputDevice::SetBackground().
|
staticprivate |
Definition at line 283 of file wall.cxx.
References Application::GetSettings(), Gradient::SetAngle(), Gradient::SetEndColor(), Gradient::SetStartColor(), and Gradient::SetStyle().
Referenced by GetGradient(), and SetStyle().
const BitmapEx * Wallpaper::ImplGetCachedBitmap | ( | ) | const |
Definition at line 180 of file wall.cxx.
References ImplWallpaper::mpCache, and mpImplWallpaper.
Referenced by OutputDevice::DrawBitmapWallpaper().
void Wallpaper::ImplReleaseCachedBitmap | ( | ) | const |
Definition at line 185 of file wall.cxx.
References o3tl::cow_wrapper< T, MTPolicy >::get(), and mpImplWallpaper.
Referenced by OutputDevice::DrawBitmapWallpaper(), SetBitmap(), SetColor(), and SetGradient().
Definition at line 172 of file wall.cxx.
References o3tl::cow_wrapper< T, MTPolicy >::get(), ImplWallpaper::mpCache, and mpImplWallpaper.
Referenced by OutputDevice::DrawBitmapWallpaper().
bool Wallpaper::IsBitmap | ( | ) | const |
Definition at line 250 of file wall.cxx.
References ImplWallpaper::mpBitmap, and mpImplWallpaper.
Referenced by PaintHelper::DoPaint(), TabPage::Draw(), Dialog::Draw(), DecorationView::DrawHighlightFrame(), OutputDevice::DrawWallpaper(), vcl::PDFWriterImpl::drawWallpaper(), ComboBox::GetDisplayBackground(), vcl::Window::GetDisplayBackground(), SvtIconChoiceCtrl::SetBackground(), OutputDevice::SetBackground(), and vcl::Window::UpdateSettings().
|
inline |
Definition at line 100 of file wall.hxx.
References COL_TRANSPARENT(), and NONE.
Referenced by SvtIconChoiceCtrl::SetBackground().
bool Wallpaper::IsFixed | ( | ) | const |
Definition at line 322 of file wall.cxx.
References ImplWallpaper::meStyle, ImplWallpaper::mpBitmap, ImplWallpaper::mpGradient, mpImplWallpaper, and NONE.
bool Wallpaper::IsGradient | ( | ) | const |
Definition at line 278 of file wall.cxx.
References ImplWallpaper::mpGradient, and mpImplWallpaper.
Referenced by OutputDevice::DrawBitmapWallpaper(), DecorationView::DrawHighlightFrame(), OutputDevice::DrawWallpaper(), vcl::PDFWriterImpl::drawWallpaper(), ComboBox::GetDisplayBackground(), vcl::Window::GetDisplayBackground(), OutputDevice::SetBackground(), and vcl::Window::UpdateSettings().
bool Wallpaper::IsRect | ( | ) | const |
Definition at line 317 of file wall.cxx.
References mpImplWallpaper, and ImplWallpaper::mpRect.
Referenced by OutputDevice::DrawBitmapWallpaper(), and vcl::PDFWriterImpl::drawWallpaper().
bool Wallpaper::IsScrollable | ( | ) | const |
Definition at line 330 of file wall.cxx.
References ImplWallpaper::meStyle, ImplWallpaper::mpBitmap, ImplWallpaper::mpGradient, mpImplWallpaper, NONE, and Tile.
Referenced by SvxIconChoiceCtrl_Impl::MakeVisible(), and SvtIconChoiceCtrl::SetBackground().
|
inline |
Definition at line 97 of file wall.hxx.
References operator==().
bool Wallpaper::operator== | ( | const Wallpaper & | rWallpaper | ) | const |
Definition at line 346 of file wall.cxx.
References mpImplWallpaper, and o3tl::cow_wrapper< T, MTPolicy >::same_object().
Referenced by operator!=().
Definition at line 219 of file wall.cxx.
References ApplicationGradient, ImplReleaseCachedBitmap(), BitmapEx::IsEmpty(), ImplWallpaper::meStyle, ImplWallpaper::mpBitmap, mpImplWallpaper, NONE, and Tile.
Definition at line 190 of file wall.cxx.
References ApplicationGradient, ImplReleaseCachedBitmap(), ImplWallpaper::maColor, ImplWallpaper::meStyle, mpImplWallpaper, NONE, and Tile.
Referenced by MenuBarWindow::ApplySettings(), IconView::PaintEntry(), SvTreeListBox::PaintEntry1(), and SvtIconChoiceCtrl::SetBackground().
Definition at line 255 of file wall.cxx.
References ApplicationGradient, ImplReleaseCachedBitmap(), ImplWallpaper::meStyle, ImplWallpaper::mpGradient, mpImplWallpaper, NONE, and Tile.
Referenced by SetStyle().
void Wallpaper::SetRect | ( | const tools::Rectangle & | rRect | ) |
Definition at line 297 of file wall.cxx.
References tools::Rectangle::IsEmpty(), mpImplWallpaper, and ImplWallpaper::mpRect.
Referenced by ImplBorderWindow::Resize(), and SvtIconChoiceCtrl::SetBackground().
void Wallpaper::SetStyle | ( | WallpaperStyle | eStyle | ) |
Definition at line 204 of file wall.cxx.
References ApplicationGradient, ImplGetApplicationGradient(), ImplWallpaper::meStyle, mpImplWallpaper, and SetGradient().
Referenced by MenuBarWindow::ApplySettings(), ImplBorderWindow::Resize(), SvtIconChoiceCtrl::SetBackground(), and NotebookBar::UpdateBackground().
|
private |
Definition at line 60 of file wall.hxx.
Referenced by GetBitmap(), GetColor(), GetGradient(), GetRect(), GetStyle(), ImplGetCachedBitmap(), ImplReleaseCachedBitmap(), ImplSetCachedBitmap(), IsBitmap(), IsFixed(), IsGradient(), IsRect(), IsScrollable(), operator==(), ReadWallpaper(), SetBitmap(), SetColor(), SetGradient(), SetRect(), SetStyle(), Wallpaper(), and WriteWallpaper().