diff options
author | Oliver-Rainer Wittmann <orw@apache.org> | 2014-01-09 12:59:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-09 15:32:21 +0000 |
commit | 74593273655e475017bb2bd45aba3c6b132e372d (patch) | |
tree | d0552a4b6e7c81ad49c58864a9f65d1b03ec8838 /sw/inc/fmtinfmt.hxx | |
parent | 224da5bcde2a62d375490456f717e5c2a639a802 (diff) |
Resolves: #i123988# assure that hyperlink attribute...
(<SwFmtINetFmt>) always provides character style names for visited and
unvisited state
(cherry picked from commit c15b814d6e8ea429287def9a0bf3ac71db414119)
Conflicts:
sw/inc/fmtinfmt.hxx
sw/source/core/doc/doctxm.cxx
sw/source/core/txtnode/fmtatr2.cxx
sw/source/core/txtnode/txtatr2.cxx
sw/source/filter/ww8/ww8atr.cxx
sw/source/filter/ww8/ww8par5.cxx
sw/source/ui/chrdlg/chardlg.cxx
sw/source/ui/shells/txtattr.cxx
Change-Id: Ib23d55a299d0d78a2eba18dd5c1c0327c816da56
Diffstat (limited to 'sw/inc/fmtinfmt.hxx')
-rw-r--r-- | sw/inc/fmtinfmt.hxx | 111 |
1 files changed, 79 insertions, 32 deletions
diff --git a/sw/inc/fmtinfmt.hxx b/sw/inc/fmtinfmt.hxx index fbdaf2e8552c..21797515bdbb 100644 --- a/sw/inc/fmtinfmt.hxx +++ b/sw/inc/fmtinfmt.hxx @@ -33,15 +33,15 @@ class SW_DLLPUBLIC SwFmtINetFmt: public SfxPoolItem { friend class SwTxtINetFmt; - OUString aURL; ///< URL. - OUString aTargetFrame; ///< Target frame for URL. - OUString aINetFmt; - OUString aVisitedFmt; - OUString aName; ///< Name of the link. - SvxMacroTableDtor* pMacroTbl; - SwTxtINetFmt* pTxtAttr; ///< My TextAttribute. - sal_uInt16 nINetId; - sal_uInt16 nVisitedId; + OUString msURL; ///< URL. + OUString msTargetFrame; ///< Target frame for URL. + OUString msINetFmtName; + OUString msVisitedFmtName; + OUString msHyperlinkName; ///< Name of the link. + SvxMacroTableDtor* mpMacroTbl; + SwTxtINetFmt* mpTxtAttr; ///< My TextAttribute. + sal_uInt16 mnINetFmtId; + sal_uInt16 mnVisitedFmtId; public: SwFmtINetFmt( const OUString& rURL, const OUString& rTarget ); SwFmtINetFmt( const SwFmtINetFmt& rAttr ); @@ -65,34 +65,81 @@ public: sal_uInt8 nMemberId = 0 ); - const SwTxtINetFmt* GetTxtINetFmt() const { return pTxtAttr; } - SwTxtINetFmt* GetTxtINetFmt() { return pTxtAttr; } - - OUString GetValue() const { return aURL; } - - OUString GetName() const { return aName; } - void SetName( const OUString& rNm ) { aName = rNm; } - - OUString GetTargetFrame() const { return aTargetFrame; } - - OUString GetINetFmt() const { return aINetFmt; } - void SetINetFmt( const OUString& rNm ) { aINetFmt = rNm; } - - OUString GetVisitedFmt() const { return aVisitedFmt; } - void SetVisitedFmt( const OUString& rNm ) { aVisitedFmt = rNm; } - - sal_uInt16 GetINetFmtId() const { return nINetId; } - void SetINetFmtId( sal_uInt16 nNew ) { nINetId = nNew; } - - sal_uInt16 GetVisitedFmtId() const { return nVisitedId; } - void SetVisitedFmtId( sal_uInt16 nNew ) { nVisitedId = nNew; } + const SwTxtINetFmt* GetTxtINetFmt() const + { + return mpTxtAttr; + } + SwTxtINetFmt* GetTxtINetFmt() + { + return mpTxtAttr; + } + + const OUString& GetValue() const + { + return msURL; + } + + const OUString& GetName() const + { + return msHyperlinkName; + } + void SetName( const OUString& rNm ) + { + msHyperlinkName = rNm; + } + + const OUString& GetTargetFrame() const + { + return msTargetFrame; + } + + void SetINetFmtAndId( + const OUString& rNm, + const sal_uInt16 nId ) + { + msINetFmtName = rNm; + mnINetFmtId = nId; + } + + const OUString& GetINetFmt() const + { + return msINetFmtName; + } + + sal_uInt16 GetINetFmtId() const + { + return mnINetFmtId; + } + + void SetVisitedFmtAndId( + const OUString& rNm, + const sal_uInt16 nId ) + { + msVisitedFmtName = rNm; + mnVisitedFmtId = nId; + } + + const OUString& GetVisitedFmt() const + { + return msVisitedFmtName; + } + + sal_uInt16 GetVisitedFmtId() const + { + return mnVisitedFmtId; + } /// Set a new MacroTable or clear the current one. void SetMacroTbl( const SvxMacroTableDtor* pTbl = 0 ); - const SvxMacroTableDtor* GetMacroTbl() const { return pMacroTbl; } + const SvxMacroTableDtor* GetMacroTbl() const + { + return mpMacroTbl; + } /// Macro getter and setter. - void SetMacro( sal_uInt16 nEvent, const SvxMacro& rMacro ); + void SetMacro( + sal_uInt16 nEvent, + const SvxMacro& rMacro ); const SvxMacro* GetMacro( sal_uInt16 nEvent ) const; }; |