summaryrefslogtreecommitdiff
path: root/include/vcl/font.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl/font.hxx')
-rw-r--r--include/vcl/font.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx
index 5e0b13481005..da9ae54480ea 100644
--- a/include/vcl/font.hxx
+++ b/include/vcl/font.hxx
@@ -34,6 +34,12 @@ class SvStream;
class Impl_Font;
class ImplFontAttributes;
+namespace vcl { class Font; }
+// need to first declare these outside the vcl namespace, or the friend declarations won't work right
+VCL_DLLPUBLIC SvStream& ReadFont( SvStream& rIStm, vcl::Font& );
+VCL_DLLPUBLIC SvStream& WriteFont( SvStream& rOStm, const vcl::Font& );
+
+namespace vcl {
class VCL_DLLPUBLIC Font
{
@@ -127,12 +133,14 @@ public:
{ return !(Font::operator==( rFont )); }
bool IsSameInstance( const Font& ) const;
- friend VCL_DLLPUBLIC SvStream& ReadFont( SvStream& rIStm, Font& );
- friend VCL_DLLPUBLIC SvStream& WriteFont( SvStream& rOStm, const Font& );
+ friend VCL_DLLPUBLIC SvStream& ::ReadFont( SvStream& rIStm, ::vcl::Font& );
+ friend VCL_DLLPUBLIC SvStream& ::WriteFont( SvStream& rOStm, const ::vcl::Font& );
static Font identifyFont( const void* pBuffer, sal_uInt32 nLen );
};
+}
+
#endif // _VCL_FONT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */