diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-10-04 09:12:07 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-10-04 11:23:10 +0200 |
commit | 2997d7d10a79917495a310135f863bd71541b304 (patch) | |
tree | a9224aeef22df6faaf259c57ca9aa0c928472328 /sw | |
parent | 5ebe826caf75e8d00656b3333385bf0bbc05cb27 (diff) |
HighLight -> Highlight.
Change-Id: I2db5102fbc441c0b79d8c28023f3e3bb5613b3cf
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/charatr.hxx | 6 | ||||
-rw-r--r-- | sw/inc/format.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swatrset.hxx | 2 | ||||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 46 | ||||
-rw-r--r-- | sw/source/core/inc/swfont.hxx | 10 | ||||
-rw-r--r-- | sw/source/core/text/atrstck.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/txtnode/swfont.cxx | 10 | ||||
-rw-r--r-- | sw/source/core/unocore/unoprnms.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/attributeoutputbase.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.hxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8attributeoutput.hxx | 2 |
15 files changed, 52 insertions, 52 deletions
diff --git a/sw/inc/charatr.hxx b/sw/inc/charatr.hxx index e2482059b8fb..da9e34a8c3e0 100644 --- a/sw/inc/charatr.hxx +++ b/sw/inc/charatr.hxx @@ -87,7 +87,7 @@ inline const SvxBlinkItem &SwAttrSet::GetBlink(sal_Bool bInP) const { return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); } inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const { return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); } -inline const SvxBrushItem &SwAttrSet::GetChrHighLight( sal_Bool bInP ) const +inline const SvxBrushItem &SwAttrSet::GetChrHighlight( sal_Bool bInP ) const { return (const SvxBrushItem&)Get( RES_CHRATR_HIGHLIGHT, bInP ); } inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const { return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); } @@ -154,8 +154,8 @@ inline const SvxBlinkItem &SwFmt::GetBlink(sal_Bool bInP) const { return aSet.GetBlink(bInP); } inline const SvxBrushItem &SwFmt::GetChrBackground(sal_Bool bInP) const { return aSet.GetChrBackground(bInP); } -inline const SvxBrushItem &SwFmt::GetChrHighLight(sal_Bool bInP) const - { return aSet.GetChrHighLight(bInP); } +inline const SvxBrushItem &SwFmt::GetChrHighlight(sal_Bool bInP) const + { return aSet.GetChrHighlight(bInP); } inline const SvxEmphasisMarkItem &SwFmt::GetEmphasisMark( sal_Bool bInP ) const { return aSet.GetEmphasisMark(bInP); } inline const SvxTwoLinesItem &SwFmt::Get2Lines( sal_Bool bInP ) const diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx index 88c54022cac2..5463e9f9162d 100644 --- a/sw/inc/format.hxx +++ b/sw/inc/format.hxx @@ -190,7 +190,7 @@ public: inline const SvxNoHyphenItem &GetNoHyphenHere( sal_Bool = sal_True ) const; inline const SvxBlinkItem &GetBlink( sal_Bool = sal_True ) const; inline const SvxBrushItem &GetChrBackground( sal_Bool = sal_True ) const; - inline const SvxBrushItem &GetChrHighLight( sal_Bool = sal_True ) const; + inline const SvxBrushItem &GetChrHighlight( sal_Bool = sal_True ) const; inline const SvxFontItem &GetCJKFont( sal_Bool = sal_True ) const; inline const SvxFontHeightItem &GetCJKSize( sal_Bool = sal_True ) const; diff --git a/sw/inc/swatrset.hxx b/sw/inc/swatrset.hxx index 8c1c87b15599..e713d4c3a397 100644 --- a/sw/inc/swatrset.hxx +++ b/sw/inc/swatrset.hxx @@ -232,7 +232,7 @@ public: inline const SvxNoHyphenItem &GetNoHyphenHere( sal_Bool = sal_True ) const; inline const SvxBlinkItem &GetBlink( sal_Bool = sal_True ) const; inline const SvxBrushItem &GetChrBackground( sal_Bool = sal_True ) const; - inline const SvxBrushItem &GetChrHighLight( sal_Bool = sal_True ) const; + inline const SvxBrushItem &GetChrHighlight( sal_Bool = sal_True ) const; inline const SvxFontItem &GetCJKFont( sal_Bool = sal_True ) const; inline const SvxFontHeightItem &GetCJKSize( sal_Bool = sal_True ) const; inline const SvxLanguageItem &GetCJKLanguage( sal_Bool = sal_True ) const; diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 49f90e634d4b..223f26f97238 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -121,7 +121,7 @@ public: void testStyleInheritance(); void testSmartart(); void testFdo69636(); - void testCharHighLight(); + void testCharHighlight(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -240,7 +240,7 @@ void Test::run() {"style-inheritance.docx", &Test::testStyleInheritance}, {"smartart.docx", &Test::testSmartart}, {"fdo69636.docx", &Test::testFdo69636}, - {"char_highlight.docx", &Test::testCharHighLight}, + {"char_highlight.docx", &Test::testCharHighlight}, }; // Don't test the first import of these, for some reason those tests fail const char* aBlacklist[] = { @@ -1503,7 +1503,7 @@ void Test::testFdo69636() CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:document/w:body/w:p/w:r/w:pict/v:rect/v:textbox", "style").match("mso-layout-flow-alt:bottom-to-top")); } -void Test::testCharHighLight() +void Test::testCharHighlight() { const uno::Reference< text::XTextRange > xPara = getParagraph(1); // Both highlight and background @@ -1511,41 +1511,41 @@ void Test::testCharHighLight() for( int nRun = 1; nRun <= 16; ++nRun ) { const uno::Reference<beans::XPropertySet> xRun(getRun(xPara,nRun), uno::UNO_QUERY); - sal_Int32 nHighLightColor = 0; + sal_Int32 nHighlightColor = 0; switch( nRun ) { - case 1: nHighLightColor = 0x000000; break; //black - case 2: nHighLightColor = 0x0000ff; break; //blue - case 3: nHighLightColor = 0x00ffff; break; //cyan - case 4: nHighLightColor = 0x00ff00; break; //green - case 5: nHighLightColor = 0xff00ff; break; //magenta - case 6: nHighLightColor = 0xff0000; break; //red - case 7: nHighLightColor = 0xffff00; break; //yellow - case 8: nHighLightColor = 0xffffff; break; //white - case 9: nHighLightColor = 0x000080; break;//dark blue - case 10: nHighLightColor = 0x008080; break; //dark cyan - case 11: nHighLightColor = 0x008000; break; //dark green - case 12: nHighLightColor = 0x800080; break; //dark magenta - case 13: nHighLightColor = 0x800000; break; //dark red - case 14: nHighLightColor = 0x808000; break; //dark yellow - case 15: nHighLightColor = 0x808080; break; //dark gray - case 16: nHighLightColor = 0xC0C0C0; break; //light gray + case 1: nHighlightColor = 0x000000; break; //black + case 2: nHighlightColor = 0x0000ff; break; //blue + case 3: nHighlightColor = 0x00ffff; break; //cyan + case 4: nHighlightColor = 0x00ff00; break; //green + case 5: nHighlightColor = 0xff00ff; break; //magenta + case 6: nHighlightColor = 0xff0000; break; //red + case 7: nHighlightColor = 0xffff00; break; //yellow + case 8: nHighlightColor = 0xffffff; break; //white + case 9: nHighlightColor = 0x000080; break;//dark blue + case 10: nHighlightColor = 0x008080; break; //dark cyan + case 11: nHighlightColor = 0x008000; break; //dark green + case 12: nHighlightColor = 0x800080; break; //dark magenta + case 13: nHighlightColor = 0x800000; break; //dark red + case 14: nHighlightColor = 0x808000; break; //dark yellow + case 15: nHighlightColor = 0x808080; break; //dark gray + case 16: nHighlightColor = 0xC0C0C0; break; //light gray } - CPPUNIT_ASSERT_EQUAL(nHighLightColor, getProperty<sal_Int32>(xRun,"CharHighLight")); + CPPUNIT_ASSERT_EQUAL(nHighlightColor, getProperty<sal_Int32>(xRun,"CharHighlight")); CPPUNIT_ASSERT_EQUAL(nBackColor, getProperty<sal_Int32>(xRun,"CharBackColor")); } // Only highlight { const uno::Reference<beans::XPropertySet> xRun(getRun(xPara,17), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0xC0C0C0), getProperty<sal_Int32>(xRun,"CharHighLight")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0xC0C0C0), getProperty<sal_Int32>(xRun,"CharHighlight")); CPPUNIT_ASSERT_EQUAL(sal_Int32(COL_TRANSPARENT), getProperty<sal_Int32>(xRun,"CharBackColor")); } // Only background { const uno::Reference<beans::XPropertySet> xRun(getRun(xPara,18), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(sal_Int32(COL_TRANSPARENT), getProperty<sal_Int32>(xRun,"CharHighLight")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(COL_TRANSPARENT), getProperty<sal_Int32>(xRun,"CharHighlight")); CPPUNIT_ASSERT_EQUAL(sal_Int32(0x0000ff), getProperty<sal_Int32>(xRun,"CharBackColor")); } } diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx index b6c0e2bc13b1..8f7338f8a79d 100644 --- a/sw/source/core/inc/swfont.hxx +++ b/sw/source/core/inc/swfont.hxx @@ -127,7 +127,7 @@ class SwFont // CTL == Complex text layout ( Hebrew, Arabic ) SwSubFont aSub[SW_SCRIPTS]; // Latin-, CJK- and CTL-font Color* pBackColor; // background color (i.e. at character styles) - Color m_aHighLightColor; // highlight color + Color m_aHighlightColor; // highlight color Color aUnderColor; // color of the underlining Color aOverColor; // color of the overlining @@ -183,8 +183,8 @@ public: // set background color void SetBackColor( Color* pNewColor ); inline const Color* GetBackColor() const{ return pBackColor; } - void SetHighLightColor( const Color& aNewColor ); - const Color& GetHighLightColor() const { return m_aHighLightColor; } + void SetHighlightColor( const Color& aNewColor ); + const Color& GetHighlightColor() const { return m_aHighlightColor; } inline void ChkMagic( ViewShell *pSh, sal_uInt8 nWhich ) { if( !aSub[ nWhich ].pMagic ) GoMagic( pSh, nWhich ); } @@ -1003,9 +1003,9 @@ inline void SwFont::SetShadowLocation( const SvxShadowLocation aLocation ) aSub[SW_LATIN].pMagic = aSub[SW_CJK].pMagic = aSub[SW_CTL].pMagic = 0; } -inline void SwFont::SetHighLightColor( const Color& aNewColor ) +inline void SwFont::SetHighlightColor( const Color& aNewColor ) { - m_aHighLightColor = aNewColor; + m_aHighlightColor = aNewColor; bFntChg = sal_True; aSub[SW_LATIN].pMagic = aSub[SW_CJK].pMagic = aSub[SW_CTL].pMagic = 0; } diff --git a/sw/source/core/text/atrstck.cxx b/sw/source/core/text/atrstck.cxx index ad1c2a94c00a..08c3d999bb0c 100644 --- a/sw/source/core/text/atrstck.cxx +++ b/sw/source/core/text/atrstck.cxx @@ -798,7 +798,7 @@ void SwAttrHandler::FontChg(const SfxPoolItem& rItem, SwFont& rFnt, sal_Bool bPu rFnt.SetBackColor(new Color( ((SvxBrushItem&)rItem).GetColor() ) ); break; case RES_CHRATR_HIGHLIGHT : - rFnt.SetHighLightColor( ((SvxBrushItem&)rItem).GetColor() ); + rFnt.SetHighlightColor( ((SvxBrushItem&)rItem).GetColor() ); break; case RES_CHRATR_CJK_FONT : rFnt.SetName( ((SvxFontItem&)rItem).GetFamilyName(), SW_CJK ); diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index 2de233c2de11..cbb7ee626f97 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -1184,9 +1184,9 @@ void SwTxtPaintInfo::DrawBackBrush( const SwLinePortion &rPor ) const pTmpOut->Push( PUSH_LINECOLOR | PUSH_FILLCOLOR ); - if( m_pFnt->GetHighLightColor() != COL_TRANSPARENT ) + if( m_pFnt->GetHighlightColor() != COL_TRANSPARENT ) { - pTmpOut->SetFillColor( m_pFnt->GetHighLightColor() ); + pTmpOut->SetFillColor( m_pFnt->GetHighlightColor() ); } else { diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx index 275e2a52d716..eef49fafef49 100644 --- a/sw/source/core/txtnode/swfont.cxx +++ b/sw/source/core/txtnode/swfont.cxx @@ -667,7 +667,7 @@ void SwFont::SetDiffFnt( const SfxItemSet *pAttrSet, pBackColor = new Color( ((SvxBrushItem*)pItem)->GetColor() ); if( SFX_ITEM_SET == pAttrSet->GetItemState( RES_CHRATR_HIGHLIGHT, sal_True, &pItem )) - SetHighLightColor(((SvxBrushItem*)pItem)->GetColor()); + SetHighlightColor(((SvxBrushItem*)pItem)->GetColor()); if( SFX_ITEM_SET == pAttrSet->GetItemState( RES_CHRATR_BOX, sal_True, &pItem )) { @@ -715,7 +715,7 @@ SwFont::SwFont( const SwFont &rFont ) aSub[SW_CTL] = rFont.aSub[SW_CTL]; nActual = rFont.nActual; pBackColor = rFont.pBackColor ? new Color( *rFont.pBackColor ) : NULL; - m_aHighLightColor = rFont.m_aHighLightColor; + m_aHighlightColor = rFont.m_aHighlightColor; m_aTopBorder = rFont.m_aTopBorder; m_aBottomBorder = rFont.m_aBottomBorder; m_aRightBorder = rFont.m_aRightBorder; @@ -849,9 +849,9 @@ SwFont::SwFont( const SwAttrSet* pAttrSet, pBackColor = NULL; if( SFX_ITEM_SET == pAttrSet->GetItemState( RES_CHRATR_HIGHLIGHT, sal_True, &pItem )) - SetHighLightColor(((SvxBrushItem*)pItem)->GetColor()); + SetHighlightColor(((SvxBrushItem*)pItem)->GetColor()); else - SetHighLightColor(COL_TRANSPARENT); + SetHighlightColor(COL_TRANSPARENT); if( SFX_ITEM_SET == pAttrSet->GetItemState( RES_CHRATR_BOX, sal_True, &pItem )) { @@ -931,7 +931,7 @@ SwFont& SwFont::operator=( const SwFont &rFont ) nActual = rFont.nActual; delete pBackColor; pBackColor = rFont.pBackColor ? new Color( *rFont.pBackColor ) : NULL; - m_aHighLightColor = rFont.m_aHighLightColor; + m_aHighlightColor = rFont.m_aHighlightColor; m_aTopBorder = rFont.m_aTopBorder; m_aBottomBorder = rFont.m_aBottomBorder; m_aRightBorder = rFont.m_aRightBorder; diff --git a/sw/source/core/unocore/unoprnms.cxx b/sw/source/core/unocore/unoprnms.cxx index 6f09ce6cb063..740c8fda9d85 100644 --- a/sw/source/core/unocore/unoprnms.cxx +++ b/sw/source/core/unocore/unoprnms.cxx @@ -805,7 +805,7 @@ const SwPropNameTab aPropNameTab = { /* 0773 UNO_NAME_SHADOW_TRANSPARENCE */ {MAP_CHAR_LEN("ShadowTransparence")}, /* 0774 UNO_NAME_DOC_INTEROP_GRAB_BAG */ {MAP_CHAR_LEN("InteropGrabBag")}, /* 0775 UNO_NAME_FRAME_INTEROP_GRAB_BAG */ {MAP_CHAR_LEN("FrameInteropGrabBag")}, -/* 0776 UNO_NAME_CHAR_HIGHLIGHT */ {MAP_CHAR_LEN("CharHighLight")}, +/* 0776 UNO_NAME_CHAR_HIGHLIGHT */ {MAP_CHAR_LEN("CharHighlight")}, // new items in this array must match enum SwPropNameIds }; diff --git a/sw/source/filter/ww8/attributeoutputbase.hxx b/sw/source/filter/ww8/attributeoutputbase.hxx index 9ead90851679..c25f64875377 100644 --- a/sw/source/filter/ww8/attributeoutputbase.hxx +++ b/sw/source/filter/ww8/attributeoutputbase.hxx @@ -445,7 +445,7 @@ protected: virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ) = 0; /// Sfx item RES_CHRATR_HIGHLIGHT - virtual void CharHighLight( const SvxBrushItem& ) = 0; + virtual void CharHighlight( const SvxBrushItem& ) = 0; /// Sfx item RES_TXTATR_INETFMT virtual void TextINetFormat( const SwFmtINetFmt& ) = 0; diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index b1e287b9025c..d215e256255f 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -3815,7 +3815,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, FontFam FSEND ); } -OString DocxAttributeOutput::TransHighLightColor( const Color& rColor ) +OString DocxAttributeOutput::TransHighlightColor( const Color& rColor ) { switch (rColor.GetColor()) { @@ -4424,9 +4424,9 @@ void DocxAttributeOutput::CharBorder( impl_borderLine( m_pSerializer, XML_bdr, pAllBorder, nDist, bShadow ); } -void DocxAttributeOutput::CharHighLight( const SvxBrushItem& rHighLight ) +void DocxAttributeOutput::CharHighlight( const SvxBrushItem& rHighlight ) { - const OString sColor = TransHighLightColor( rHighLight.GetColor() ); + const OString sColor = TransHighlightColor( rHighlight.GetColor() ); if ( !sColor.isEmpty() ) { m_pSerializer->singleElementNS( XML_w, XML_highlight, diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index a7242e3ee025..2e99f9d1589c 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -377,13 +377,13 @@ private: FontPitch pitch, rtl_TextEncoding encoding ); /** - * Translate a color object to the corresponding HighLightColorValues enumaration item + * Translate a color object to the corresponding HighlightColorValues enumaration item * * @param[in] rColor a color object to translate * @return color name (e.g. "red"), if color is inside the enumeration's range * empty string, otherwise **/ - OString TransHighLightColor( const Color& rColor ); + OString TransHighlightColor( const Color& rColor ); protected: /// Output frames - the implementation. @@ -489,7 +489,7 @@ protected: virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ); /// Sfx item RES_CHRATR_HIGHLIGHT - virtual void CharHighLight( const SvxBrushItem& rHighLight ); + virtual void CharHighlight( const SvxBrushItem& rHighlight ); /// Sfx item RES_TXTATR_INETFMT virtual void TextINetFormat( const SwFmtINetFmt& ); diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx index fc2f3ce5c422..aeb52648eb28 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.hxx +++ b/sw/source/filter/ww8/rtfattributeoutput.hxx @@ -316,7 +316,7 @@ protected: virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ); /// Sfx item RES_CHRATR_HIGHLIGHT - virtual void CharHighLight( const SvxBrushItem& ){}; + virtual void CharHighlight( const SvxBrushItem& ){}; /// Sfx item RES_TXTATR_INETFMT virtual void TextINetFormat( const SwFmtINetFmt& ); diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 32f46b8acc2c..dc3117a2dc0d 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -5145,7 +5145,7 @@ void AttributeOutputBase::OutputItem( const SfxPoolItem& rHt ) FormatCharBorder( static_cast< const SvxBoxItem& >( rHt ) ); break; case RES_CHRATR_HIGHLIGHT: - CharHighLight( static_cast< const SvxBrushItem& >( rHt ) ); + CharHighlight( static_cast< const SvxBrushItem& >( rHt ) ); break; case RES_TXTATR_INETFMT: diff --git a/sw/source/filter/ww8/ww8attributeoutput.hxx b/sw/source/filter/ww8/ww8attributeoutput.hxx index bcb5f17a74c0..24346d74c5f2 100644 --- a/sw/source/filter/ww8/ww8attributeoutput.hxx +++ b/sw/source/filter/ww8/ww8attributeoutput.hxx @@ -297,7 +297,7 @@ protected: virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder, const sal_uInt16 nDist, const bool bShadow ); /// Sfx item RES_CHRATR_HIGHLIGHT - virtual void CharHighLight( const SvxBrushItem& ){}; + virtual void CharHighlight( const SvxBrushItem& ){}; /// Sfx item RES_TXTATR_INETFMT virtual void TextINetFormat( const SwFmtINetFmt& ); |