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
b85a2af7
Kaydet (Commit)
b85a2af7
authored
Tem 16, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
disable edit field for min and max type, fdo#51834
Change-Id: Id77c58f333bfab5446cf96d24cd9ccfc18802862
üst
e11c88d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+40
-0
condformatdlg.hxx
sc/source/ui/inc/condformatdlg.hxx
+1
-0
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
b85a2af7
...
@@ -173,6 +173,10 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc):
...
@@ -173,6 +173,10 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc):
SwitchToType
(
COLLAPSED
);
SwitchToType
(
COLLAPSED
);
SetHeight
();
SetHeight
();
SetCondType
();
SetCondType
();
EntryTypeHdl
(
&
maLbEntryTypeMin
);
EntryTypeHdl
(
&
maLbEntryTypeMiddle
);
EntryTypeHdl
(
&
maLbEntryTypeMax
);
}
}
ScCondFrmtEntry
::
ScCondFrmtEntry
(
Window
*
pParent
,
ScDocument
*
pDoc
,
const
ScFormatEntry
*
pFormatEntry
)
:
ScCondFrmtEntry
::
ScCondFrmtEntry
(
Window
*
pParent
,
ScDocument
*
pDoc
,
const
ScFormatEntry
*
pFormatEntry
)
:
...
@@ -297,6 +301,10 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc, const ScForm
...
@@ -297,6 +301,10 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc, const ScForm
maClickHdl
=
LINK
(
pParent
,
ScCondFormatList
,
EntrySelectHdl
);
maClickHdl
=
LINK
(
pParent
,
ScCondFormatList
,
EntrySelectHdl
);
SwitchToType
(
COLLAPSED
);
SwitchToType
(
COLLAPSED
);
SetHeight
();
SetHeight
();
EntryTypeHdl
(
&
maLbEntryTypeMin
);
EntryTypeHdl
(
&
maLbEntryTypeMiddle
);
EntryTypeHdl
(
&
maLbEntryTypeMax
);
}
}
ScCondFrmtEntry
::~
ScCondFrmtEntry
()
ScCondFrmtEntry
::~
ScCondFrmtEntry
()
...
@@ -307,6 +315,12 @@ void ScCondFrmtEntry::Init()
...
@@ -307,6 +315,12 @@ void ScCondFrmtEntry::Init()
{
{
maLbType
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
TypeListHdl
)
);
maLbType
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
TypeListHdl
)
);
maLbColorFormat
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
ColFormatTypeHdl
)
);
maLbColorFormat
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
ColFormatTypeHdl
)
);
maLbEntryTypeMin
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
EntryTypeHdl
)
);
maLbEntryTypeMax
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
EntryTypeHdl
)
);
maLbEntryTypeMiddle
.
SetSelectHdl
(
LINK
(
this
,
ScCondFrmtEntry
,
EntryTypeHdl
)
);
SfxStyleSheetIterator
aStyleIter
(
mpDoc
->
GetStyleSheetPool
(),
SFX_STYLE_FAMILY_PARA
);
SfxStyleSheetIterator
aStyleIter
(
mpDoc
->
GetStyleSheetPool
(),
SFX_STYLE_FAMILY_PARA
);
for
(
SfxStyleSheetBase
*
pStyle
=
aStyleIter
.
First
();
pStyle
;
pStyle
=
aStyleIter
.
Next
()
)
for
(
SfxStyleSheetBase
*
pStyle
=
aStyleIter
.
First
();
pStyle
;
pStyle
=
aStyleIter
.
Next
()
)
{
{
...
@@ -813,6 +827,31 @@ IMPL_LINK_NOARG(ScCondFrmtEntry, ColFormatTypeHdl)
...
@@ -813,6 +827,31 @@ IMPL_LINK_NOARG(ScCondFrmtEntry, ColFormatTypeHdl)
return
0
;
return
0
;
}
}
IMPL_LINK
(
ScCondFrmtEntry
,
EntryTypeHdl
,
ListBox
*
,
pBox
)
{
bool
bEnableEdit
=
true
;
sal_Int32
nPos
=
pBox
->
GetSelectEntryPos
();
if
(
nPos
==
0
||
nPos
==
1
)
{
bEnableEdit
=
false
;
}
Edit
*
pEd
=
NULL
;
if
(
pBox
==
&
maLbEntryTypeMin
)
pEd
=
&
maEdMin
;
else
if
(
pBox
==
&
maLbEntryTypeMiddle
)
pEd
=
&
maEdMiddle
;
else
if
(
pBox
==
&
maLbEntryTypeMax
)
pEd
=
&
maEdMax
;
if
(
bEnableEdit
)
pEd
->
Enable
();
else
pEd
->
Disable
();
return
0
;
}
IMPL_LINK_NOARG
(
ScCondFrmtEntry
,
StyleSelectHdl
)
IMPL_LINK_NOARG
(
ScCondFrmtEntry
,
StyleSelectHdl
)
{
{
if
(
maLbStyle
.
GetSelectEntryPos
()
==
0
)
if
(
maLbStyle
.
GetSelectEntryPos
()
==
0
)
...
@@ -906,6 +945,7 @@ IMPL_LINK_NOARG( ScCondFrmtEntry, ConditionTypeSelectHdl )
...
@@ -906,6 +945,7 @@ IMPL_LINK_NOARG( ScCondFrmtEntry, ConditionTypeSelectHdl )
{
{
maEdVal2
.
Hide
();
maEdVal2
.
Hide
();
}
}
return
0
;
return
0
;
}
}
...
...
sc/source/ui/inc/condformatdlg.hxx
Dosyayı görüntüle @
b85a2af7
...
@@ -124,6 +124,7 @@ private:
...
@@ -124,6 +124,7 @@ private:
DECL_LINK
(
OptionBtnHdl
,
void
*
);
DECL_LINK
(
OptionBtnHdl
,
void
*
);
DECL_LINK
(
DataBarTypeSelectHdl
,
void
*
);
DECL_LINK
(
DataBarTypeSelectHdl
,
void
*
);
DECL_LINK
(
ConditionTypeSelectHdl
,
void
*
);
DECL_LINK
(
ConditionTypeSelectHdl
,
void
*
);
DECL_LINK
(
EntryTypeHdl
,
ListBox
*
);
public
:
public
:
ScCondFrmtEntry
(
Window
*
pParent
,
ScDocument
*
pDoc
);
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