48 if ( rImplWallpaper.
mpRect )
58 VersionCompatRead aCompat(rIStm);
60 rImplWallpaper.
mpRect.reset();
72 if( aCompat.GetVersion() >= 2 )
74 bool bRect(
false), bGrad(
false), bBmp(
false), bDummy;
86 rImplWallpaper.
mpGradient = std::make_unique<Gradient>();
92 rImplWallpaper.
mpBitmap = std::make_unique<BitmapEx>();
97 if( aCompat.GetVersion() >= 3 )
110 VersionCompatWrite aCompat(rOStm, 3);
111 bool bRect = bool(rImplWallpaper.
mpRect);
113 bool bBmp = bool(rImplWallpaper.
mpBitmap);
146 struct theGlobalDefault :
147 public rtl::Static< Wallpaper::ImplType, theGlobalDefault > {};
287 g.
SetStyle( GradientStyle::Linear );
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
void SetEndColor(const Color &rColor)
SvStream & WriteBool(bool b)
Wallpaper & operator=(const Wallpaper &rWallpaper)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
SAL_DLLPRIVATE void ImplReleaseCachedBitmap() const
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
static const AllSettings & GetSettings()
Gets the application's settings.
static SAL_DLLPRIVATE Gradient ImplGetApplicationGradient()
SvStream & ReadCharAsBool(bool &rBool)
void SetColor(const Color &rColor)
WallpaperStyle GetStyle() const
SvStream & WriteWallpaper(SvStream &rOStm, const Wallpaper &rWallpaper)
bool operator==(const Wallpaper &rWallpaper) const
SvStream & ReadWallpaper(SvStream &rIStm, Wallpaper &rWallpaper)
void SetStartColor(const Color &rColor)
SvStream & WriteUInt32(sal_uInt32 nUInt32)
SAL_DLLPRIVATE const BitmapEx * ImplGetCachedBitmap() const
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
std::optional< tools::Rectangle > mpRect
tools::Rectangle GetRect() const
void SetRect(const tools::Rectangle &rRect)
std::unique_ptr< Gradient > mpGradient
void SetStyle(WallpaperStyle eStyle)
void SetBitmap(const BitmapEx &rBitmap)
const Color & GetColor() const
bool same_object(const cow_wrapper &rOther) const
SvStream & ReadImplWallpaper(SvStream &rIStm, ImplWallpaper &rImplWallpaper)
void writeGradient(const Gradient &rGradient)
Gradient GetGradient() const
void SetAngle(Degree10 nAngle)
BitmapEx GetBitmap() const
bool IsScrollable() const
SvStream & WriteImplWallpaper(SvStream &rOStm, const ImplWallpaper &rImplWallpaper)
void SetStyle(GradientStyle eStyle)
void readGradient(Gradient &rGradient)
std::unique_ptr< BitmapEx > mpCache
SAL_DLLPRIVATE void ImplSetCachedBitmap(BitmapEx &rBmp) const
std::unique_ptr< BitmapEx > mpBitmap
void SetGradient(const Gradient &rGradient)