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
f94db3d0
Kaydet (Commit)
f94db3d0
authored
Ara 20, 2011
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: Remove unused code
üst
1f2fd91b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
101 deletions
+0
-101
field.hxx
vcl/inc/vcl/field.hxx
+0
-9
field2.cxx
vcl/source/control/field2.cxx
+0
-92
No files found.
vcl/inc/vcl/field.hxx
Dosyayı görüntüle @
f94db3d0
...
...
@@ -386,8 +386,6 @@ public:
void
SetDate
(
const
Date
&
rNewDate
);
void
SetUserDate
(
const
Date
&
rNewDate
);
Date
GetDate
()
const
;
Date
GetRealDate
()
const
;
sal_Bool
IsDateModified
()
const
;
void
SetEmptyDate
();
sal_Bool
IsEmptyDate
()
const
;
Date
GetCorrectedDate
()
const
{
return
maCorrectedDate
;
}
...
...
@@ -835,7 +833,6 @@ class VCL_DLLPUBLIC DateBox : public ComboBox, public DateFormatter
{
public
:
DateBox
(
Window
*
pParent
,
WinBits
nWinStyle
);
DateBox
(
Window
*
pParent
,
const
ResId
&
rResId
);
~
DateBox
();
virtual
long
PreNotify
(
NotifyEvent
&
rNEvt
);
...
...
@@ -845,12 +842,6 @@ public:
virtual
void
Modify
();
virtual
void
ReformatAll
();
void
InsertDate
(
const
Date
&
rDate
,
sal_uInt16
nPos
=
COMBOBOX_APPEND
);
void
RemoveDate
(
const
Date
&
rDate
);
using
DateFormatter
::
GetDate
;
Date
GetDate
(
sal_uInt16
nPos
)
const
;
sal_uInt16
GetDatePos
(
const
Date
&
rDate
)
const
;
};
...
...
vcl/source/control/field2.cxx
Dosyayı görüntüle @
f94db3d0
...
...
@@ -1935,25 +1935,6 @@ Date DateFormatter::GetDate() const
// -----------------------------------------------------------------------
Date
DateFormatter
::
GetRealDate
()
const
{
// !!! TH-18.2.99: Wenn wir Zeit haben sollte dieses auch einmal
// !!! fuer die Numeric-Klassen eingebaut werden.
Date
aDate
(
0
,
0
,
0
);
if
(
GetField
()
)
{
if
(
!
ImplDateGetValue
(
GetField
()
->
GetText
(),
aDate
,
GetExtDateFormat
(
sal_True
),
ImplGetLocaleDataWrapper
(),
GetCalendarWrapper
(),
GetFieldSettings
()
)
)
if
(
ImplAllowMalformedInput
()
)
aDate
=
GetInvalidDate
();
}
return
aDate
;
}
// -----------------------------------------------------------------------
void
DateFormatter
::
SetEmptyDate
()
{
FormatterBase
::
SetEmptyFieldValue
();
...
...
@@ -1982,18 +1963,6 @@ sal_Bool DateFormatter::IsEmptyDate() const
// -----------------------------------------------------------------------
sal_Bool
DateFormatter
::
IsDateModified
()
const
{
if
(
ImplGetEmptyFieldValue
()
)
return
!
IsEmptyDate
();
else
if
(
GetDate
()
!=
maFieldDate
)
return
sal_True
;
else
return
sal_False
;
}
// -----------------------------------------------------------------------
void
DateFormatter
::
Reformat
()
{
if
(
!
GetField
()
)
...
...
@@ -2234,26 +2203,6 @@ DateBox::DateBox( Window* pParent, WinBits nWinStyle ) :
// -----------------------------------------------------------------------
DateBox
::
DateBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
ComboBox
(
WINDOW_DATEBOX
)
{
rResId
.
SetRT
(
RSC_DATEBOX
);
WinBits
nStyle
=
ImplInitRes
(
rResId
);
ComboBox
::
ImplInit
(
pParent
,
nStyle
);
SetField
(
this
);
SetText
(
ImplGetLocaleDataWrapper
().
getDate
(
ImplGetFieldDate
()
)
);
ComboBox
::
ImplLoadRes
(
rResId
);
ResMgr
*
pMgr
=
rResId
.
GetResMgr
();
if
(
pMgr
)
DateFormatter
::
ImplLoadRes
(
ResId
(
(
RSHEADER_TYPE
*
)
GetClassRes
(),
*
pMgr
)
);
Reformat
();
if
(
!
(
nStyle
&
WB_HIDE
)
)
Show
();
}
// -----------------------------------------------------------------------
DateBox
::~
DateBox
()
{
}
...
...
@@ -2338,47 +2287,6 @@ void DateBox::ReformatAll()
// -----------------------------------------------------------------------
void
DateBox
::
InsertDate
(
const
Date
&
rDate
,
sal_uInt16
nPos
)
{
Date
aDate
=
rDate
;
if
(
aDate
>
GetMax
()
)
aDate
=
GetMax
();
else
if
(
aDate
<
GetMin
()
)
aDate
=
GetMin
();
ComboBox
::
InsertEntry
(
ImplGetDateAsText
(
aDate
,
GetFieldSettings
()
),
nPos
);
}
// -----------------------------------------------------------------------
void
DateBox
::
RemoveDate
(
const
Date
&
rDate
)
{
ComboBox
::
RemoveEntry
(
ImplGetDateAsText
(
rDate
,
GetFieldSettings
()
)
);
}
// -----------------------------------------------------------------------
Date
DateBox
::
GetDate
(
sal_uInt16
nPos
)
const
{
Date
aDate
(
0
,
0
,
0
);
ImplDateGetValue
(
ComboBox
::
GetEntry
(
nPos
),
aDate
,
GetExtDateFormat
(
sal_True
),
ImplGetLocaleDataWrapper
(),
GetCalendarWrapper
(),
GetSettings
()
);
return
aDate
;
}
// -----------------------------------------------------------------------
sal_uInt16
DateBox
::
GetDatePos
(
const
Date
&
rDate
)
const
{
XubString
aStr
;
if
(
IsLongFormat
()
)
aStr
=
ImplGetLocaleDataWrapper
().
getLongDate
(
rDate
,
GetCalendarWrapper
(),
1
,
sal_False
,
1
,
!
IsShowDateCentury
()
);
else
aStr
=
ImplGetLocaleDataWrapper
().
getDate
(
rDate
);
return
ComboBox
::
GetEntryPos
(
aStr
);
}
// -----------------------------------------------------------------------
static
sal_Bool
ImplTimeProcessKeyInput
(
Edit
*
,
const
KeyEvent
&
rKEvt
,
sal_Bool
bStrictFormat
,
sal_Bool
bDuration
,
TimeFieldFormat
eFormat
,
...
...
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