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
10484e95
Kaydet (Commit)
10484e95
authored
Ara 09, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix compile errors
Change-Id: I840b28f419137d2ead44dc649a14d742055fb3b9
üst
d575e3a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
dataprovider.cxx
sc/source/ui/docshell/dataprovider.cxx
+0
-11
dataprovider.hxx
sc/source/ui/inc/dataprovider.hxx
+0
-5
No files found.
sc/source/ui/docshell/dataprovider.cxx
Dosyayı görüntüle @
10484e95
...
...
@@ -7,16 +7,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <dataprovider.hxx>
#include <config_orcus.h>
#include "officecfg/Office/Calc.hxx"
#include <stringutil.hxx>
#if ENABLE_ORCUS
#if defined(_WIN32)
#define __ORCUS_STATIC_LIB
#endif
#include <orcus/csv_parser.hpp>
#endif
namespace
sc
{
...
...
@@ -33,8 +30,6 @@ Cell::Cell(const Cell& r) : mbValue(r.mbValue)
}
}
#if ENABLE_ORCUS
class
CSVHandler
{
Line
&
mrLine
;
...
...
@@ -73,17 +68,13 @@ public:
}
};
#endif
CSVFetchThread
::
CSVFetchThread
(
SvStream
*
pData
)
:
Thread
(
"ReaderThread"
),
mpStream
(
pData
),
mbTerminate
(
false
)
{
#if ENABLE_ORCUS
maConfig
.
delimiters
.
push_back
(
','
);
maConfig
.
text_qualifier
=
'"'
;
#endif
}
CSVFetchThread
::~
CSVFetchThread
()
...
...
@@ -117,11 +108,9 @@ void CSVFetchThread::execute()
{
rLine
.
maCells
.
clear
();
mpStream
->
ReadLine
(
rLine
.
maLine
);
#if ENABLE_ORCUS
CSVHandler
aHdl
(
rLine
,
mnColCount
);
orcus
::
csv_parser
<
CSVHandler
>
parser
(
rLine
.
maLine
.
getStr
(),
rLine
.
maLine
.
getLength
(),
aHdl
,
maConfig
);
parser
.
parse
();
#endif
}
if
(
!
mpStream
->
good
())
...
...
sc/source/ui/inc/dataprovider.hxx
Dosyayı görüntüle @
10484e95
...
...
@@ -18,15 +18,12 @@
#include <osl/conditn.hxx>
#include <queue>
#include <config_orcus.h>
#include "officecfg/Office/Calc.hxx"
#if ENABLE_ORCUS
#if defined(_WIN32)
#define __ORCUS_STATIC_LIB
#endif
#include <orcus/csv_parser.hpp>
#endif
namespace
sc
{
...
...
@@ -66,9 +63,7 @@ class CSVFetchThread : public salhelper::Thread
bool
mbTerminate
;
osl
::
Mutex
maMtxTerminate
;
#if ENABLE_ORCUS
orcus
::
csv
::
parser_config
maConfig
;
#endif
virtual
void
execute
()
override
;
...
...
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