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
cbf0cad8
Kaydet (Commit)
cbf0cad8
authored
Şub 11, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Import date fields.
Change-Id: If37f5253e4e201aab30c54ce503b6c8b6d967d92
üst
180819d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
celltextparacontext.cxx
sc/source/filter/xml/celltextparacontext.cxx
+5
-5
celltextparacontext.hxx
sc/source/filter/xml/celltextparacontext.hxx
+1
-3
xmlcelli.cxx
sc/source/filter/xml/xmlcelli.cxx
+5
-0
xmlcelli.hxx
sc/source/filter/xml/xmlcelli.hxx
+1
-0
No files found.
sc/source/filter/xml/celltextparacontext.cxx
Dosyayı görüntüle @
cbf0cad8
...
@@ -78,8 +78,9 @@ void ScXMLCellTextParaContext::PushFieldSheetName()
...
@@ -78,8 +78,9 @@ void ScXMLCellTextParaContext::PushFieldSheetName()
mrParentCxt
.
PushParagraphFieldSheetName
();
mrParentCxt
.
PushParagraphFieldSheetName
();
}
}
void
ScXMLCellTextParaContext
::
PushFieldDate
(
const
OUString
&
rOutput
)
void
ScXMLCellTextParaContext
::
PushFieldDate
()
{
{
mrParentCxt
.
PushParagraphFieldDate
();
}
}
void
ScXMLCellTextParaContext
::
PushFieldTitle
()
void
ScXMLCellTextParaContext
::
PushFieldTitle
()
...
@@ -180,11 +181,11 @@ void ScXMLCellFieldDateContext::StartElement(const uno::Reference<xml::sax::XAtt
...
@@ -180,11 +181,11 @@ void ScXMLCellFieldDateContext::StartElement(const uno::Reference<xml::sax::XAtt
void
ScXMLCellFieldDateContext
::
EndElement
()
void
ScXMLCellFieldDateContext
::
EndElement
()
{
{
mrParentCxt
.
PushFieldDate
();
}
}
void
ScXMLCellFieldDateContext
::
Characters
(
const
OUString
&
rChars
)
void
ScXMLCellFieldDateContext
::
Characters
(
const
OUString
&
/*rChars*/
)
{
{
maDate
=
rChars
;
}
}
SvXMLImportContext
*
ScXMLCellFieldDateContext
::
CreateChildContext
(
SvXMLImportContext
*
ScXMLCellFieldDateContext
::
CreateChildContext
(
...
@@ -209,9 +210,8 @@ void ScXMLCellFieldTitleContext::EndElement()
...
@@ -209,9 +210,8 @@ void ScXMLCellFieldTitleContext::EndElement()
mrParentCxt
.
PushFieldTitle
();
mrParentCxt
.
PushFieldTitle
();
}
}
void
ScXMLCellFieldTitleContext
::
Characters
(
const
OUString
&
rChars
)
void
ScXMLCellFieldTitleContext
::
Characters
(
const
OUString
&
/*rChars*/
)
{
{
maTitle
=
rChars
;
}
}
SvXMLImportContext
*
ScXMLCellFieldTitleContext
::
CreateChildContext
(
SvXMLImportContext
*
ScXMLCellFieldTitleContext
::
CreateChildContext
(
...
...
sc/source/filter/xml/celltextparacontext.hxx
Dosyayı görüntüle @
cbf0cad8
...
@@ -33,7 +33,7 @@ public:
...
@@ -33,7 +33,7 @@ public:
void
PushSpan
(
const
OUString
&
rSpan
,
const
OUString
&
rStyleName
);
void
PushSpan
(
const
OUString
&
rSpan
,
const
OUString
&
rStyleName
);
void
PushFieldSheetName
();
void
PushFieldSheetName
();
void
PushFieldDate
(
const
OUString
&
rOutput
);
void
PushFieldDate
();
void
PushFieldTitle
();
void
PushFieldTitle
();
};
};
...
@@ -79,7 +79,6 @@ public:
...
@@ -79,7 +79,6 @@ public:
class
ScXMLCellFieldDateContext
:
public
ScXMLImportContext
class
ScXMLCellFieldDateContext
:
public
ScXMLImportContext
{
{
ScXMLCellTextParaContext
&
mrParentCxt
;
ScXMLCellTextParaContext
&
mrParentCxt
;
OUString
maDate
;
public
:
public
:
ScXMLCellFieldDateContext
(
ScXMLImport
&
rImport
,
sal_uInt16
nPrefix
,
const
OUString
&
rLName
,
ScXMLCellTextParaContext
&
rParent
);
ScXMLCellFieldDateContext
(
ScXMLImport
&
rImport
,
sal_uInt16
nPrefix
,
const
OUString
&
rLName
,
ScXMLCellTextParaContext
&
rParent
);
...
@@ -97,7 +96,6 @@ public:
...
@@ -97,7 +96,6 @@ public:
class
ScXMLCellFieldTitleContext
:
public
ScXMLImportContext
class
ScXMLCellFieldTitleContext
:
public
ScXMLImportContext
{
{
ScXMLCellTextParaContext
&
mrParentCxt
;
ScXMLCellTextParaContext
&
mrParentCxt
;
OUString
maTitle
;
public
:
public
:
ScXMLCellFieldTitleContext
(
ScXMLImport
&
rImport
,
sal_uInt16
nPrefix
,
const
OUString
&
rLName
,
ScXMLCellTextParaContext
&
rParent
);
ScXMLCellFieldTitleContext
(
ScXMLImport
&
rImport
,
sal_uInt16
nPrefix
,
const
OUString
&
rLName
,
ScXMLCellTextParaContext
&
rParent
);
...
...
sc/source/filter/xml/xmlcelli.cxx
Dosyayı görüntüle @
cbf0cad8
...
@@ -570,6 +570,11 @@ void ScXMLTableRowCellContext::PushParagraphField(SvxFieldData* pData)
...
@@ -570,6 +570,11 @@ void ScXMLTableRowCellContext::PushParagraphField(SvxFieldData* pData)
rField
.
maSelection
.
nEndPos
=
nPos
+
1
;
rField
.
maSelection
.
nEndPos
=
nPos
+
1
;
}
}
void
ScXMLTableRowCellContext
::
PushParagraphFieldDate
()
{
PushParagraphField
(
new
SvxDateField
);
}
void
ScXMLTableRowCellContext
::
PushParagraphFieldSheetName
()
void
ScXMLTableRowCellContext
::
PushParagraphFieldSheetName
()
{
{
SCTAB
nTab
=
GetScImport
().
GetTables
().
GetCurrentCellPos
().
Tab
();
SCTAB
nTab
=
GetScImport
().
GetTables
().
GetCurrentCellPos
().
Tab
();
...
...
sc/source/filter/xml/xmlcelli.hxx
Dosyayı görüntüle @
cbf0cad8
...
@@ -136,6 +136,7 @@ public:
...
@@ -136,6 +136,7 @@ public:
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttrList
);
void
PushParagraphSpan
(
const
OUString
&
rSpan
,
const
OUString
&
rStyleName
);
void
PushParagraphSpan
(
const
OUString
&
rSpan
,
const
OUString
&
rStyleName
);
void
PushParagraphFieldDate
();
void
PushParagraphFieldSheetName
();
void
PushParagraphFieldSheetName
();
void
PushParagraphFieldDocTitle
();
void
PushParagraphFieldDocTitle
();
void
PushParagraphEnd
();
void
PushParagraphEnd
();
...
...
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