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
df0aab7f
Kaydet (Commit)
df0aab7f
authored
Şub 27, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix exporting pivot tables to xls esp wrt exporting duplicate data fields.
üst
be76f5d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
dputil.hxx
sc/inc/dputil.hxx
+2
-1
xepivot.cxx
sc/source/filter/excel/xepivot.cxx
+4
-3
No files found.
sc/inc/dputil.hxx
Dosyayı görüntüle @
df0aab7f
...
...
@@ -30,13 +30,14 @@
#define __SC_DPUTIL_HXX__
#include "rtl/ustring.hxx"
#include "scdllapi.h"
class
ScDPUtil
{
public
:
static
bool
isDuplicateDimension
(
const
rtl
::
OUString
&
rName
);
static
rtl
::
OUString
getSourceDimensionName
(
const
rtl
::
OUString
&
rName
);
SC_DLLPUBLIC
static
rtl
::
OUString
getSourceDimensionName
(
const
rtl
::
OUString
&
rName
);
static
rtl
::
OUString
createDuplicateDimensionName
(
const
rtl
::
OUString
&
rOriginal
,
size_t
nDupCount
);
};
...
...
sc/source/filter/excel/xepivot.cxx
Dosyayı görüntüle @
df0aab7f
...
...
@@ -49,6 +49,7 @@
#include "fapihelper.hxx"
#include "xestring.hxx"
#include "xelink.hxx"
#include "dputil.hxx"
using
namespace
::
oox
;
...
...
@@ -1294,7 +1295,7 @@ XclExpPivotTable::XclExpPivotTable( const XclExpRoot& rRoot, const ScDPObject& r
maFieldList
.
AppendNewRecord
(
new
XclExpPTField
(
*
this
,
nFieldIdx
)
);
boost
::
ptr_vector
<
ScDPSaveDimension
>::
const_iterator
iter
;
const
boost
::
ptr_vector
<
ScDPSaveDimension
>
&
rDimList
=
pSaveData
->
GetDimensions
();
const
ScDPSaveData
::
DimsType
&
rDimList
=
pSaveData
->
GetDimensions
();
/* 2) First process all data dimensions, they are needed for extended
settings of row/column/page fields (sorting/auto show). */
...
...
@@ -1524,8 +1525,8 @@ XclExpPTField* XclExpPivotTable::GetFieldAcc( const ScDPSaveDimension& rSaveDim
return
&
maDataOrientField
;
// a real dimension
String
aFieldName
(
rSaveDim
.
GetName
()
);
return
aFieldName
.
Len
()
?
GetFieldAcc
(
aFieldName
)
:
0
;
rtl
::
OUString
aFieldName
=
ScDPUtil
::
getSourceDimensionName
(
rSaveDim
.
GetName
()
);
return
aFieldName
.
isEmpty
()
?
NULL
:
GetFieldAcc
(
aFieldName
)
;
}
// fill data --------------------------------------------------------------
...
...
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