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
bef2d8a6
Kaydet (Commit)
bef2d8a6
authored
Şub 09, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cleaned up more header include silliness.
üst
950f94c0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
18 deletions
+33
-18
dpgroup.hxx
sc/inc/dpgroup.hxx
+1
-0
dptablecache.hxx
sc/inc/dptablecache.hxx
+8
-4
dptabres.hxx
sc/inc/dptabres.hxx
+8
-5
dpcachetable.cxx
sc/source/core/data/dpcachetable.cxx
+1
-0
dptablecache.cxx
sc/source/core/data/dptablecache.cxx
+6
-4
dptabres.cxx
sc/source/core/data/dptabres.cxx
+6
-4
dptabsrc.cxx
sc/source/core/data/dptabsrc.cxx
+3
-1
No files found.
sc/inc/dpgroup.hxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "dptabdat.hxx"
#include "dptabdat.hxx"
#include "scdllapi.h"
#include "scdllapi.h"
#include "dpitemdata.hxx"
class
ScDocument
;
class
ScDocument
;
class
SvNumberFormatter
;
class
SvNumberFormatter
;
...
...
sc/inc/dptablecache.hxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
#define SC_DPTABLECACHE_HXX
#define SC_DPTABLECACHE_HXX
#include "global.hxx"
#include "global.hxx"
#include "dpitemdata.hxx"
#include <svl/zforlist.hxx>
#include <svl/zforlist.hxx>
...
@@ -38,17 +37,22 @@
...
@@ -38,17 +37,22 @@
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <vector>
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
struct
ScQueryParam
;
struct
ScQueryParam
;
class
ScDPObject
;
class
ScDPObject
;
class
ScDPItemDataPool
;
class
ScDPItemData
;
/**
/**
* This class represents the cached data part of the datapilot cache table
* This class represents the cached data part of the datapilot cache table
* implementation.
* implementation.
*/
*/
class
SC_DLLPUBLIC
ScDPCache
class
SC_DLLPUBLIC
ScDPCache
:
boost
::
noncopyable
{
{
public
:
public
:
typedef
::
boost
::
ptr_vector
<
ScDPItemData
>
DataListType
;
typedef
::
boost
::
ptr_vector
<
ScDPItemData
>
DataListType
;
...
@@ -93,7 +97,7 @@ private:
...
@@ -93,7 +97,7 @@ private:
DataListType
maLabelNames
;
// Stores dimension names.
DataListType
maLabelNames
;
// Stores dimension names.
std
::
vector
<
bool
>
mbEmptyRow
;
// Keeps track of empty rows.
std
::
vector
<
bool
>
mbEmptyRow
;
// Keeps track of empty rows.
mutable
ScDPItemDataPool
ma
AdditionalData
;
boost
::
scoped_ptr
<
ScDPItemDataPool
>
mp
AdditionalData
;
bool
mbDisposing
;
bool
mbDisposing
;
...
...
sc/inc/dptabres.hxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -29,17 +29,20 @@
...
@@ -29,17 +29,20 @@
#ifndef SC_DPTABRES_HXX
#ifndef SC_DPTABRES_HXX
#define SC_DPTABRES_HXX
#define SC_DPTABRES_HXX
#include "global.hxx"
#include "dpcachetable.hxx"
#include <svl/svarray.hxx>
#include <svl/svarray.hxx>
#include <tools/string.hxx>
#include <tools/string.hxx>
#include <com/sun/star/sheet/MemberResult.hpp>
#include <com/sun/star/sheet/MemberResult.hpp>
#include <com/sun/star/sheet/DataResult.hpp>
#include <com/sun/star/sheet/DataResult.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include "global.hxx" // enum ScSubTotalFunc
#include "dpcachetable.hxx"
#include <boost/unordered_map.hpp>
#include <boost/unordered_map.hpp>
#include <boost/unordered_set.hpp>
#include <boost/unordered_set.hpp>
#include <vector>
#include <vector>
#include <memory>
#include <memory>
#include <map>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
sheet
{
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
sheet
{
struct
DataPilotFieldReference
;
struct
DataPilotFieldReference
;
...
@@ -499,9 +502,9 @@ typedef std::vector<ScDPDataMember*> ScDPDataMembers;
...
@@ -499,9 +502,9 @@ typedef std::vector<ScDPDataMember*> ScDPDataMembers;
class
ScDPResultDimension
class
ScDPResultDimension
{
{
public
:
public
:
typedef
std
::
vector
<
ScDPResultMember
*>
MemberArray
;
typedef
std
::
vector
<
ScDPResultMember
*>
MemberArray
;
typedef
std
::
map
<
SCROW
,
ScDPResultMember
*>
MemberHash
;
typedef
std
::
map
<
SCROW
,
ScDPResultMember
*>
MemberHash
;
private
:
private
:
const
ScDPResultData
*
pResultData
;
const
ScDPResultData
*
pResultData
;
MemberArray
maMemberArray
;
MemberArray
maMemberArray
;
...
...
sc/source/core/data/dpcachetable.cxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "dpobject.hxx"
#include "dpobject.hxx"
#include "queryparam.hxx"
#include "queryparam.hxx"
#include "queryentry.hxx"
#include "queryentry.hxx"
#include "dpitemdata.hxx"
#include <com/sun/star/i18n/LocaleDataItem.hpp>
#include <com/sun/star/i18n/LocaleDataItem.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
#include <com/sun/star/sdbc/DataType.hpp>
...
...
sc/source/core/data/dptablecache.cxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "dpobject.hxx"
#include "dpobject.hxx"
#include "globstr.hrc"
#include "globstr.hrc"
#include "docoptio.hxx"
#include "docoptio.hxx"
#include "dpitemdata.hxx"
#include <rtl/math.hxx>
#include <rtl/math.hxx>
#include <unotools/textsearch.hxx>
#include <unotools/textsearch.hxx>
...
@@ -223,6 +224,7 @@ bool ScDPCache::operator== ( const ScDPCache& r ) const
...
@@ -223,6 +224,7 @@ bool ScDPCache::operator== ( const ScDPCache& r ) const
ScDPCache
::
ScDPCache
(
ScDocument
*
pDoc
)
:
ScDPCache
::
ScDPCache
(
ScDocument
*
pDoc
)
:
mpDoc
(
pDoc
),
mpDoc
(
pDoc
),
mnColumnCount
(
0
),
mnColumnCount
(
0
),
mpAdditionalData
(
new
ScDPItemDataPool
),
mbDisposing
(
false
)
mbDisposing
(
false
)
{
{
}
}
...
@@ -682,7 +684,7 @@ SCROW ScDPCache::GetItemDataId(sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty)
...
@@ -682,7 +684,7 @@ SCROW ScDPCache::GetItemDataId(sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty)
const
ScDPItemData
*
ScDPCache
::
GetItemDataById
(
long
nDim
,
SCROW
nId
)
const
const
ScDPItemData
*
ScDPCache
::
GetItemDataById
(
long
nDim
,
SCROW
nId
)
const
{
{
if
(
nId
>=
GetRowCount
()
)
if
(
nId
>=
GetRowCount
()
)
return
m
aAdditionalData
.
getData
(
nId
-
GetRowCount
()
);
return
m
pAdditionalData
->
getData
(
nId
-
GetRowCount
()
);
if
(
(
size_t
)
nId
>=
maTableDataValues
[
nDim
].
size
()
||
nDim
>=
mnColumnCount
||
nId
<
0
)
if
(
(
size_t
)
nId
>=
maTableDataValues
[
nDim
].
size
()
||
nDim
>=
mnColumnCount
||
nId
<
0
)
return
NULL
;
return
NULL
;
...
@@ -799,7 +801,7 @@ SCROW ScDPCache::GetIdByItemData(long nDim, const String& sItemData ) const
...
@@ -799,7 +801,7 @@ SCROW ScDPCache::GetIdByItemData(long nDim, const String& sItemData ) const
}
}
ScDPItemData
rData
(
sItemData
);
ScDPItemData
rData
(
sItemData
);
return
GetRowCount
()
+
maAdditionalData
.
getDataId
(
rData
);
return
GetRowCount
()
+
mpAdditionalData
->
getDataId
(
rData
);
}
}
SCROW
ScDPCache
::
GetIdByItemData
(
long
nDim
,
const
ScDPItemData
&
rData
)
const
SCROW
ScDPCache
::
GetIdByItemData
(
long
nDim
,
const
ScDPItemData
&
rData
)
const
...
@@ -812,12 +814,12 @@ SCROW ScDPCache::GetIdByItemData( long nDim, const ScDPItemData& rData ) const
...
@@ -812,12 +814,12 @@ SCROW ScDPCache::GetIdByItemData( long nDim, const ScDPItemData& rData ) const
return
i
;
return
i
;
}
}
}
}
return
GetRowCount
()
+
maAdditionalData
.
getDataId
(
rData
);
return
GetRowCount
()
+
mpAdditionalData
->
getDataId
(
rData
);
}
}
SCROW
ScDPCache
::
GetAdditionalItemID
(
const
ScDPItemData
&
rData
)
const
SCROW
ScDPCache
::
GetAdditionalItemID
(
const
ScDPItemData
&
rData
)
const
{
{
return
GetRowCount
()
+
m
aAdditionalData
.
insertData
(
rData
);
return
GetRowCount
()
+
m
pAdditionalData
->
insertData
(
rData
);
}
}
...
...
sc/source/core/data/dptabres.cxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -31,21 +31,23 @@
...
@@ -31,21 +31,23 @@
// INCLUDE ---------------------------------------------------------------
// INCLUDE ---------------------------------------------------------------
#include <osl/diagnose.h>
#include "dptabres.hxx"
#include <rtl/math.hxx>
#include <rtl/strbuf.hxx>
#include "dptabdat.hxx"
#include "dptabdat.hxx"
#include "dptabres.hxx"
#include "dptabsrc.hxx"
#include "dptabsrc.hxx"
#include "global.hxx"
#include "global.hxx"
#include "subtotal.hxx"
#include "subtotal.hxx"
#include "globstr.hrc"
#include "globstr.hrc"
#include "datauno.hxx" // ScDataUnoConversion
#include "datauno.hxx" // ScDataUnoConversion
#include "dpitemdata.hxx"
#include "document.hxx" // for DumpState only!
#include "document.hxx" // for DumpState only!
#include "stlalgorithm.hxx"
#include "stlalgorithm.hxx"
#include <osl/diagnose.h>
#include <rtl/math.hxx>
#include <rtl/strbuf.hxx>
#include <math.h>
#include <math.h>
#include <float.h> //! Test !!!
#include <float.h> //! Test !!!
#include <algorithm>
#include <algorithm>
...
...
sc/source/core/data/dptabsrc.cxx
Dosyayı görüntüle @
bef2d8a6
...
@@ -32,6 +32,8 @@
...
@@ -32,6 +32,8 @@
// INCLUDE ---------------------------------------------------------------
// INCLUDE ---------------------------------------------------------------
#include "dptabsrc.hxx"
#include <algorithm>
#include <algorithm>
#include <vector>
#include <vector>
#include <set>
#include <set>
...
@@ -49,13 +51,13 @@
...
@@ -49,13 +51,13 @@
#include "patattr.hxx"
#include "patattr.hxx"
#include "cell.hxx"
#include "cell.hxx"
#include "dptabsrc.hxx"
#include "dptabres.hxx"
#include "dptabres.hxx"
#include "dptabdat.hxx"
#include "dptabdat.hxx"
#include "global.hxx"
#include "global.hxx"
#include "datauno.hxx" // ScDataUnoConversion
#include "datauno.hxx" // ScDataUnoConversion
#include "miscuno.hxx"
#include "miscuno.hxx"
#include "unonames.hxx"
#include "unonames.hxx"
#include "dpitemdata.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
...
...
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