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
7b5ded5e
Kaydet (Commit)
7b5ded5e
authored
Haz 10, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
set correct range as title + update for (not) between
Change-Id: I4b819920417c1b2c67b27295170c7a56108fef64
üst
796e1882
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+22
-1
docfunc.cxx
sc/source/ui/docshell/docfunc.cxx
+1
-1
condformatdlg.hxx
sc/source/ui/inc/condformatdlg.hxx
+1
-0
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
7b5ded5e
...
...
@@ -217,6 +217,7 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc, const ScForm
maLbStyle
.
SelectEntry
(
aStyleName
);
ScConditionMode
eMode
=
pEntry
->
GetOperation
();
maLbType
.
SelectEntryPos
(
1
);
maEdVal1
.
SetText
(
pEntry
->
GetExpression
(
maPos
,
0
));
switch
(
eMode
)
{
case
SC_COND_EQUAL
:
...
...
@@ -238,9 +239,11 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc, const ScForm
maLbCondType
.
SelectEntryPos
(
5
);
break
;
case
SC_COND_BETWEEN
:
maEdVal2
.
SetText
(
pEntry
->
GetExpression
(
maPos
,
1
));
maLbCondType
.
SelectEntryPos
(
6
);
break
;
case
SC_COND_NOTBETWEEN
:
maEdVal2
.
SetText
(
pEntry
->
GetExpression
(
maPos
,
1
));
maLbCondType
.
SelectEntryPos
(
7
);
break
;
case
SC_COND_DUPLICATE
:
...
...
@@ -374,6 +377,7 @@ void ScCondFrmtEntry::Init()
maBtOptions
.
SetClickHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
OptionBtnHdl
)
);
maLbDataBarMinType
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
DataBarTypeSelectHdl
)
);
maLbDataBarMaxType
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
DataBarTypeSelectHdl
)
);
maLbCondType
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
ConditionTypeSelectHdl
)
);
mpDataBarData
.
reset
(
new
ScDataBarFormatData
());
mpDataBarData
->
mpUpperLimit
.
reset
(
new
ScColorScaleEntry
());
...
...
@@ -860,6 +864,23 @@ IMPL_LINK_NOARG( ScCondFrmtEntry, OptionBtnHdl )
return
0
;
}
IMPL_LINK_NOARG
(
ScCondFrmtEntry
,
ConditionTypeSelectHdl
)
{
if
(
maLbCondType
.
GetSelectEntryPos
()
==
6
||
maLbCondType
.
GetSelectEntryPos
()
==
7
)
{
std
::
cout
<<
"OldSize: "
<<
maEdVal1
.
GetSizePixel
().
Width
()
<<
" "
<<
maEdVal1
.
GetSizePixel
().
Height
()
<<
std
::
endl
;
maEdVal1
.
SetSizePixel
(
maEdVal2
.
GetSizePixel
());
maEdVal2
.
Show
();
}
else
{
maEdVal2
.
Hide
();
Size
aSize
(
193
,
30
);
maEdVal1
.
SetSizePixel
(
aSize
);
}
return
0
;
}
ScCondFormatList
::
ScCondFormatList
(
Window
*
pParent
,
const
ResId
&
rResId
,
ScDocument
*
pDoc
)
:
Control
(
pParent
,
rResId
),
mbHasScrollBar
(
false
),
...
...
@@ -981,7 +1002,7 @@ ScCondFormatDlg::ScCondFormatDlg(Window* pParent, ScDocument* pDoc, const ScCond
rtl
::
OUStringBuffer
aTitle
(
GetText
()
);
aTitle
.
append
(
rtl
::
OUString
(
" "
));
rtl
::
OUString
aRangeString
;
rRange
.
Format
(
aRangeString
,
0
,
pDoc
);
rRange
.
Format
(
aRangeString
,
SCA_VALID
,
pDoc
,
pDoc
->
GetAddressConvention
()
);
aTitle
.
append
(
aRangeString
);
SetText
(
aTitle
.
makeStringAndClear
());
maBtnAdd
.
SetClickHdl
(
LINK
(
&
maCondFormList
,
ScCondFormatList
,
AddBtnHdl
)
);
...
...
sc/source/ui/docshell/docfunc.cxx
Dosyayı görüntüle @
7b5ded5e
...
...
@@ -5075,7 +5075,7 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
ScMarkData
aMarkData
;
aMarkData
.
MarkFromRangeList
(
rRanges
,
true
);
pDoc
->
ApplySelectionPattern
(
aPattern
,
aMarkData
);
size_t
n
=
rRanges
.
size
()
size_t
n
=
rRanges
.
size
()
;
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
pFormat
->
DoRepaint
(
rRanges
[
i
]);
}
...
...
sc/source/ui/inc/condformatdlg.hxx
Dosyayı görüntüle @
7b5ded5e
...
...
@@ -126,6 +126,7 @@ private:
DECL_LINK
(
StyleSelectHdl
,
void
*
);
DECL_LINK
(
OptionBtnHdl
,
void
*
);
DECL_LINK
(
DataBarTypeSelectHdl
,
void
*
);
DECL_LINK
(
ConditionTypeSelectHdl
,
void
*
);
public
:
ScCondFrmtEntry
(
Window
*
pParent
,
ScDocument
*
pDoc
);
...
...
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