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
c2a73a47
Kaydet (Commit)
c2a73a47
authored
Tem 13, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmloff: implement import/export of SwPostItField::aInitials
Change-Id: Ie28e8e4c2e80d9234cf1ec2ca43dd200cf1d56cb
üst
6b919e03
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
txtflde.hxx
xmloff/inc/txtflde.hxx
+1
-0
txtfldi.hxx
xmloff/inc/txtfldi.hxx
+2
-0
txtflde.cxx
xmloff/source/text/txtflde.cxx
+11
-0
txtfldi.cxx
xmloff/source/text/txtfldi.cxx
+12
-0
No files found.
xmloff/inc/txtflde.hxx
Dosyayı görüntüle @
c2a73a47
...
@@ -479,6 +479,7 @@ private:
...
@@ -479,6 +479,7 @@ private:
const
::
rtl
::
OUString
sPropertyFileFormat
;
const
::
rtl
::
OUString
sPropertyFileFormat
;
const
::
rtl
::
OUString
sPropertyFullName
;
const
::
rtl
::
OUString
sPropertyFullName
;
const
::
rtl
::
OUString
sPropertyHint
;
const
::
rtl
::
OUString
sPropertyHint
;
const
::
rtl
::
OUString
sPropertyInitials
;
const
::
rtl
::
OUString
sPropertyInstanceName
;
const
::
rtl
::
OUString
sPropertyInstanceName
;
const
::
rtl
::
OUString
sPropertyIsAutomaticUpdate
;
const
::
rtl
::
OUString
sPropertyIsAutomaticUpdate
;
const
::
rtl
::
OUString
sPropertyIsConditionTrue
;
const
::
rtl
::
OUString
sPropertyIsConditionTrue
;
...
...
xmloff/inc/txtfldi.hxx
Dosyayı görüntüle @
c2a73a47
...
@@ -1341,11 +1341,13 @@ protected:
...
@@ -1341,11 +1341,13 @@ protected:
class
XMLAnnotationImportContext
:
public
XMLTextFieldImportContext
class
XMLAnnotationImportContext
:
public
XMLTextFieldImportContext
{
{
const
::
rtl
::
OUString
sPropertyAuthor
;
const
::
rtl
::
OUString
sPropertyAuthor
;
const
::
rtl
::
OUString
sPropertyInitials
;
const
::
rtl
::
OUString
sPropertyContent
;
const
::
rtl
::
OUString
sPropertyContent
;
const
::
rtl
::
OUString
sPropertyDate
;
const
::
rtl
::
OUString
sPropertyDate
;
const
::
rtl
::
OUString
sPropertyTextRange
;
const
::
rtl
::
OUString
sPropertyTextRange
;
::
rtl
::
OUStringBuffer
aAuthorBuffer
;
::
rtl
::
OUStringBuffer
aAuthorBuffer
;
::
rtl
::
OUStringBuffer
aInitialsBuffer
;
::
rtl
::
OUStringBuffer
aTextBuffer
;
::
rtl
::
OUStringBuffer
aTextBuffer
;
::
rtl
::
OUStringBuffer
aDateBuffer
;
::
rtl
::
OUStringBuffer
aDateBuffer
;
...
...
xmloff/source/text/txtflde.cxx
Dosyayı görüntüle @
c2a73a47
...
@@ -316,6 +316,7 @@ XMLTextFieldExport::XMLTextFieldExport( SvXMLExport& rExp,
...
@@ -316,6 +316,7 @@ XMLTextFieldExport::XMLTextFieldExport( SvXMLExport& rExp,
sPropertyFileFormat
(
RTL_CONSTASCII_USTRINGPARAM
(
"FileFormat"
)),
sPropertyFileFormat
(
RTL_CONSTASCII_USTRINGPARAM
(
"FileFormat"
)),
sPropertyFullName
(
RTL_CONSTASCII_USTRINGPARAM
(
"FullName"
)),
sPropertyFullName
(
RTL_CONSTASCII_USTRINGPARAM
(
"FullName"
)),
sPropertyHint
(
RTL_CONSTASCII_USTRINGPARAM
(
"Hint"
)),
sPropertyHint
(
RTL_CONSTASCII_USTRINGPARAM
(
"Hint"
)),
sPropertyInitials
(
"Initials"
),
sPropertyInstanceName
(
RTL_CONSTASCII_USTRINGPARAM
(
"InstanceName"
)),
sPropertyInstanceName
(
RTL_CONSTASCII_USTRINGPARAM
(
"InstanceName"
)),
sPropertyIsAutomaticUpdate
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsAutomaticUpdate"
)),
sPropertyIsAutomaticUpdate
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsAutomaticUpdate"
)),
sPropertyIsConditionTrue
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsConditionTrue"
)),
sPropertyIsConditionTrue
(
RTL_CONSTASCII_USTRINGPARAM
(
"IsConditionTrue"
)),
...
@@ -1760,6 +1761,16 @@ void XMLTextFieldExport::ExportFieldHelper(
...
@@ -1760,6 +1761,16 @@ void XMLTextFieldExport::ExportFieldHelper(
GetExport
().
Characters
(
aBuffer
.
makeStringAndClear
());
GetExport
().
Characters
(
aBuffer
.
makeStringAndClear
());
}
}
// initials
OUString
aInitials
(
GetStringProperty
(
sPropertyInitials
,
rPropSet
)
);
if
(
!
aInitials
.
isEmpty
()
)
{
SvXMLElementExport
aCreatorElem
(
GetExport
(),
XML_NAMESPACE_TEXT
,
XML_SENDER_INITIALS
,
sal_True
,
sal_False
);
GetExport
().
Characters
(
aInitials
);
}
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
text
::
XText
>
xText
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
text
::
XText
>
xText
;
try
try
{
{
...
...
xmloff/source/text/txtfldi.cxx
Dosyayı görüntüle @
c2a73a47
...
@@ -158,6 +158,7 @@ const sal_Char sAPI_is_fixed[] = "IsFixed";
...
@@ -158,6 +158,7 @@ const sal_Char sAPI_is_fixed[] = "IsFixed";
const
sal_Char
sAPI_content
[]
=
"Content"
;
const
sal_Char
sAPI_content
[]
=
"Content"
;
const
sal_Char
sAPI_value
[]
=
"Value"
;
const
sal_Char
sAPI_value
[]
=
"Value"
;
const
sal_Char
sAPI_author
[]
=
"Author"
;
const
sal_Char
sAPI_author
[]
=
"Author"
;
const
sal_Char
sAPI_initials
[]
=
"Initials"
;
const
sal_Char
sAPI_full_name
[]
=
"FullName"
;
const
sal_Char
sAPI_full_name
[]
=
"FullName"
;
const
sal_Char
sAPI_place_holder_type
[]
=
"PlaceHolderType"
;
const
sal_Char
sAPI_place_holder_type
[]
=
"PlaceHolderType"
;
const
sal_Char
sAPI_place_holder
[]
=
"PlaceHolder"
;
const
sal_Char
sAPI_place_holder
[]
=
"PlaceHolder"
;
...
@@ -3633,6 +3634,7 @@ XMLAnnotationImportContext::XMLAnnotationImportContext(
...
@@ -3633,6 +3634,7 @@ XMLAnnotationImportContext::XMLAnnotationImportContext(
XMLTextFieldImportContext
(
rImport
,
rHlp
,
sAPI_annotation
,
XMLTextFieldImportContext
(
rImport
,
rHlp
,
sAPI_annotation
,
nPrfx
,
sLocalName
),
nPrfx
,
sLocalName
),
sPropertyAuthor
(
sAPI_author
),
sPropertyAuthor
(
sAPI_author
),
sPropertyInitials
(
sAPI_initials
),
sPropertyContent
(
sAPI_content
),
sPropertyContent
(
sAPI_content
),
// why is there no UNO_NAME_DATE_TIME, but only UNO_NAME_DATE_TIME_VALUE?
// why is there no UNO_NAME_DATE_TIME, but only UNO_NAME_DATE_TIME_VALUE?
sPropertyDate
(
sAPI_date_time_value
),
sPropertyDate
(
sAPI_date_time_value
),
...
@@ -3668,6 +3670,12 @@ SvXMLImportContext* XMLAnnotationImportContext::CreateChildContext(
...
@@ -3668,6 +3670,12 @@ SvXMLImportContext* XMLAnnotationImportContext::CreateChildContext(
pContext
=
new
XMLStringBufferImportContext
(
GetImport
(),
nPrefix
,
pContext
=
new
XMLStringBufferImportContext
(
GetImport
(),
nPrefix
,
rLocalName
,
aDateBuffer
);
rLocalName
,
aDateBuffer
);
}
}
else
if
(
XML_NAMESPACE_TEXT
==
nPrefix
)
{
if
(
IsXMLToken
(
rLocalName
,
XML_SENDER_INITIALS
)
)
pContext
=
new
XMLStringBufferImportContext
(
GetImport
(),
nPrefix
,
rLocalName
,
aInitialsBuffer
);
}
if
(
!
pContext
)
if
(
!
pContext
)
{
{
...
@@ -3758,6 +3766,10 @@ void XMLAnnotationImportContext::PrepareField(
...
@@ -3758,6 +3766,10 @@ void XMLAnnotationImportContext::PrepareField(
OUString
sAuthor
(
aAuthorBuffer
.
makeStringAndClear
()
);
OUString
sAuthor
(
aAuthorBuffer
.
makeStringAndClear
()
);
xPropertySet
->
setPropertyValue
(
sPropertyAuthor
,
makeAny
(
sAuthor
));
xPropertySet
->
setPropertyValue
(
sPropertyAuthor
,
makeAny
(
sAuthor
));
// import (possibly empty) initials
OUString
sInitials
(
aInitialsBuffer
.
makeStringAndClear
()
);
xPropertySet
->
setPropertyValue
(
sPropertyInitials
,
makeAny
(
sInitials
));
DateTime
aDateTime
;
DateTime
aDateTime
;
if
(
::
sax
::
Converter
::
convertDateTime
(
aDateTime
,
if
(
::
sax
::
Converter
::
convertDateTime
(
aDateTime
,
aDateBuffer
.
makeStringAndClear
()))
aDateBuffer
.
makeStringAndClear
()))
...
...
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