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
2a98a039
Kaydet (Commit)
2a98a039
authored
May 11, 2014
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use transparent color directly
Change-Id: I47693666b3dd218eb8a74b936038c9169b054af1
üst
b07377b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
edtwin.cxx
sw/source/core/uibase/docvw/edtwin.cxx
+2
-8
edtwin.hxx
sw/source/core/uibase/inc/edtwin.hxx
+0
-5
textsh1.cxx
sw/source/core/uibase/shells/textsh1.cxx
+1
-5
No files found.
sw/source/core/uibase/docvw/edtwin.cxx
Dosyayı görüntüle @
2a98a039
...
...
@@ -183,7 +183,6 @@ long SwEditWin::m_nDDStartPosX = 0;
*/
Color
SwEditWin
::
m_aTextBackColor
(
COL_YELLOW
);
Color
SwEditWin
::
m_aTextColor
(
COL_RED
);
bool
SwEditWin
::
m_bTransparentBackColor
=
false
;
// background not transparent
extern
bool
bExecuteDrag
;
...
...
@@ -4679,14 +4678,9 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
if
(
rSh
.
IsSelection
()
&&
!
rSh
.
HasReadonlySel
()
)
{
if
(
nId
==
RES_CHRATR_BACKGROUND
)
{
Color
aColor
(
COL_TRANSPARENT
);
if
(
!
SwEditWin
::
m_bTransparentBackColor
)
aColor
=
SwEditWin
::
m_aTextBackColor
;
rSh
.
SetAttrItem
(
SvxBrushItem
(
aColor
,
nId
)
);
}
rSh
.
SetAttrItem
(
SvxBrushItem
(
SwEditWin
::
m_aTextBackColor
,
nId
)
);
else
rSh
.
SetAttrItem
(
SvxColorItem
(
SwEditWin
::
m_aTextColor
,
nId
)
);
rSh
.
SetAttrItem
(
SvxColorItem
(
SwEditWin
::
m_aTextColor
,
nId
)
);
rSh
.
UnSetVisCrsr
();
rSh
.
EnterStdMode
();
rSh
.
SetVisCrsr
(
aDocPt
);
...
...
sw/source/core/uibase/inc/edtwin.hxx
Dosyayı görüntüle @
2a98a039
...
...
@@ -73,7 +73,6 @@ friend void PageNumNotify( SwViewShell* pVwSh,
static
long
m_nDDStartPosX
,
m_nDDStartPosY
;
static
Color
m_aTextColor
;
// text color; for the watering can
static
bool
m_bTransparentBackColor
;
// transparent background
static
Color
m_aTextBackColor
;
// text background; for the watering can
/*
...
...
@@ -260,10 +259,6 @@ public:
{
return
m_aTextBackColor
;
}
void
SetTextBackColor
(
const
Color
&
rCol
)
{
m_aTextBackColor
=
rCol
;
}
void
SetTextBackColorTransparent
(
bool
bSet
)
{
m_bTransparentBackColor
=
bSet
;
}
bool
IsTextBackColorTransparent
()
{
return
m_bTransparentBackColor
;
}
void
LockKeyInput
(
bool
bSet
){
m_bLockInput
=
bSet
;}
const
SwView
&
GetView
()
const
{
return
m_rView
;
}
...
...
sw/source/core/uibase/shells/textsh1.cxx
Dosyayı görüntüle @
2a98a039
...
...
@@ -1163,7 +1163,6 @@ void SwTextShell::Execute(SfxRequest &rReq)
{
SwEditWin
&
rEdtWin
=
GetView
().
GetEditWin
();
SwApplyTemplate
*
pApply
=
rEdtWin
.
GetApplyTemplate
();
rEdtWin
.
SetTextBackColorTransparent
(
0
==
pItem
);
Color
aSet
;
if
(
pItem
)
{
...
...
@@ -1548,10 +1547,7 @@ void SwTextShell::GetState( SfxItemSet &rSet )
break
;
case
SID_ATTR_CHAR_COLOR_BACKGROUND
:
{
if
(
GetView
().
GetEditWin
().
IsTextBackColorTransparent
())
rSet
.
Put
(
SvxColorItem
(
Color
(
COL_TRANSPARENT
),
SID_ATTR_CHAR_COLOR_BACKGROUND
));
else
rSet
.
Put
(
SvxColorItem
(
GetView
().
GetEditWin
().
GetTextBackColor
(),
SID_ATTR_CHAR_COLOR_BACKGROUND
));
rSet
.
Put
(
SvxColorItem
(
GetView
().
GetEditWin
().
GetTextBackColor
(),
SID_ATTR_CHAR_COLOR_BACKGROUND
));
}
break
;
case
SID_ATTR_CHAR_COLOR_BACKGROUND_EXT
:
...
...
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