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
d8a85436
Kaydet (Commit)
d8a85436
authored
Eki 06, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
enable the add button in manage conditional formats
Change-Id: I82a0abf58f8fc68d0e9e145923961fa3e3c654fe
üst
c2d8d607
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
condformatmgr.cxx
sc/source/ui/condformat/condformatmgr.cxx
+36
-1
condformatmgr.hxx
sc/source/ui/inc/condformatmgr.hxx
+1
-0
No files found.
sc/source/ui/condformat/condformatmgr.cxx
Dosyayı görüntüle @
d8a85436
...
...
@@ -181,8 +181,8 @@ ScCondFormatManagerDlg::ScCondFormatManagerDlg(Window* pParent, ScDocument* pDoc
maBtnRemove
.
SetClickHdl
(
LINK
(
this
,
ScCondFormatManagerDlg
,
RemoveBtnHdl
));
maBtnEdit
.
SetClickHdl
(
LINK
(
this
,
ScCondFormatManagerDlg
,
EditBtnHdl
));
maBtnAdd
.
SetClickHdl
(
LINK
(
this
,
ScCondFormatManagerDlg
,
AddBtnHdl
));
maCtrlManager
.
GetListControl
().
SetDoubleClickHdl
(
LINK
(
this
,
ScCondFormatManagerDlg
,
EditBtnHdl
));
maBtnAdd
.
Hide
();
}
ScCondFormatManagerDlg
::~
ScCondFormatManagerDlg
()
...
...
@@ -233,4 +233,39 @@ IMPL_LINK_NOARG(ScCondFormatManagerDlg, EditBtnHdl)
return
0
;
}
namespace
{
sal_uInt32
FindKey
(
ScConditionalFormatList
*
pFormatList
)
{
sal_uInt32
nKey
=
0
;
for
(
ScConditionalFormatList
::
const_iterator
itr
=
pFormatList
->
begin
(),
itrEnd
=
pFormatList
->
end
();
itr
!=
itrEnd
;
++
itr
)
{
if
(
itr
->
GetKey
()
>
nKey
)
nKey
=
itr
->
GetKey
();
}
return
nKey
+
1
;
}
}
IMPL_LINK_NOARG
(
ScCondFormatManagerDlg
,
AddBtnHdl
)
{
boost
::
scoped_ptr
<
ScCondFormatDlg
>
pDlg
(
new
ScCondFormatDlg
(
this
,
mpDoc
,
NULL
,
ScRangeList
(),
maPos
,
condformat
::
dialog
::
CONDITION
));
if
(
pDlg
->
Execute
()
==
RET_OK
)
{
ScConditionalFormat
*
pNewFormat
=
pDlg
->
GetConditionalFormat
();
mpFormatList
->
InsertNew
(
pNewFormat
);
pNewFormat
->
SetKey
(
FindKey
(
mpFormatList
));
maCtrlManager
.
Update
();
mbModified
=
true
;
}
return
0
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/inc/condformatmgr.hxx
Dosyayı görüntüle @
d8a85436
...
...
@@ -106,6 +106,7 @@ private:
DECL_LINK
(
RemoveBtnHdl
,
void
*
);
DECL_LINK
(
EditBtnHdl
,
void
*
);
DECL_LINK
(
AddBtnHdl
,
void
*
);
bool
mbModified
;
};
...
...
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