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
f6c55fc5
Kaydet (Commit)
f6c55fc5
authored
Kas 22, 2000
tarafından
Oliver Specht
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#80616# Bibliography field completed
üst
087117c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
unofield.cxx
sw/source/core/unocore/unofield.cxx
+26
-4
No files found.
sw/source/core/unocore/unofield.cxx
Dosyayı görüntüle @
f6c55fc5
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: unofield.cxx,v $
* $RCSfile: unofield.cxx,v $
*
*
* $Revision: 1.1
0
$
* $Revision: 1.1
1
$
*
*
* last change: $Author:
jp $ $Date: 2000-11-20 14:46:46
$
* last change: $Author:
os $ $Date: 2000-11-22 15:23:00
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -188,6 +188,9 @@
...
@@ -188,6 +188,9 @@
#ifndef _FLDBAS_HXX
#ifndef _FLDBAS_HXX
#include <fldbas.hxx>
#include <fldbas.hxx>
#endif
#endif
#ifndef _AUTHFLD_HXX
#include <authfld.hxx>
#endif
#ifndef _FLDDAT_HXX
#ifndef _FLDDAT_HXX
#include <flddat.hxx>
#include <flddat.hxx>
#endif
#endif
...
@@ -261,6 +264,7 @@ using namespace ::rtl;
...
@@ -261,6 +264,7 @@ using namespace ::rtl;
#define FIELD_PROP_PAR4 23
#define FIELD_PROP_PAR4 23
#define FIELD_PROP_SHORT1 24
#define FIELD_PROP_SHORT1 24
#define FIELD_PROP_DATE_TIME 25
#define FIELD_PROP_DATE_TIME 25
#define FIELD_PROP_PROP_SEQ 26
//static SfxItemPropertyMap aSetRefFieldPropMap [] = {{0,0,0,0}};
//static SfxItemPropertyMap aSetRefFieldPropMap [] = {{0,0,0,0}};
//static SfxItemPropertyMap aInetFieldPropMap [] = {{0,0,0,0}};
//static SfxItemPropertyMap aInetFieldPropMap [] = {{0,0,0,0}};
...
@@ -821,9 +825,9 @@ const SfxItemPropertyMap* SwFieldPropMapProvider::GetPropertyMap(USHORT nService
...
@@ -821,9 +825,9 @@ const SfxItemPropertyMap* SwFieldPropMapProvider::GetPropertyMap(USHORT nService
static
SfxItemPropertyMap
aBibliographyFieldMap
[]
=
static
SfxItemPropertyMap
aBibliographyFieldMap
[]
=
{
{
#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500)) || (defined(__GNUC__) && defined(__APPLE__))
#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500)) || (defined(__GNUC__) && defined(__APPLE__))
{
SW_PROP_NAME
(
UNO_NAME_FIELDS
)
,
0
,
new
uno
::
Type
(
::
getCppuType
((
Sequence
<
PropertyValue
>*
)
0
)),
PROPERTY_NONE
,
0
},
{
SW_PROP_NAME
(
UNO_NAME_FIELDS
)
,
FIELD_PROP_PROP_SEQ
,
new
uno
::
Type
(
::
getCppuType
((
Sequence
<
PropertyValue
>*
)
0
)),
PROPERTY_NONE
,
0
},
#else
#else
{
SW_PROP_NAME
(
UNO_NAME_FIELDS
)
,
0
,
&::
getCppuType
((
Sequence
<
PropertyValue
>*
)
0
),
PROPERTY_NONE
,
0
},
{
SW_PROP_NAME
(
UNO_NAME_FIELDS
)
,
FIELD_PROP_PROP_SEQ
,
&::
getCppuType
((
Sequence
<
PropertyValue
>*
)
0
),
PROPERTY_NONE
,
0
},
#endif
#endif
{
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
}
};
};
...
@@ -1534,6 +1538,7 @@ struct SwFieldProperties_Impl
...
@@ -1534,6 +1538,7 @@ struct SwFieldProperties_Impl
Date
aDate
;
Date
aDate
;
Double
fDouble
;
Double
fDouble
;
util
::
DateTime
*
pDateTime
;
util
::
DateTime
*
pDateTime
;
Sequence
<
PropertyValue
>
aPropSeq
;
SwFieldProperties_Impl
()
:
SwFieldProperties_Impl
()
:
nSubType
(
0
),
nSubType
(
0
),
...
@@ -2125,6 +2130,17 @@ void SwXTextField::attachToRange(
...
@@ -2125,6 +2130,17 @@ void SwXTextField::attachToRange(
pFld
=
new
SwDocStatField
((
SwDocStatFieldType
*
)
pFldType
,
nSubType
,
m_pProps
->
nUSHORT2
);
pFld
=
new
SwDocStatField
((
SwDocStatFieldType
*
)
pFldType
,
nSubType
,
m_pProps
->
nUSHORT2
);
}
}
break
;
break
;
case
SW_SERVICE_FIELDTYPE_BIBLIOGRAPHY
:
{
SwFieldType
*
pFldType
=
pDoc
->
GetFldType
(
RES_AUTHORITY
,
aEmptyStr
);
pFld
=
new
SwAuthorityField
((
SwAuthorityFieldType
*
)
pFldType
,
aEmptyStr
);
if
(
m_pProps
->
aPropSeq
.
getLength
())
{
Any
aVal
;
aVal
<<=
m_pProps
->
aPropSeq
;
pFld
->
PutValue
(
aVal
,
C2U
(
UNO_NAME_FIELDS
));
}
}
break
;
default
:
DBG_ERROR
(
"was ist das fuer ein Typ?"
);
default
:
DBG_ERROR
(
"was ist das fuer ein Typ?"
);
}
}
if
(
pFld
)
if
(
pFld
)
...
@@ -2436,6 +2452,9 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An
...
@@ -2436,6 +2452,9 @@ void SwXTextField::setPropertyValue(const OUString& rPropertyName, const uno::An
m_pProps
->
pDateTime
=
new
util
::
DateTime
;
m_pProps
->
pDateTime
=
new
util
::
DateTime
;
aValue
>>=
(
*
m_pProps
->
pDateTime
);
aValue
>>=
(
*
m_pProps
->
pDateTime
);
break
;
break
;
case
FIELD_PROP_PROP_SEQ
:
aValue
>>=
m_pProps
->
aPropSeq
;
break
;
}
}
}
}
else
else
...
@@ -2526,6 +2545,9 @@ uno::Any SwXTextField::getPropertyValue(const OUString& rPropertyName)
...
@@ -2526,6 +2545,9 @@ uno::Any SwXTextField::getPropertyValue(const OUString& rPropertyName)
if
(
m_pProps
->
pDateTime
)
if
(
m_pProps
->
pDateTime
)
aRet
<<=
(
*
m_pProps
->
pDateTime
);
aRet
<<=
(
*
m_pProps
->
pDateTime
);
break
;
break
;
case
FIELD_PROP_PROP_SEQ
:
aRet
<<=
m_pProps
->
aPropSeq
;
break
;
}
}
}
}
else
else
...
...
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