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
23a12e01
Kaydet (Commit)
23a12e01
authored
May 27, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwXFrames::getCount: ignore TextFrames, which are TextBoxes
Change-Id: I12d2912f566a31e36f6d091d554106b927abb9c9
üst
4782e774
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
doc.hxx
sw/inc/doc.hxx
+1
-1
docfly.cxx
sw/source/core/doc/docfly.cxx
+11
-1
unocoll.cxx
sw/source/core/unocore/unocoll.cxx
+2
-1
No files found.
sw/inc/doc.hxx
Dosyayı görüntüle @
23a12e01
...
...
@@ -1232,7 +1232,7 @@ public:
/** Access to frames.
Iterate over Flys - forr Basic-Collections. */
sal_uInt16
GetFlyCount
(
FlyCntType
eType
=
FLYCNTTYPE_ALL
)
const
;
sal_uInt16
GetFlyCount
(
FlyCntType
eType
=
FLYCNTTYPE_ALL
,
bool
bIgnoreTextBoxes
=
false
)
const
;
SwFrmFmt
*
GetFlyNum
(
sal_uInt16
nIdx
,
FlyCntType
eType
=
FLYCNTTYPE_ALL
);
// Copy formats in own arrays and return them.
...
...
sw/source/core/doc/docfly.cxx
Dosyayı görüntüle @
23a12e01
...
...
@@ -42,6 +42,7 @@
#include <pagefrm.hxx>
#include <rootfrm.hxx>
#include <flyfrms.hxx>
#include <textboxhelper.hxx>
#include <frmtool.hxx>
#include <frmfmt.hxx>
#include <ndtxt.hxx>
...
...
@@ -68,15 +69,24 @@
using
namespace
::
com
::
sun
::
star
;
sal_uInt16
SwDoc
::
GetFlyCount
(
FlyCntType
eType
)
const
sal_uInt16
SwDoc
::
GetFlyCount
(
FlyCntType
eType
,
bool
bIgnoreTextBoxes
)
const
{
const
SwFrmFmts
&
rFmts
=
*
GetSpzFrmFmts
();
sal_uInt16
nSize
=
rFmts
.
size
();
sal_uInt16
nCount
=
0
;
const
SwNodeIndex
*
pIdx
;
std
::
list
<
SwFrmFmt
*>
aTextBoxes
;
if
(
bIgnoreTextBoxes
)
aTextBoxes
=
SwTextBoxHelper
::
findTextBoxes
(
this
);
for
(
sal_uInt16
i
=
0
;
i
<
nSize
;
i
++
)
{
const
SwFrmFmt
*
pFlyFmt
=
rFmts
[
i
];
if
(
bIgnoreTextBoxes
&&
std
::
find
(
aTextBoxes
.
begin
(),
aTextBoxes
.
end
(),
pFlyFmt
)
!=
aTextBoxes
.
end
())
continue
;
if
(
RES_FLYFRMFMT
==
pFlyFmt
->
Which
()
&&
0
!=
(
pIdx
=
pFlyFmt
->
GetCntnt
().
GetCntntIdx
()
)
&&
pIdx
->
GetNodes
().
IsDocNodes
()
...
...
sw/source/core/unocore/unocoll.cxx
Dosyayı görüntüle @
23a12e01
...
...
@@ -1188,7 +1188,8 @@ sal_Int32 SwXFrames::getCount(void) throw(uno::RuntimeException, std::exception)
SolarMutexGuard
aGuard
;
if
(
!
IsValid
())
throw
uno
::
RuntimeException
();
return
GetDoc
()
->
GetFlyCount
(
eType
);
// Ignore TextBoxes for TextFrames.
return
GetDoc
()
->
GetFlyCount
(
eType
,
/*bIgnoreTextBoxes=*/
eType
==
FLYCNTTYPE_FRM
);
}
uno
::
Any
SwXFrames
::
getByIndex
(
sal_Int32
nIndex
)
...
...
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