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
5dd60299
Kaydet (Commit)
5dd60299
authored
Kas 19, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Dump formula group listener info.
Change-Id: Idbad1451393c42c272465907312c64c65eba9525
üst
db93b490
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
6 deletions
+41
-6
grouparealistener.hxx
sc/inc/grouparealistener.hxx
+6
-0
bcaslot.cxx
sc/source/core/data/bcaslot.cxx
+22
-6
grouparealistener.cxx
sc/source/core/tool/grouparealistener.cxx
+13
-0
No files found.
sc/inc/grouparealistener.hxx
Dosyayı görüntüle @
5dd60299
...
...
@@ -11,6 +11,7 @@
#define INCLUDED_SC_GROUPAREALISTENER_HXX
#include <address.hxx>
#include <calcmacros.hxx>
#include <svl/listener.hxx>
...
...
@@ -51,6 +52,11 @@ public:
*/
void
collectFormulaCells
(
SCTAB
nTab
,
SCCOL
nCol
,
SCROW
nRow1
,
SCROW
nRow2
,
std
::
vector
<
ScFormulaCell
*>&
rCells
)
const
;
#if DEBUG_AREA_BROADCASTER
ScAddress
getTopCellPos
()
const
;
SCROW
getGroupLength
()
const
;
#endif
private
:
void
notifyCellChange
(
const
SfxHint
&
rHint
,
const
ScAddress
&
rPos
);
void
notifyBulkChange
(
const
BulkDataHint
&
rHint
);
...
...
sc/source/core/data/bcaslot.cxx
Dosyayı görüntüle @
5dd60299
...
...
@@ -31,6 +31,7 @@
#if DEBUG_AREA_BROADCASTER
#include <formulacell.hxx>
#include <grouparealistener.hxx>
#endif
// Number of slots per dimension
...
...
@@ -620,20 +621,35 @@ void ScBroadcastAreaSlot::Dump() const
{
const
ScBroadcastAreaEntry
&
rEntry
=
*
it
;
const
ScBroadcastArea
*
pArea
=
rEntry
.
mpArea
;
cout
<<
" * range: "
<<
rtl
::
OUStringToOString
(
pArea
->
GetRange
().
Format
(
SCA_VALID
|
SCA_TAB_3D
,
pDoc
),
RTL_TEXTENCODING_UTF8
).
getStr
()
<<
endl
;
const
SvtBroadcaster
&
rBC
=
pArea
->
GetBroadcaster
();
const
SvtBroadcaster
::
ListenersType
&
rListeners
=
rBC
.
GetAllListeners
();
size_t
n
=
rListeners
.
size
();
cout
<<
" * listener count: "
<<
n
<<
endl
;
cout
<<
" * range: "
<<
rtl
::
OUStringToOString
(
pArea
->
GetRange
().
Format
(
SCA_VALID
|
SCA_TAB_3D
,
pDoc
),
RTL_TEXTENCODING_UTF8
).
getStr
()
<<
", listener count: "
<<
n
<<
endl
;
for
(
size_t
i
=
0
;
i
<
n
;
++
i
)
{
const
ScFormulaCell
*
pFC
=
dynamic_cast
<
const
ScFormulaCell
*>
(
rListeners
[
i
]);
if
(
!
pFC
)
if
(
pFC
)
{
cout
<<
" * listener: formula cell: "
<<
rtl
::
OUStringToOString
(
pFC
->
aPos
.
Format
(
SCA_VALID
|
SCA_TAB_3D
,
pDoc
),
RTL_TEXTENCODING_UTF8
).
getStr
()
<<
endl
;
continue
;
}
const
sc
::
FormulaGroupAreaListener
*
pFGListener
=
dynamic_cast
<
const
sc
::
FormulaGroupAreaListener
*>
(
rListeners
[
i
]);
if
(
pFGListener
)
{
cout
<<
" * listener: formula group: (pos: "
<<
rtl
::
OUStringToOString
(
pFGListener
->
getTopCellPos
().
Format
(
SCA_VALID
|
SCA_TAB_3D
,
pDoc
),
RTL_TEXTENCODING_UTF8
).
getStr
()
<<
", length: "
<<
pFGListener
->
getGroupLength
()
<<
")"
<<
endl
;
continue
;
}
cout
<<
" * listener: formula cell: "
<<
rtl
::
OUStringToOString
(
pFC
->
aPos
.
Format
(
SCA_VALID
|
SCA_TAB_3D
,
pDoc
),
RTL_TEXTENCODING_UTF8
).
getStr
()
<<
endl
;
cout
<<
" * listener: unknown"
<<
endl
;
}
}
}
...
...
sc/source/core/tool/grouparealistener.cxx
Dosyayı görüntüle @
5dd60299
...
...
@@ -219,6 +219,19 @@ void FormulaGroupAreaListener::collectFormulaCells(
}
}
#if DEBUG_AREA_BROADCASTER
ScAddress
FormulaGroupAreaListener
::
getTopCellPos
()
const
{
const
ScFormulaCell
&
rFC
=
**
mppTopCell
;
return
rFC
.
aPos
;
}
SCROW
FormulaGroupAreaListener
::
getGroupLength
()
const
{
return
mnGroupLen
;
}
#endif
void
FormulaGroupAreaListener
::
notifyCellChange
(
const
SfxHint
&
rHint
,
const
ScAddress
&
rPos
)
{
// Determine which formula cells within the group need to be notified of this change.
...
...
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