tdf#97228: Remove unused TextAttribProtect

Change-Id: I11d8510ac20967ee1b3d6091d241ce45cc9d9853
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183275
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Akshay Kumar Dubey
2025-05-26 10:27:23 +02:00
committed by Michael Weghorn
parent 65ceeb615c
commit 593bf5e35d
2 changed files with 0 additions and 32 deletions
-13
View File
@@ -33,7 +33,6 @@ namespace vcl { class Font; }
#define TEXTATTR_FONTWEIGHT 3
#define TEXTATTR_USER_START 1000 //start id for user defined text attributes
#define TEXTATTR_PROTECTED 4
class VCL_DLLPUBLIC TextAttrib
@@ -90,18 +89,6 @@ public:
FontWeight getFontWeight() const { return meWeight; }
};
class TextAttribProtect final : public TextAttrib
{
public:
TextAttribProtect();
virtual void SetFont( vcl::Font& rFont ) const override;
virtual std::unique_ptr<TextAttrib> Clone() const override;
virtual bool operator==( const TextAttrib& rAttr ) const override;
};
class TextCharAttrib
{
private:
-19
View File
@@ -71,23 +71,4 @@ bool TextAttribFontWeight::operator==( const TextAttrib& rAttr ) const
( meWeight == static_cast<const TextAttribFontWeight&>(rAttr).meWeight ) );
}
TextAttribProtect::TextAttribProtect() :
TextAttrib( TEXTATTR_PROTECTED )
{
}
void TextAttribProtect::SetFont( vcl::Font& ) const
{
}
std::unique_ptr<TextAttrib> TextAttribProtect::Clone() const
{
return std::unique_ptr<TextAttrib>(new TextAttribProtect());
}
bool TextAttribProtect::operator==( const TextAttrib& rAttr ) const
{
return TextAttrib::operator==(rAttr );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */