Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2997d7d1
Kaydet (Commit)
2997d7d1
authored
Eki 04, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
HighLight -> Highlight.
Change-Id: I2db5102fbc441c0b79d8c28023f3e3bb5613b3cf
üst
5ebe826c
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
79 additions
and
79 deletions
+79
-79
classx.cxx
filter/source/graphicfilter/icgm/classx.cxx
+1
-1
lwpfrib.cxx
lotuswordpro/source/filter/lwpfrib.cxx
+8
-8
lwpfrib.hxx
lotuswordpro/source/filter/lwpfrib.hxx
+2
-2
lwpglobalmgr.cxx
lotuswordpro/source/filter/lwpglobalmgr.cxx
+1
-1
lwpglobalmgr.hxx
lotuswordpro/source/filter/lwpglobalmgr.hxx
+1
-1
lwpoverride.cxx
lotuswordpro/source/filter/lwpoverride.cxx
+1
-1
lwpoverride.hxx
lotuswordpro/source/filter/lwpoverride.hxx
+1
-1
CharacterProperties.idl
offapi/com/sun/star/style/CharacterProperties.idl
+1
-1
anyrefdg.hxx
sc/source/ui/inc/anyrefdg.hxx
+1
-1
highred.hxx
sc/source/ui/inc/highred.hxx
+1
-1
anyrefdg.cxx
sc/source/ui/miscdlgs/anyrefdg.cxx
+5
-5
highred.cxx
sc/source/ui/miscdlgs/highred.cxx
+3
-3
charatr.hxx
sw/inc/charatr.hxx
+3
-3
format.hxx
sw/inc/format.hxx
+1
-1
swatrset.hxx
sw/inc/swatrset.hxx
+1
-1
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+23
-23
swfont.hxx
sw/source/core/inc/swfont.hxx
+5
-5
atrstck.cxx
sw/source/core/text/atrstck.cxx
+1
-1
inftxt.cxx
sw/source/core/text/inftxt.cxx
+2
-2
swfont.cxx
sw/source/core/txtnode/swfont.cxx
+5
-5
unoprnms.cxx
sw/source/core/unocore/unoprnms.cxx
+1
-1
attributeoutputbase.hxx
sw/source/filter/ww8/attributeoutputbase.hxx
+1
-1
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+3
-3
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+3
-3
rtfattributeoutput.hxx
sw/source/filter/ww8/rtfattributeoutput.hxx
+1
-1
ww8atr.cxx
sw/source/filter/ww8/ww8atr.cxx
+1
-1
ww8attributeoutput.hxx
sw/source/filter/ww8/ww8attributeoutput.hxx
+1
-1
PropertyIds.cxx
writerfilter/source/dmapper/PropertyIds.cxx
+1
-1
No files found.
filter/source/graphicfilter/icgm/classx.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -207,7 +207,7 @@ void CGM::ImplDoClass8()
case
0x02
:
/*Inheritance Filter */
break
;
// NS
case
0x03
:
/*Clip Inheritance */
break
;
// NS
case
0x04
:
/*Segment Transformation */
break
;
case
0x05
:
/*Segment High
L
ighting */
break
;
// NS
case
0x05
:
/*Segment High
l
ighting */
break
;
// NS
case
0x06
:
/*Segment Display Priority */
break
;
// NS
case
0x07
:
/*Segment Pick Priority */
break
;
// NS
case
0xfe
:
/*INQ Current Position */
break
;
...
...
lotuswordpro/source/filter/lwpfrib.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -111,7 +111,7 @@ LwpFrib* LwpFrib::CreateFrib(LwpPara* pPara, LwpObjectStream* pObjStrm, sal_uInt
pModInfo
->
RevisionFlag
=
sal_False
;
pModInfo
->
HasCharStyle
=
sal_False
;
pModInfo
->
HasLangOverride
=
sal_False
;
pModInfo
->
HasHigh
L
ight
=
sal_False
;
pModInfo
->
HasHigh
l
ight
=
sal_False
;
ReadModifiers
(
pObjStrm
,
pModInfo
);
}
...
...
@@ -230,7 +230,7 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
{
if
(
!
m_pModifiers
)
return
;
if
(
!
m_pModifiers
->
FontID
&&
!
m_pModifiers
->
HasCharStyle
&&
!
m_pModifiers
->
HasHigh
L
ight
)
if
(
!
m_pModifiers
->
FontID
&&
!
m_pModifiers
->
HasCharStyle
&&
!
m_pModifiers
->
HasHigh
l
ight
)
{
m_ModFlag
=
sal_False
;
return
;
...
...
@@ -271,9 +271,9 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
}
}
if
(
m_pModifiers
->
HasHigh
L
ight
)
if
(
m_pModifiers
->
HasHigh
l
ight
)
{
XFColor
aColor
=
GetHigh
L
ightColor
();
//right yellow
XFColor
aColor
=
GetHigh
l
ightColor
();
//right yellow
if
(
pStyle
)
//change the style directly
pStyle
->
GetFont
()
->
SetBackColor
(
aColor
);
else
//register a new style
...
...
@@ -347,8 +347,8 @@ void LwpFrib::ReadModifiers(LwpObjectStream* pObjStrm,ModifierInfo* pModInfo)
break
;
case
FRIB_MTAG_ATTRIBUTE
:
pModInfo
->
aTxtAttrOverride
.
Read
(
pObjStrm
);
if
(
pModInfo
->
aTxtAttrOverride
.
IsHigh
L
ight
())
pModInfo
->
HasHigh
L
ight
=
sal_True
;
if
(
pModInfo
->
aTxtAttrOverride
.
IsHigh
l
ight
())
pModInfo
->
HasHigh
l
ight
=
sal_True
;
break
;
case
FRIB_MTAG_REVISION
:
pModInfo
->
RevisionType
=
pObjStrm
->
QuickReaduInt8
();
...
...
@@ -424,10 +424,10 @@ OUString LwpFrib::GetEditor()
return
pGlobal
->
GetEditorName
(
m_nEditor
);
}
XFColor
LwpFrib
::
GetHigh
L
ightColor
()
XFColor
LwpFrib
::
GetHigh
l
ightColor
()
{
LwpGlobalMgr
*
pGlobal
=
LwpGlobalMgr
::
GetInstance
();
return
pGlobal
->
GetHigh
L
ightColor
(
m_nEditor
);
return
pGlobal
->
GetHigh
l
ightColor
(
m_nEditor
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
lotuswordpro/source/filter/lwpfrib.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -81,7 +81,7 @@ struct ModifierInfo
sal_uInt16
CodePage
;
sal_Bool
HasCharStyle
;
sal_Bool
HasLangOverride
;
sal_Bool
HasHigh
L
ight
;
sal_Bool
HasHigh
l
ight
;
sal_uInt8
RevisionType
;
sal_Bool
RevisionFlag
;
};
...
...
@@ -102,7 +102,7 @@ public:
void
SetType
(
sal_uInt8
type
)
{
m_nFribType
=
type
;}
void
SetEditor
(
sal_uInt8
editor
)
{
m_nEditor
=
editor
;}
OUString
GetEditor
();
XFColor
GetHigh
L
ightColor
();
XFColor
GetHigh
l
ightColor
();
protected
:
LwpPara
*
m_pPara
;
LwpFrib
*
m_pNext
;
...
...
lotuswordpro/source/filter/lwpglobalmgr.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -146,7 +146,7 @@ OUString LwpGlobalMgr::GetEditorName(sal_uInt8 nID)
return
A2OUSTR
(
""
);
}
XFColor
LwpGlobalMgr
::
GetHigh
L
ightColor
(
sal_uInt8
nID
)
XFColor
LwpGlobalMgr
::
GetHigh
l
ightColor
(
sal_uInt8
nID
)
{
std
::
map
<
sal_uInt16
,
LwpEditorAttr
*>::
iterator
iter
;
...
...
lotuswordpro/source/filter/lwpglobalmgr.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -88,7 +88,7 @@ public:
XFStyleManager
*
GetXFStyleManager
(){
return
m_pXFStyleManager
;}
void
SetEditorAttrMap
(
sal_uInt16
nID
,
LwpEditorAttr
*
pAttr
);
OUString
GetEditorName
(
sal_uInt8
nID
);
XFColor
GetHigh
L
ightColor
(
sal_uInt8
nID
);
XFColor
GetHigh
l
ightColor
(
sal_uInt8
nID
);
private
:
LwpGlobalMgr
(
LwpSvStream
*
pSvStream
);
private
:
...
...
lotuswordpro/source/filter/lwpoverride.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -168,7 +168,7 @@ void LwpTextAttributeOverride::Read(LwpObjectStream* pStrm)
pStrm
->
SkipExtra
();
}
sal_Bool
LwpTextAttributeOverride
::
IsHigh
L
ight
()
sal_Bool
LwpTextAttributeOverride
::
IsHigh
l
ight
()
{
return
(
m_nValues
&
TAO_HIGHLIGHT
);
}
...
...
lotuswordpro/source/filter/lwpoverride.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -138,7 +138,7 @@ public:
inline
sal_uInt16
GetHideLevels
()
const
;
sal_Bool
IsHigh
L
ight
();
sal_Bool
IsHigh
l
ight
();
protected
:
LwpTextAttributeOverride
(
LwpTextAttributeOverride
const
&
rOther
);
...
...
offapi/com/sun/star/style/CharacterProperties.idl
Dosyayı görüntüle @
2997d7d1
...
...
@@ -439,7 +439,7 @@ published service CharacterProperties
*
*
@
since
LibreOffice
4.2
**/
[
optional
,
property
]
com
::
sun
::
star
::
util
::
Color
CharHigh
L
ight
;
[
optional
,
property
]
com
::
sun
::
star
::
util
::
Color
CharHigh
l
ight
;
}
;
...
...
sc/source/ui/inc/anyrefdg.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -66,7 +66,7 @@ class ScFormulaReferenceHelper
bool
mbOldEditParentLayoutEnabled
;
// Original layout state of edit widget parent
bool
bEnableColorRef
;
bool
bHigh
L
ightRef
;
bool
bHigh
l
ightRef
;
bool
bAccInserted
;
DECL_LINK
(
AccelSelectHdl
,
Accelerator
*
);
...
...
sc/source/ui/inc/highred.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -78,7 +78,7 @@ private:
void
Init
();
DECL_LINK
(
RefHandle
,
SvxTPFilter
*
);
DECL_LINK
(
High
L
ightHandle
,
CheckBox
*
);
DECL_LINK
(
High
l
ightHandle
,
CheckBox
*
);
DECL_LINK
(
OKBtnHdl
,
PushButton
*
);
...
...
sc/source/ui/miscdlgs/anyrefdg.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -54,7 +54,7 @@ ScFormulaReferenceHelper::ScFormulaReferenceHelper(IAnyRefDialog* _pDlg,SfxBindi
,
mpOldEditParent
(
NULL
)
,
mbOldDlgLayoutEnabled
(
false
)
,
mbOldEditParentLayoutEnabled
(
false
)
,
bHigh
L
ightRef
(
false
)
,
bHigh
l
ightRef
(
false
)
,
bAccInserted
(
false
)
{
ScInputOptions
aInputOption
=
SC_MOD
()
->
GetInputOptions
();
...
...
@@ -116,7 +116,7 @@ void ScFormulaReferenceHelper::ShowSimpleReference(const OUString& rStr)
{
if
(
bEnableColorRef
)
{
bHigh
L
ightRef
=
true
;
bHigh
l
ightRef
=
true
;
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
if
(
pViewData
)
{
...
...
@@ -176,7 +176,7 @@ void ScFormulaReferenceHelper::ShowFormulaReference(const OUString& rStr)
{
if
(
bEnableColorRef
)
{
bHigh
L
ightRef
=
true
;
bHigh
l
ightRef
=
true
;
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
if
(
pViewData
&&
pRefComp
.
get
()
)
{
...
...
@@ -234,7 +234,7 @@ void ScFormulaReferenceHelper::HideReference( bool bDoneRefMode )
{
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
if
(
pViewData
&&
bHigh
L
ightRef
&&
bEnableColorRef
)
if
(
pViewData
&&
bHigh
l
ightRef
&&
bEnableColorRef
)
{
ScTabViewShell
*
pTabViewShell
=
pViewData
->
GetViewShell
();
...
...
@@ -247,7 +247,7 @@ void ScFormulaReferenceHelper::HideReference( bool bDoneRefMode )
pTabViewShell
->
DoneRefMode
(
false
);
pTabViewShell
->
ClearHighlightRanges
();
}
bHigh
L
ightRef
=
false
;
bHigh
l
ightRef
=
false
;
}
}
// -----------------------------------------------------------------------------
...
...
sc/source/ui/miscdlgs/highred.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -70,7 +70,7 @@ ScHighlightChgDlg::ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Wind
MinSize
.
Height
()
+=
2
;
MinSize
.
Width
()
+=
2
;
aOkButton
.
SetClickHdl
(
LINK
(
this
,
ScHighlightChgDlg
,
OKBtnHdl
));
aHighlightBox
.
SetClickHdl
(
LINK
(
this
,
ScHighlightChgDlg
,
High
L
ightHandle
));
aHighlightBox
.
SetClickHdl
(
LINK
(
this
,
ScHighlightChgDlg
,
High
l
ightHandle
));
aFilterCtr
.
SetRefHdl
(
LINK
(
this
,
ScHighlightChgDlg
,
RefHandle
));
aFilterCtr
.
HideRange
(
false
);
aFilterCtr
.
Show
();
...
...
@@ -140,7 +140,7 @@ void ScHighlightChgDlg::Init()
aFilterCtr
.
SetRange
(
aRefStr
);
}
aFilterCtr
.
Enable
(
sal_True
,
sal_True
);
High
L
ightHandle
(
&
aHighlightBox
);
High
l
ightHandle
(
&
aHighlightBox
);
}
//----------------------------------------------------------------------------
...
...
@@ -186,7 +186,7 @@ sal_Bool ScHighlightChgDlg::IsRefInputMode() const
return
aEdAssign
.
IsVisible
();
}
IMPL_LINK
(
ScHighlightChgDlg
,
High
L
ightHandle
,
CheckBox
*
,
pCb
)
IMPL_LINK
(
ScHighlightChgDlg
,
High
l
ightHandle
,
CheckBox
*
,
pCb
)
{
if
(
pCb
!=
NULL
)
{
...
...
sw/inc/charatr.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
::
GetChrHigh
L
ight
(
sal_Bool
bInP
)
const
inline
const
SvxBrushItem
&
SwAttrSet
::
GetChrHigh
l
ight
(
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
::
GetChrHigh
L
ight
(
sal_Bool
bInP
)
const
{
return
aSet
.
GetChrHigh
L
ight
(
bInP
);
}
inline
const
SvxBrushItem
&
SwFmt
::
GetChrHigh
l
ight
(
sal_Bool
bInP
)
const
{
return
aSet
.
GetChrHigh
l
ight
(
bInP
);
}
inline
const
SvxEmphasisMarkItem
&
SwFmt
::
GetEmphasisMark
(
sal_Bool
bInP
)
const
{
return
aSet
.
GetEmphasisMark
(
bInP
);
}
inline
const
SvxTwoLinesItem
&
SwFmt
::
Get2Lines
(
sal_Bool
bInP
)
const
...
...
sw/inc/format.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
&
GetChrHigh
L
ight
(
sal_Bool
=
sal_True
)
const
;
inline
const
SvxBrushItem
&
GetChrHigh
l
ight
(
sal_Bool
=
sal_True
)
const
;
inline
const
SvxFontItem
&
GetCJKFont
(
sal_Bool
=
sal_True
)
const
;
inline
const
SvxFontHeightItem
&
GetCJKSize
(
sal_Bool
=
sal_True
)
const
;
...
...
sw/inc/swatrset.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
&
GetChrHigh
L
ight
(
sal_Bool
=
sal_True
)
const
;
inline
const
SvxBrushItem
&
GetChrHigh
l
ight
(
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
;
...
...
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -121,7 +121,7 @@ public:
void
testStyleInheritance
();
void
testSmartart
();
void
testFdo69636
();
void
testCharHigh
L
ight
();
void
testCharHigh
l
ight
();
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
::
testCharHigh
L
ight
},
{
"char_highlight.docx"
,
&
Test
::
testCharHigh
l
ight
},
};
// 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
::
testCharHigh
L
ight
()
void
Test
::
testCharHigh
l
ight
()
{
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
nHigh
L
ightColor
=
0
;
sal_Int32
nHigh
l
ightColor
=
0
;
switch
(
nRun
)
{
case
1
:
nHigh
L
ightColor
=
0x000000
;
break
;
//black
case
2
:
nHigh
L
ightColor
=
0x0000ff
;
break
;
//blue
case
3
:
nHigh
L
ightColor
=
0x00ffff
;
break
;
//cyan
case
4
:
nHigh
L
ightColor
=
0x00ff00
;
break
;
//green
case
5
:
nHigh
L
ightColor
=
0xff00ff
;
break
;
//magenta
case
6
:
nHigh
L
ightColor
=
0xff0000
;
break
;
//red
case
7
:
nHigh
L
ightColor
=
0xffff00
;
break
;
//yellow
case
8
:
nHigh
L
ightColor
=
0xffffff
;
break
;
//white
case
9
:
nHigh
L
ightColor
=
0x000080
;
break
;
//dark blue
case
10
:
nHigh
L
ightColor
=
0x008080
;
break
;
//dark cyan
case
11
:
nHigh
L
ightColor
=
0x008000
;
break
;
//dark green
case
12
:
nHigh
L
ightColor
=
0x800080
;
break
;
//dark magenta
case
13
:
nHigh
L
ightColor
=
0x800000
;
break
;
//dark red
case
14
:
nHigh
L
ightColor
=
0x808000
;
break
;
//dark yellow
case
15
:
nHigh
L
ightColor
=
0x808080
;
break
;
//dark gray
case
16
:
nHigh
L
ightColor
=
0xC0C0C0
;
break
;
//light gray
case
1
:
nHigh
l
ightColor
=
0x000000
;
break
;
//black
case
2
:
nHigh
l
ightColor
=
0x0000ff
;
break
;
//blue
case
3
:
nHigh
l
ightColor
=
0x00ffff
;
break
;
//cyan
case
4
:
nHigh
l
ightColor
=
0x00ff00
;
break
;
//green
case
5
:
nHigh
l
ightColor
=
0xff00ff
;
break
;
//magenta
case
6
:
nHigh
l
ightColor
=
0xff0000
;
break
;
//red
case
7
:
nHigh
l
ightColor
=
0xffff00
;
break
;
//yellow
case
8
:
nHigh
l
ightColor
=
0xffffff
;
break
;
//white
case
9
:
nHigh
l
ightColor
=
0x000080
;
break
;
//dark blue
case
10
:
nHigh
l
ightColor
=
0x008080
;
break
;
//dark cyan
case
11
:
nHigh
l
ightColor
=
0x008000
;
break
;
//dark green
case
12
:
nHigh
l
ightColor
=
0x800080
;
break
;
//dark magenta
case
13
:
nHigh
l
ightColor
=
0x800000
;
break
;
//dark red
case
14
:
nHigh
l
ightColor
=
0x808000
;
break
;
//dark yellow
case
15
:
nHigh
l
ightColor
=
0x808080
;
break
;
//dark gray
case
16
:
nHigh
l
ightColor
=
0xC0C0C0
;
break
;
//light gray
}
CPPUNIT_ASSERT_EQUAL
(
nHigh
LightColor
,
getProperty
<
sal_Int32
>
(
xRun
,
"CharHighL
ight"
));
CPPUNIT_ASSERT_EQUAL
(
nHigh
lightColor
,
getProperty
<
sal_Int32
>
(
xRun
,
"CharHighl
ight"
));
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
,
"CharHigh
L
ight"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0xC0C0C0
),
getProperty
<
sal_Int32
>
(
xRun
,
"CharHigh
l
ight"
));
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
,
"CharHigh
L
ight"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
COL_TRANSPARENT
),
getProperty
<
sal_Int32
>
(
xRun
,
"CharHigh
l
ight"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0x0000ff
),
getProperty
<
sal_Int32
>
(
xRun
,
"CharBackColor"
));
}
}
...
...
sw/source/core/inc/swfont.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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_aHigh
L
ightColor
;
// highlight color
Color
m_aHigh
l
ightColor
;
// 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
SetHigh
L
ightColor
(
const
Color
&
aNewColor
);
const
Color
&
GetHigh
LightColor
()
const
{
return
m_aHighL
ightColor
;
}
void
SetHigh
l
ightColor
(
const
Color
&
aNewColor
);
const
Color
&
GetHigh
lightColor
()
const
{
return
m_aHighl
ightColor
;
}
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
::
SetHigh
L
ightColor
(
const
Color
&
aNewColor
)
inline
void
SwFont
::
SetHigh
l
ightColor
(
const
Color
&
aNewColor
)
{
m_aHigh
L
ightColor
=
aNewColor
;
m_aHigh
l
ightColor
=
aNewColor
;
bFntChg
=
sal_True
;
aSub
[
SW_LATIN
].
pMagic
=
aSub
[
SW_CJK
].
pMagic
=
aSub
[
SW_CTL
].
pMagic
=
0
;
}
...
...
sw/source/core/text/atrstck.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
.
SetHigh
L
ightColor
(
((
SvxBrushItem
&
)
rItem
).
GetColor
()
);
rFnt
.
SetHigh
l
ightColor
(
((
SvxBrushItem
&
)
rItem
).
GetColor
()
);
break
;
case
RES_CHRATR_CJK_FONT
:
rFnt
.
SetName
(
((
SvxFontItem
&
)
rItem
).
GetFamilyName
(),
SW_CJK
);
...
...
sw/source/core/text/inftxt.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -1184,9 +1184,9 @@ void SwTxtPaintInfo::DrawBackBrush( const SwLinePortion &rPor ) const
pTmpOut
->
Push
(
PUSH_LINECOLOR
|
PUSH_FILLCOLOR
);
if
(
m_pFnt
->
GetHigh
L
ightColor
()
!=
COL_TRANSPARENT
)
if
(
m_pFnt
->
GetHigh
l
ightColor
()
!=
COL_TRANSPARENT
)
{
pTmpOut
->
SetFillColor
(
m_pFnt
->
GetHigh
L
ightColor
()
);
pTmpOut
->
SetFillColor
(
m_pFnt
->
GetHigh
l
ightColor
()
);
}
else
{
...
...
sw/source/core/txtnode/swfont.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
))
SetHigh
L
ightColor
(((
SvxBrushItem
*
)
pItem
)
->
GetColor
());
SetHigh
l
ightColor
(((
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_aHigh
LightColor
=
rFont
.
m_aHighL
ightColor
;
m_aHigh
lightColor
=
rFont
.
m_aHighl
ightColor
;
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
))
SetHigh
L
ightColor
(((
SvxBrushItem
*
)
pItem
)
->
GetColor
());
SetHigh
l
ightColor
(((
SvxBrushItem
*
)
pItem
)
->
GetColor
());
else
SetHigh
L
ightColor
(
COL_TRANSPARENT
);
SetHigh
l
ightColor
(
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_aHigh
LightColor
=
rFont
.
m_aHighL
ightColor
;
m_aHigh
lightColor
=
rFont
.
m_aHighl
ightColor
;
m_aTopBorder
=
rFont
.
m_aTopBorder
;
m_aBottomBorder
=
rFont
.
m_aBottomBorder
;
m_aRightBorder
=
rFont
.
m_aRightBorder
;
...
...
sw/source/core/unocore/unoprnms.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
(
"CharHigh
L
ight"
)},
/* 0776 UNO_NAME_CHAR_HIGHLIGHT */
{
MAP_CHAR_LEN
(
"CharHigh
l
ight"
)},
// new items in this array must match enum SwPropNameIds
};
...
...
sw/source/filter/ww8/attributeoutputbase.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
CharHigh
L
ight
(
const
SvxBrushItem
&
)
=
0
;
virtual
void
CharHigh
l
ight
(
const
SvxBrushItem
&
)
=
0
;
/// Sfx item RES_TXTATR_INETFMT
virtual
void
TextINetFormat
(
const
SwFmtINetFmt
&
)
=
0
;
...
...
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -3815,7 +3815,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, FontFam
FSEND
);
}
OString
DocxAttributeOutput
::
TransHigh
L
ightColor
(
const
Color
&
rColor
)
OString
DocxAttributeOutput
::
TransHigh
l
ightColor
(
const
Color
&
rColor
)
{
switch
(
rColor
.
GetColor
())
{
...
...
@@ -4424,9 +4424,9 @@ void DocxAttributeOutput::CharBorder(
impl_borderLine
(
m_pSerializer
,
XML_bdr
,
pAllBorder
,
nDist
,
bShadow
);
}
void
DocxAttributeOutput
::
CharHigh
Light
(
const
SvxBrushItem
&
rHighL
ight
)
void
DocxAttributeOutput
::
CharHigh
light
(
const
SvxBrushItem
&
rHighl
ight
)
{
const
OString
sColor
=
TransHigh
LightColor
(
rHighL
ight
.
GetColor
()
);
const
OString
sColor
=
TransHigh
lightColor
(
rHighl
ight
.
GetColor
()
);
if
(
!
sColor
.
isEmpty
()
)
{
m_pSerializer
->
singleElementNS
(
XML_w
,
XML_highlight
,
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -377,13 +377,13 @@ private:
FontPitch
pitch
,
rtl_TextEncoding
encoding
);
/**
* Translate a color object to the corresponding High
L
ightColorValues enumaration item
* Translate a color object to the corresponding High
l
ightColorValues 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
TransHigh
L
ightColor
(
const
Color
&
rColor
);
OString
TransHigh
l
ightColor
(
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
CharHigh
Light
(
const
SvxBrushItem
&
rHighL
ight
);
virtual
void
CharHigh
light
(
const
SvxBrushItem
&
rHighl
ight
);
/// Sfx item RES_TXTATR_INETFMT
virtual
void
TextINetFormat
(
const
SwFmtINetFmt
&
);
...
...
sw/source/filter/ww8/rtfattributeoutput.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
CharHigh
L
ight
(
const
SvxBrushItem
&
){};
virtual
void
CharHigh
l
ight
(
const
SvxBrushItem
&
){};
/// Sfx item RES_TXTATR_INETFMT
virtual
void
TextINetFormat
(
const
SwFmtINetFmt
&
);
...
...
sw/source/filter/ww8/ww8atr.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -5145,7 +5145,7 @@ void AttributeOutputBase::OutputItem( const SfxPoolItem& rHt )
FormatCharBorder
(
static_cast
<
const
SvxBoxItem
&
>
(
rHt
)
);
break
;
case
RES_CHRATR_HIGHLIGHT
:
CharHigh
L
ight
(
static_cast
<
const
SvxBrushItem
&
>
(
rHt
)
);
CharHigh
l
ight
(
static_cast
<
const
SvxBrushItem
&
>
(
rHt
)
);
break
;
case
RES_TXTATR_INETFMT
:
...
...
sw/source/filter/ww8/ww8attributeoutput.hxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -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
CharHigh
L
ight
(
const
SvxBrushItem
&
){};
virtual
void
CharHigh
l
ight
(
const
SvxBrushItem
&
){};
/// Sfx item RES_TXTATR_INETFMT
virtual
void
TextINetFormat
(
const
SwFmtINetFmt
&
);
...
...
writerfilter/source/dmapper/PropertyIds.cxx
Dosyayı görüntüle @
2997d7d1
...
...
@@ -114,7 +114,7 @@ const OUString& PropertyNameSupplier::GetName( PropertyIds eId ) const
case
PROP_CHAR_TOP_BORDER_DISTANCE
:
sName
=
"CharTopBorderDistance"
;
break
;
case
PROP_CHAR_BOTTOM_BORDER_DISTANCE
:
sName
=
"CharBottomBorderDistance"
;
break
;
case
PROP_CHAR_SHADOW_FORMAT
:
sName
=
"CharShadowFormat"
;
break
;
case
PROP_CHAR_HIGHLIGHT
:
sName
=
"CharHigh
L
ight"
;
break
;
case
PROP_CHAR_HIGHLIGHT
:
sName
=
"CharHigh
l
ight"
;
break
;
case
PROP_PARA_STYLE_NAME
:
sName
=
"ParaStyleName"
;
break
;
case
PROP_PARA_ADJUST
:
sName
=
"ParaAdjust"
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment