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
f7cd8c61
Kaydet (Commit)
f7cd8c61
authored
Ara 02, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
correctly show existing icon sets in the UI
Change-Id: I8970d3b0cc3263f46cfda45ae3b919a441bc0228
üst
6efd796a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
6 deletions
+42
-6
condformatdlgentry.cxx
sc/source/ui/condformat/condformatdlgentry.cxx
+41
-5
condformatdlgentry.hxx
sc/source/ui/inc/condformatdlgentry.hxx
+1
-1
No files found.
sc/source/ui/condformat/condformatdlgentry.cxx
Dosyayı görüntüle @
f7cd8c61
...
@@ -1224,7 +1224,7 @@ IMPL_LINK_NOARG( ScDateFrmtEntry, StyleSelectHdl )
...
@@ -1224,7 +1224,7 @@ IMPL_LINK_NOARG( ScDateFrmtEntry, StyleSelectHdl )
return
0
;
return
0
;
}
}
ScIconSetFrmtEntry
::
ScIconSetFrmtDataEntry
::
ScIconSetFrmtDataEntry
(
Window
*
pParent
,
ScIconSetType
eType
,
sal_Int32
i
)
:
ScIconSetFrmtEntry
::
ScIconSetFrmtDataEntry
::
ScIconSetFrmtDataEntry
(
Window
*
pParent
,
ScIconSetType
eType
,
sal_Int32
i
,
const
ScColorScaleEntry
*
pEntry
)
:
Control
(
pParent
,
ScResId
(
RID_ICON_SET_ENTRY
)
),
Control
(
pParent
,
ScResId
(
RID_ICON_SET_ENTRY
)
),
maImgIcon
(
this
,
ScResId
(
IMG_ICON
)
),
maImgIcon
(
this
,
ScResId
(
IMG_ICON
)
),
maFtEntry
(
this
,
ScResId
(
FT_ICON_SET_ENTRY_TEXT
)
),
maFtEntry
(
this
,
ScResId
(
FT_ICON_SET_ENTRY_TEXT
)
),
...
@@ -1232,6 +1232,30 @@ ScIconSetFrmtEntry::ScIconSetFrmtDataEntry::ScIconSetFrmtDataEntry( Window* pPar
...
@@ -1232,6 +1232,30 @@ ScIconSetFrmtEntry::ScIconSetFrmtDataEntry::ScIconSetFrmtDataEntry( Window* pPar
maLbEntryType
(
this
,
ScResId
(
LB_ICON_SET_ENTRY_TYPE
)
)
maLbEntryType
(
this
,
ScResId
(
LB_ICON_SET_ENTRY_TYPE
)
)
{
{
maImgIcon
.
SetImage
(
ScIconSetFormat
::
getBitmap
(
eType
,
i
));
maImgIcon
.
SetImage
(
ScIconSetFormat
::
getBitmap
(
eType
,
i
));
if
(
pEntry
)
{
switch
(
pEntry
->
GetType
())
{
case
COLORSCALE_VALUE
:
maLbEntryType
.
SelectEntryPos
(
0
);
maEdEntry
.
SetText
(
OUString
::
valueOf
(
pEntry
->
GetValue
()));
break
;
case
COLORSCALE_PERCENTILE
:
maLbEntryType
.
SelectEntryPos
(
2
);
maEdEntry
.
SetText
(
OUString
::
valueOf
(
pEntry
->
GetValue
()));
break
;
case
COLORSCALE_PERCENT
:
maLbEntryType
.
SelectEntryPos
(
1
);
maEdEntry
.
SetText
(
OUString
::
valueOf
(
pEntry
->
GetValue
()));
break
;
case
COLORSCALE_FORMULA
:
maLbEntryType
.
SelectEntryPos
(
3
);
maEdEntry
.
SetText
(
pEntry
->
GetFormula
(
formula
::
FormulaGrammar
::
GRAM_DEFAULT
));
break
;
default
:
assert
(
false
);
}
}
FreeResource
();
FreeResource
();
}
}
...
@@ -1245,10 +1269,22 @@ ScIconSetFrmtEntry::ScIconSetFrmtEntry( Window* pParent, ScDocument* pDoc, const
...
@@ -1245,10 +1269,22 @@ ScIconSetFrmtEntry::ScIconSetFrmtEntry( Window* pParent, ScDocument* pDoc, const
if
(
pFormat
)
if
(
pFormat
)
{
{
const
ScIconSetFormatData
*
pIconSetFormatData
=
pFormat
->
GetIconSetData
();
ScIconSetType
eType
=
pIconSetFormatData
->
eIconSetType
;
sal_Int32
nType
=
static_cast
<
sal_Int32
>
(
eType
);
maLbIconSetType
.
SelectEntryPos
(
nType
);
for
(
size_t
i
=
0
,
n
=
pIconSetFormatData
->
maEntries
.
size
();
i
<
n
;
++
i
)
{
maEntries
.
push_back
(
new
ScIconSetFrmtDataEntry
(
this
,
eType
,
i
,
&
pIconSetFormatData
->
maEntries
[
i
]
)
);
Point
aPos
=
maEntries
[
0
].
GetPosPixel
();
aPos
.
Y
()
+=
maEntries
[
0
].
GetSizePixel
().
Height
()
*
i
*
1.2
;
maEntries
[
i
].
SetPosPixel
(
aPos
);
}
}
}
else
IconSetTypeHdl
(
NULL
);
IconSetTypeHdl
(
NULL
);
}
}
void
ScIconSetFrmtEntry
::
Init
()
void
ScIconSetFrmtEntry
::
Init
()
...
@@ -1291,7 +1327,7 @@ void ScIconSetFrmtEntry::SetActive()
...
@@ -1291,7 +1327,7 @@ void ScIconSetFrmtEntry::SetActive()
for
(
ScIconSetFrmtDateEntriesType
::
iterator
itr
=
maEntries
.
begin
(),
for
(
ScIconSetFrmtDateEntriesType
::
iterator
itr
=
maEntries
.
begin
(),
itrEnd
=
maEntries
.
end
();
itr
!=
itrEnd
;
++
itr
)
itrEnd
=
maEntries
.
end
();
itr
!=
itrEnd
;
++
itr
)
{
{
maEntries
[
0
].
Show
();
itr
->
Show
();
}
}
Select
();
Select
();
...
@@ -1304,7 +1340,7 @@ void ScIconSetFrmtEntry::SetInactive()
...
@@ -1304,7 +1340,7 @@ void ScIconSetFrmtEntry::SetInactive()
for
(
ScIconSetFrmtDateEntriesType
::
iterator
itr
=
maEntries
.
begin
(),
for
(
ScIconSetFrmtDateEntriesType
::
iterator
itr
=
maEntries
.
begin
(),
itrEnd
=
maEntries
.
end
();
itr
!=
itrEnd
;
++
itr
)
itrEnd
=
maEntries
.
end
();
itr
!=
itrEnd
;
++
itr
)
{
{
maEntries
[
0
].
Hide
();
itr
->
Hide
();
}
}
Deselect
();
Deselect
();
...
...
sc/source/ui/inc/condformatdlgentry.hxx
Dosyayı görüntüle @
f7cd8c61
...
@@ -257,7 +257,7 @@ class ScIconSetFrmtEntry : public ScCondFrmtEntry
...
@@ -257,7 +257,7 @@ class ScIconSetFrmtEntry : public ScCondFrmtEntry
ListBox
maLbEntryType
;
ListBox
maLbEntryType
;
public
:
public
:
ScIconSetFrmtDataEntry
(
Window
*
pParent
,
ScIconSetType
eType
,
sal_Int32
i
);
ScIconSetFrmtDataEntry
(
Window
*
pParent
,
ScIconSetType
eType
,
sal_Int32
i
,
const
ScColorScaleEntry
*
pEntry
=
NULL
);
};
};
typedef
boost
::
ptr_vector
<
ScIconSetFrmtDataEntry
>
ScIconSetFrmtDateEntriesType
;
typedef
boost
::
ptr_vector
<
ScIconSetFrmtDataEntry
>
ScIconSetFrmtDateEntriesType
;
ScIconSetFrmtDateEntriesType
maEntries
;
ScIconSetFrmtDateEntriesType
maEntries
;
...
...
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