diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-16 10:09:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-18 08:54:37 +0200 |
commit | 60e78fbb806bb45e635ba1de45ceffe187938ac0 (patch) | |
tree | 17ff5aaa57f4d23e177f1fe423def1691139a4a8 /sw/inc | |
parent | 9c818268767d6a1c1bc731ae30c45883bab987e7 (diff) |
fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.
Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/hhcwrp.hxx | 2 | ||||
-rw-r--r-- | sw/inc/ndtxt.hxx | 2 | ||||
-rw-r--r-- | sw/inc/numrule.hxx | 4 | ||||
-rw-r--r-- | sw/inc/splargs.hxx | 9 |
4 files changed, 9 insertions, 8 deletions
diff --git a/sw/inc/hhcwrp.hxx b/sw/inc/hhcwrp.hxx index 9ff03b66ca8c..d90d2fe7f7ed 100644 --- a/sw/inc/hhcwrp.hxx +++ b/sw/inc/hhcwrp.hxx @@ -93,7 +93,7 @@ public: SwView* pView, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, LanguageType nSourceLanguage, LanguageType nTargetLanguage, - const Font *pTargetFont, + const vcl::Font *pTargetFont, sal_Int32 nConvOptions, bool bIsInteractive, bool bStart, bool bOther, bool bSelection ); diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx index a46e8bc57cb1..8c7a0491a7d5 100644 --- a/sw/inc/ndtxt.hxx +++ b/sw/inc/ndtxt.hxx @@ -155,7 +155,7 @@ class SW_DLLPUBLIC SwTxtNode: public SwCntntNode, public ::sfx2::Metadatable SAL_DLLPRIVATE void SetLanguageAndFont( const SwPaM &rPaM, LanguageType nLang, sal_uInt16 nLangWhichId, - const Font *pFont, sal_uInt16 nFontWhichId ); + const vcl::Font *pFont, sal_uInt16 nFontWhichId ); /// Start: Data collected during idle time diff --git a/sw/inc/numrule.hxx b/sw/inc/numrule.hxx index 0ba4f7a768a6..10d9eefa1804 100644 --- a/sw/inc/numrule.hxx +++ b/sw/inc/numrule.hxx @@ -35,7 +35,7 @@ class SwTxtFmtColl; class IDocumentListsAccess; class SwNodeNum; -class Font; +namespace vcl { class Font; } class SvxBrushItem; class SfxGrabBagItem; class SvxNumRule; @@ -298,7 +298,7 @@ namespace numfunc @author OD */ - SW_DLLPUBLIC const Font& GetDefBulletFont(); + SW_DLLPUBLIC const vcl::Font& GetDefBulletFont(); /** retrieve unicode of character used for the default bullet list for the given list level diff --git a/sw/inc/splargs.hxx b/sw/inc/splargs.hxx index 2771e90d6b3b..8a09c261b437 100644 --- a/sw/inc/splargs.hxx +++ b/sw/inc/splargs.hxx @@ -24,13 +24,14 @@ #include <tools/gen.hxx> #include <limits.h> -class SwTxtNode; -class SwIndex; -class Font; #include <com/sun/star/linguistic2/XSpellAlternatives.hpp> #include <com/sun/star/linguistic2/XSpellChecker1.hpp> #include <com/sun/star/linguistic2/XHyphenatedWord.hpp> +class SwTxtNode; +class SwIndex; +namespace vcl { class Font; } + struct SwArgsBase // used for text conversion (Hangul/Hanja, ...) { SwTxtNode *pStartNode; @@ -65,7 +66,7 @@ struct SwConversionArgs : SwArgsBase // used for chinese translation LanguageType nConvTargetLang; // target language of text to be changed - const Font *pTargetFont; // target font of text to be changed + const vcl::Font *pTargetFont; // target font of text to be changed // explicitly enables or disables application of the above two bool bAllowImplicitChangesForNotConvertibleText; |