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
daf87ab1
Kaydet (Commit)
daf87ab1
authored
Şub 28, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
AddLabel to take string as its argument.
üst
94b7decc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
dptablecache.hxx
sc/inc/dptablecache.hxx
+1
-1
dptablecache.cxx
sc/source/core/data/dptablecache.cxx
+6
-7
No files found.
sc/inc/dptablecache.hxx
Dosyayı görüntüle @
daf87ab1
...
...
@@ -141,7 +141,7 @@ public:
~
ScDPCache
();
private
:
void
AddLabel
(
ScDPItemData
*
pData
);
void
AddLabel
(
const
rtl
::
OUString
&
rLabel
);
bool
AddData
(
long
nDim
,
ScDPItemData
*
pData
);
};
...
...
sc/source/core/data/dptablecache.cxx
Dosyayı görüntüle @
daf87ab1
...
...
@@ -316,7 +316,7 @@ bool ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange)
for
(
sal_uInt16
nCol
=
nStartCol
;
nCol
<=
nEndCol
;
++
nCol
)
{
AddLabel
(
new
ScDPItemData
(
pDoc
,
nCol
,
nStartRow
,
nDocTab
,
true
));
AddLabel
(
ScDPItemData
(
pDoc
,
nCol
,
nStartRow
,
nDocTab
,
true
).
GetString
(
));
for
(
SCROW
nRow
=
nStartRow
+
1
;
nRow
<=
nEndRow
;
++
nRow
)
AddData
(
nCol
-
nStartCol
,
new
ScDPItemData
(
pDoc
,
nCol
,
nRow
,
nDocTab
,
false
));
}
...
...
@@ -363,9 +363,9 @@ bool ScDPCache::InitFromDataBase (const Reference<sdbc::XRowSet>& xRowSet, const
for
(
sal_Int32
nCol
=
0
;
nCol
<
mnColumnCount
;
++
nCol
)
{
String
aColTitle
=
xMeta
->
getColumnLabel
(
nCol
+
1
);
rtl
::
OU
String
aColTitle
=
xMeta
->
getColumnLabel
(
nCol
+
1
);
aColTypes
[
nCol
]
=
xMeta
->
getColumnType
(
nCol
+
1
);
AddLabel
(
new
ScDPItemData
(
aColTitle
)
);
AddLabel
(
aColTitle
);
}
// Now get the data rows.
...
...
@@ -653,9 +653,8 @@ public:
}
void
ScDPCache
::
AddLabel
(
ScDPItemData
*
pData
)
void
ScDPCache
::
AddLabel
(
const
rtl
::
OUString
&
rLabel
)
{
std
::
auto_ptr
<
ScDPItemData
>
p
(
pData
);
OSL_ENSURE
(
IsValid
(),
" IsValid() == false "
);
if
(
maLabelNames
.
empty
()
)
...
...
@@ -665,7 +664,7 @@ void ScDPCache::AddLabel(ScDPItemData *pData)
LabelSet
aExistingNames
;
std
::
for_each
(
maLabelNames
.
begin
(),
maLabelNames
.
end
(),
InsertLabel
(
aExistingNames
));
sal_Int32
nSuffix
=
1
;
rtl
::
OUString
aNewName
=
p
->
GetString
()
;
rtl
::
OUString
aNewName
=
rLabel
;
while
(
true
)
{
if
(
!
aExistingNames
.
count
(
aNewName
))
...
...
@@ -676,7 +675,7 @@ void ScDPCache::AddLabel(ScDPItemData *pData)
}
// Name already exists.
rtl
::
OUStringBuffer
aBuf
(
p
->
GetString
()
);
rtl
::
OUStringBuffer
aBuf
(
rLabel
);
aBuf
.
append
(
++
nSuffix
);
aNewName
=
aBuf
.
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