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
190196b9
Kaydet (Commit)
190196b9
authored
Ara 31, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Date/Time no longer loaded from rsc files
Change-Id: Ia9ed86b0d96cac76c2e1639065a4ac594c2966b1
üst
959bcd56
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
53 deletions
+0
-53
date.hxx
include/tools/date.hxx
+0
-3
rcid.h
include/tools/rcid.h
+0
-3
time.hxx
include/tools/time.hxx
+0
-3
rc.cxx
tools/source/rc/rc.cxx
+0
-44
No files found.
include/tools/date.hxx
Dosyayı görüntüle @
190196b9
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/Date.hpp>
#include <sal/log.hxx>
#include <sal/log.hxx>
class
ResId
;
enum
DayOfWeek
{
MONDAY
,
TUESDAY
,
WEDNESDAY
,
THURSDAY
,
FRIDAY
,
enum
DayOfWeek
{
MONDAY
,
TUESDAY
,
WEDNESDAY
,
THURSDAY
,
FRIDAY
,
SATURDAY
,
SUNDAY
};
SATURDAY
,
SUNDAY
};
...
@@ -53,7 +51,6 @@ public:
...
@@ -53,7 +51,6 @@ public:
Date
(
DateInitEmpty
)
Date
(
DateInitEmpty
)
{
nDate
=
0
;
}
{
nDate
=
0
;
}
Date
(
DateInitSystem
);
Date
(
DateInitSystem
);
Date
(
const
ResId
&
rResId
);
Date
(
sal_uInt32
_nDate
)
{
Date
::
nDate
=
_nDate
;
}
Date
(
sal_uInt32
_nDate
)
{
Date
::
nDate
=
_nDate
;
}
Date
(
const
Date
&
rDate
)
Date
(
const
Date
&
rDate
)
{
nDate
=
rDate
.
nDate
;
}
{
nDate
=
rDate
.
nDate
;
}
...
...
include/tools/rcid.h
Dosyayı görüntüle @
190196b9
...
@@ -41,9 +41,6 @@
...
@@ -41,9 +41,6 @@
#define RSC_MENU (RSC_NOTYPE + 0x1c)
#define RSC_MENU (RSC_NOTYPE + 0x1c)
#define RSC_MENUITEM (RSC_NOTYPE + 0x1d) // only used internally
#define RSC_MENUITEM (RSC_NOTYPE + 0x1d) // only used internally
#define RSC_KEYCODE (RSC_NOTYPE + 0x1f)
#define RSC_KEYCODE (RSC_NOTYPE + 0x1f)
#define RSC_TIME (RSC_NOTYPE + 0x20)
#define RSC_DATE (RSC_NOTYPE + 0x21)
//#define RSC_INTERNATIONAL (RSC_NOTYPE + 0x22) // removed (2005-06-17)
#define RSC_IMAGE (RSC_NOTYPE + 0x23)
#define RSC_IMAGE (RSC_NOTYPE + 0x23)
#define RSC_IMAGELIST (RSC_NOTYPE + 0x24)
#define RSC_IMAGELIST (RSC_NOTYPE + 0x24)
...
...
include/tools/time.hxx
Dosyayı görüntüle @
190196b9
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
#include <tools/solar.h>
#include <tools/solar.h>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/util/Time.hpp>
class
ResId
;
/**
/**
@WARNING: This class can serve both as wall clock time and time duration, and
@WARNING: This class can serve both as wall clock time and time duration, and
the mixing of these concepts leads to problems such as there being
the mixing of these concepts leads to problems such as there being
...
@@ -68,7 +66,6 @@ public:
...
@@ -68,7 +66,6 @@ public:
Time
(
TimeInitEmpty
)
Time
(
TimeInitEmpty
)
{
nTime
=
0
;
}
{
nTime
=
0
;
}
Time
(
TimeInitSystem
);
Time
(
TimeInitSystem
);
Time
(
const
ResId
&
rResId
);
Time
(
sal_Int64
_nTime
)
{
Time
::
nTime
=
_nTime
;
}
Time
(
sal_Int64
_nTime
)
{
Time
::
nTime
=
_nTime
;
}
Time
(
const
tools
::
Time
&
rTime
);
Time
(
const
tools
::
Time
&
rTime
);
Time
(
const
::
com
::
sun
::
star
::
util
::
Time
&
rTime
);
Time
(
const
::
com
::
sun
::
star
::
util
::
Time
&
rTime
);
...
...
tools/source/rc/rc.cxx
Dosyayı görüntüle @
190196b9
...
@@ -39,50 +39,6 @@ void Resource::GetRes( const ResId& rResId )
...
@@ -39,50 +39,6 @@ void Resource::GetRes( const ResId& rResId )
IncrementRes
(
sizeof
(
RSHEADER_TYPE
)
);
IncrementRes
(
sizeof
(
RSHEADER_TYPE
)
);
}
}
namespace
tools
{
Time
::
Time
(
const
ResId
&
rResId
)
{
nTime
=
0
;
rResId
.
SetRT
(
RSC_TIME
);
ResMgr
*
pResMgr
=
NULL
;
ResMgr
::
GetResourceSkipHeader
(
rResId
,
&
pResMgr
);
sal_uIntPtr
nObjMask
=
(
sal_uInt16
)
pResMgr
->
ReadLong
();
if
(
0x01
&
nObjMask
)
SetHour
(
(
sal_uInt16
)
pResMgr
->
ReadShort
()
);
if
(
0x02
&
nObjMask
)
SetMin
(
(
sal_uInt16
)
pResMgr
->
ReadShort
()
);
if
(
0x04
&
nObjMask
)
SetSec
(
(
sal_uInt16
)
pResMgr
->
ReadShort
()
);
if
(
0x08
&
nObjMask
)
// TODO: when we change the place that writes this binary resource format to match:
// SetNanoSec( pResMgr->ReadLong() );
// In the meantime:
SetNanoSec
(
pResMgr
->
ReadShort
()
*
::
tools
::
Time
::
nanoPerCenti
);
}
}
/* namespace tools */
Date
::
Date
(
const
ResId
&
rResId
)
:
nDate
(
0
)
{
rResId
.
SetRT
(
RSC_DATE
);
ResMgr
*
pResMgr
=
NULL
;
ResMgr
::
GetResourceSkipHeader
(
rResId
,
&
pResMgr
);
sal_uIntPtr
nObjMask
=
(
sal_uInt16
)
pResMgr
->
ReadLong
();
if
(
0x01
&
nObjMask
)
SetYear
(
(
sal_uInt16
)
pResMgr
->
ReadShort
()
);
if
(
0x02
&
nObjMask
)
SetMonth
(
(
sal_uInt16
)
pResMgr
->
ReadShort
()
);
if
(
0x04
&
nObjMask
)
SetDay
(
(
sal_uInt16
)
pResMgr
->
ReadShort
()
);
}
OUString
ResId
::
toString
()
const
OUString
ResId
::
toString
()
const
{
{
SetRT
(
RSC_STRING
);
SetRT
(
RSC_STRING
);
...
...
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