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
32096886
Kaydet (Commit)
32096886
authored
Tem 12, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: remove unused TimeBox::Foo
üst
58eaf5ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
81 deletions
+0
-81
field.hxx
vcl/inc/vcl/field.hxx
+0
-7
field2.cxx
vcl/source/control/field2.cxx
+0
-74
No files found.
vcl/inc/vcl/field.hxx
Dosyayı görüntüle @
32096886
...
@@ -866,7 +866,6 @@ class VCL_DLLPUBLIC TimeBox : public ComboBox, public TimeFormatter
...
@@ -866,7 +866,6 @@ class VCL_DLLPUBLIC TimeBox : public ComboBox, public TimeFormatter
{
{
public
:
public
:
TimeBox
(
Window
*
pParent
,
WinBits
nWinStyle
);
TimeBox
(
Window
*
pParent
,
WinBits
nWinStyle
);
TimeBox
(
Window
*
pParent
,
const
ResId
&
rResId
);
~
TimeBox
();
~
TimeBox
();
virtual
long
PreNotify
(
NotifyEvent
&
rNEvt
);
virtual
long
PreNotify
(
NotifyEvent
&
rNEvt
);
...
@@ -876,12 +875,6 @@ public:
...
@@ -876,12 +875,6 @@ public:
virtual
void
Modify
();
virtual
void
Modify
();
virtual
void
ReformatAll
();
virtual
void
ReformatAll
();
void
InsertTime
(
const
Time
&
rTime
,
sal_uInt16
nPos
=
COMBOBOX_APPEND
);
void
RemoveTime
(
const
Time
&
rTime
);
using
TimeFormatter
::
GetTime
;
Time
GetTime
(
sal_uInt16
nPos
)
const
;
sal_uInt16
GetTimePos
(
const
Time
&
rTime
)
const
;
};
};
#endif // _SV_FIELD_HXX
#endif // _SV_FIELD_HXX
...
...
vcl/source/control/field2.cxx
Dosyayı görüntüle @
32096886
...
@@ -3323,26 +3323,6 @@ TimeBox::TimeBox( Window* pParent, WinBits nWinStyle ) :
...
@@ -3323,26 +3323,6 @@ TimeBox::TimeBox( Window* pParent, WinBits nWinStyle ) :
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
TimeBox
::
TimeBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
ComboBox
(
WINDOW_TIMEBOX
)
{
rResId
.
SetRT
(
RSC_TIMEBOX
);
WinBits
nStyle
=
ImplInitRes
(
rResId
);
ComboBox
::
ImplInit
(
pParent
,
nStyle
);
SetField
(
this
);
SetText
(
ImplGetLocaleDataWrapper
().
getTime
(
maFieldTime
,
sal_False
,
sal_False
)
);
ComboBox
::
ImplLoadRes
(
rResId
);
ResMgr
*
pMgr
=
rResId
.
GetResMgr
();
if
(
pMgr
)
TimeFormatter
::
ImplLoadRes
(
ResId
(
(
RSHEADER_TYPE
*
)
GetClassRes
(),
*
pMgr
)
);
Reformat
();
if
(
!
(
nStyle
&
WB_HIDE
)
)
Show
();
}
// -----------------------------------------------------------------------
TimeBox
::~
TimeBox
()
TimeBox
::~
TimeBox
()
{
{
}
}
...
@@ -3414,58 +3394,4 @@ void TimeBox::ReformatAll()
...
@@ -3414,58 +3394,4 @@ void TimeBox::ReformatAll()
SetUpdateMode
(
sal_True
);
SetUpdateMode
(
sal_True
);
}
}
// -----------------------------------------------------------------------
void
TimeBox
::
InsertTime
(
const
Time
&
rTime
,
sal_uInt16
nPos
)
{
Time
aTime
=
rTime
;
if
(
aTime
>
GetMax
()
)
aTime
=
GetMax
();
else
if
(
aTime
<
GetMin
()
)
aTime
=
GetMin
();
sal_Bool
bSec
=
sal_False
;
sal_Bool
b100Sec
=
sal_False
;
if
(
GetFormat
()
==
TIMEF_SEC
)
bSec
=
sal_True
;
if
(
GetFormat
()
==
TIMEF_100TH_SEC
||
GetFormat
()
==
TIMEF_SEC_CS
)
bSec
=
b100Sec
=
sal_True
;
ComboBox
::
InsertEntry
(
ImplGetLocaleDataWrapper
().
getTime
(
aTime
,
bSec
,
b100Sec
),
nPos
);
}
// -----------------------------------------------------------------------
void
TimeBox
::
RemoveTime
(
const
Time
&
rTime
)
{
sal_Bool
bSec
=
sal_False
;
sal_Bool
b100Sec
=
sal_False
;
if
(
GetFormat
()
==
TIMEF_SEC
)
bSec
=
sal_True
;
if
(
GetFormat
()
==
TIMEF_100TH_SEC
||
TIMEF_SEC_CS
)
bSec
=
b100Sec
=
sal_True
;
ComboBox
::
RemoveEntry
(
ImplGetLocaleDataWrapper
().
getTime
(
rTime
,
bSec
,
b100Sec
)
);
}
// -----------------------------------------------------------------------
Time
TimeBox
::
GetTime
(
sal_uInt16
nPos
)
const
{
Time
aTime
(
0
,
0
,
0
);
ImplTimeGetValue
(
ComboBox
::
GetEntry
(
nPos
),
aTime
,
GetFormat
(),
IsDuration
(),
ImplGetLocaleDataWrapper
()
);
return
aTime
;
}
// -----------------------------------------------------------------------
sal_uInt16
TimeBox
::
GetTimePos
(
const
Time
&
rTime
)
const
{
sal_Bool
bSec
=
sal_False
;
sal_Bool
b100Sec
=
sal_False
;
if
(
GetFormat
()
==
TIMEF_SEC
)
bSec
=
sal_True
;
if
(
GetFormat
()
==
TIMEF_100TH_SEC
||
TIMEF_SEC_CS
)
bSec
=
b100Sec
=
sal_True
;
return
ComboBox
::
GetEntryPos
(
ImplGetLocaleDataWrapper
().
getTime
(
rTime
,
bSec
,
b100Sec
)
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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