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
2dfd8f15
Kaydet (Commit)
2dfd8f15
authored
Tem 02, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
correct enumerate the condition entries in the dialog
Change-Id: I43c83674464f7c41505735b2ec4208f21567ed4c
üst
adc2aebb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
7 deletions
+28
-7
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+14
-1
condformathelper.cxx
sc/source/ui/condformat/condformathelper.cxx
+5
-4
condformatdlg.hrc
sc/source/ui/inc/condformatdlg.hrc
+1
-0
condformatdlg.hxx
sc/source/ui/inc/condformatdlg.hxx
+3
-0
condformatdlg.src
sc/source/ui/src/condformatdlg.src
+4
-1
globstr.src
sc/source/ui/src/globstr.src
+1
-1
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
2dfd8f15
...
...
@@ -143,7 +143,9 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc):
maEdDataBarMin
(
this
,
ScResId
(
ED_COL_SCALE
)
),
maEdDataBarMax
(
this
,
ScResId
(
ED_COL_SCALE
)
),
maBtOptions
(
this
,
ScResId
(
BTN_OPTIONS
)
),
mpDoc
(
pDoc
)
mpDoc
(
pDoc
),
mnIndex
(
0
),
maStrCondition
(
ScResId
(
STR_CONDITION
).
toString
())
{
SetControlBackground
(
GetSettings
().
GetStyleSettings
().
GetDialogColor
());
FreeResource
();
...
...
@@ -422,6 +424,14 @@ void ScCondFrmtEntry::SwitchToType( ScCondFormatEntryType eType )
}
}
void
ScCondFrmtEntry
::
SetIndex
(
sal_Int32
nIndex
)
{
mnIndex
=
nIndex
;
rtl
::
OUStringBuffer
aBuffer
(
maStrCondition
);
aBuffer
.
append
(
rtl
::
OUString
::
valueOf
(
nIndex
));
maFtCondNr
.
SetText
(
aBuffer
.
makeStringAndClear
());
}
void
ScCondFrmtEntry
::
HideCondElements
()
{
maEdVal1
.
Hide
();
...
...
@@ -937,9 +947,12 @@ ScConditionalFormat* ScCondFormatList::GetConditionalFormat() const
void
ScCondFormatList
::
RecalcAll
()
{
sal_Int32
nTotalHeight
=
0
;
sal_Int32
nIndex
=
1
;
for
(
EntryContainer
::
iterator
itr
=
maEntries
.
begin
();
itr
!=
maEntries
.
end
();
++
itr
)
{
nTotalHeight
+=
itr
->
GetSizePixel
().
Height
();
itr
->
SetIndex
(
nIndex
);
++
nIndex
;
}
Size
aCtrlSize
=
GetOutputSize
();
...
...
sc/source/ui/condformat/condformathelper.cxx
Dosyayı görüntüle @
2dfd8f15
...
...
@@ -9,6 +9,7 @@
#include <rtl/ustrbuf.hxx>
#include "condformathelper.hxx"
#include "globstr.hrc"
namespace
{
...
...
@@ -48,13 +49,13 @@ rtl::OUString getExpression(sal_Int32 nIndex)
case
5
:
return
rtl
::
OUString
(
"!="
);
case
6
:
return
ScGloba
LL
:
GetRscString
(
STR_COND_BETWEEN
);
return
ScGloba
l
:
:
GetRscString
(
STR_COND_BETWEEN
);
case
7
:
return
ScGloba
LL
:
GetRscString
(
STR_COND_NOTBETWEEN
);
return
ScGloba
l
:
:
GetRscString
(
STR_COND_NOTBETWEEN
);
case
8
:
return
ScGloba
LL
:
GetRscString
(
STR_COND_DUPLICATE
);
return
ScGloba
l
:
:
GetRscString
(
STR_COND_DUPLICATE
);
case
9
:
return
ScGloba
LL
:
GetRscString
(
STR_COND_UNIQUE
);
return
ScGloba
l
:
:
GetRscString
(
STR_COND_UNIQUE
);
}
return
rtl
::
OUString
();
}
...
...
sc/source/ui/inc/condformatdlg.hrc
Dosyayı görüntüle @
2dfd8f15
...
...
@@ -53,5 +53,6 @@
#define WD_PREVIEW 26
#define LB_COL 27
#define BTN_OPTIONS 30
#define STR_CONDITION 31
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/inc/condformatdlg.hxx
Dosyayı görüntüle @
2dfd8f15
...
...
@@ -115,6 +115,8 @@ private:
ScDocument
*
mpDoc
;
ScAddress
maPos
;
sal_Int32
mnIndex
;
rtl
::
OUString
maStrCondition
;
DECL_LINK
(
TypeListHdl
,
void
*
);
DECL_LINK
(
ColFormatTypeHdl
,
void
*
);
...
...
@@ -134,6 +136,7 @@ public:
void
Deselect
();
bool
IsSelected
()
const
;
void
SetIndex
(
sal_Int32
nIndex
);
ScFormatEntry
*
GetEntry
()
const
;
};
...
...
sc/source/ui/src/condformatdlg.src
Dosyayı görüntüle @
2dfd8f15
...
...
@@ -80,7 +80,10 @@ Control RID_COND_ENTRY
{
Pos = MAP_APPFONT( 2, 2 );
Size = MAP_APPFONT( 30, 10 );
Text [ en-US ] = "Condition";
};
String STR_CONDITION
{
Text [ en-US ] = "Condition ";
};
FixedText FT_CONDITION
...
...
sc/source/ui/src/globstr.src
Dosyayı görüntüle @
2dfd8f15
...
...
@@ -1865,7 +1865,7 @@ Resource RID_GLOBSTR
};
String STR_COND_CONDITION
{
Text [ en-US ] = "C
ondition
";
Text [ en-US ] = "C
ell value is
";
};
String STR_COND_COLORSCALE
{
...
...
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