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
b16eb2a1
Kaydet (Commit)
b16eb2a1
authored
Agu 20, 2013
tarafından
Oliver-Rainer Wittmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
123021: import of graphic bullets - consider empty graphic frames in graphic bullet area
üst
bf1b5979
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
27 deletions
+30
-27
ww8par.cxx
sw/source/filter/ww8/ww8par.cxx
+30
-27
No files found.
sw/source/filter/ww8/ww8par.cxx
Dosyayı görüntüle @
b16eb2a1
...
...
@@ -4680,42 +4680,43 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss, const SwPosition &rPos)
delete
mpRedlineStack
;
DeleteAnchorStk
();
DeleteRefStks
();
//For i120928,achieve the graphics from the special bookmark with is for graphic bullet
{
std
::
vector
<
const
SwGrfNode
*>
vecBulletGrf
;
std
::
vector
<
SwFrmFmt
*>
vecFrmFmt
;
IDocumentMarkAccess
*
const
pMarkAccess
=
rDoc
.
getIDocumentMarkAccess
();
rDoc
.
getIDocumentMarkAccess
();
if
(
pMarkAccess
)
{
IDocumentMarkAccess
::
const_iterator_t
ppBkmk
=
pMarkAccess
->
findBookmark
(
C2U
(
"_PictureBullets"
)
);
//for(IDocumentMarkAccess::const_iterator_t ppBookmark = ppBkmk->begin();
// ppBookmark != ppBkmk->end(); ppBookmark++)
if
(
ppBkmk
!=
pMarkAccess
->
getBookmarksEnd
()
&&
IDocumentMarkAccess
::
GetType
(
*
(
ppBkmk
->
get
())
)
==
IDocumentMarkAccess
::
BOOKMARK
)
{
IDocumentMarkAccess
::
const_iterator_t
ppBkmk
=
pMarkAccess
->
findBookmark
(
C2U
(
"_PictureBullets"
)
);
if
(
ppBkmk
!=
pMarkAccess
->
getBookmarksEnd
()
&&
IDocumentMarkAccess
::
GetType
(
*
(
ppBkmk
->
get
())
)
==
IDocumentMarkAccess
::
BOOKMARK
)
{
SwTxtNode
*
pTxtNode
=
ppBkmk
->
get
()
->
GetMarkStart
().
nNode
.
GetNode
().
GetTxtNode
();
if
(
pTxtNode
)
if
(
pTxtNode
)
{
const
SwpHints
*
pHints
=
pTxtNode
->
GetpSwpHints
();
for
(
int
nHintPos
=
0
;
pHints
&&
nHintPos
<
pHints
->
Count
();
++
nHintPos
)
const
SwpHints
*
pHints
=
pTxtNode
->
GetpSwpHints
();
for
(
sal_uInt16
nHintPos
=
0
;
pHints
&&
nHintPos
<
pHints
->
Count
();
++
nHintPos
)
{
const
SwTxtAttr
*
pHt
=
(
*
pHints
)[
nHintPos
];
xub_StrLen
st
=
*
(
pHt
->
GetStart
());
if
(
pHt
&&
pHt
->
Which
()
==
RES_TXTATR_FLYCNT
&&
(
st
>=
ppBkmk
->
get
()
->
GetMarkStart
().
nContent
.
GetIndex
()))
const
xub_StrLen
st
=
*
(
pHt
->
GetStart
());
if
(
pHt
&&
pHt
->
Which
()
==
RES_TXTATR_FLYCNT
&&
(
st
>=
ppBkmk
->
get
()
->
GetMarkStart
().
nContent
.
GetIndex
())
)
{
SwFrmFmt
*
pFrmFmt
=
pHt
->
GetFlyCnt
().
GetFrmFmt
();
const
SwNodeIndex
*
pNdIdx
=
pFrmFmt
->
GetCntnt
().
GetCntntIdx
();
const
SwNodes
&
nos
=
pNdIdx
->
GetNodes
();
const
SwGrfNode
*
pGrf
=
dynamic_cast
<
const
SwGrfNode
*>
(
nos
[
pNdIdx
->
GetIndex
()
+
1
]);
if
(
pGrf
)
{
vecBulletGrf
.
push_back
(
pGrf
);
vecFrmFmt
.
push_back
(
pFrmFmt
);
}
SwFrmFmt
*
pFrmFmt
=
pHt
->
GetFlyCnt
().
GetFrmFmt
();
vecFrmFmt
.
push_back
(
pFrmFmt
);
const
SwNodeIndex
*
pNdIdx
=
pFrmFmt
->
GetCntnt
().
GetCntntIdx
();
const
SwNodes
*
pNodesArray
=
(
pNdIdx
!=
NULL
)
?
&
(
pNdIdx
->
GetNodes
())
:
NULL
;
const
SwGrfNode
*
pGrf
=
(
pNodesArray
!=
NULL
)
?
dynamic_cast
<
const
SwGrfNode
*>
((
*
pNodesArray
)[
pNdIdx
->
GetIndex
()
+
1
])
:
NULL
;
vecBulletGrf
.
push_back
(
pGrf
);
}
}
// update graphic bullet information
...
...
@@ -4726,14 +4727,16 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss, const SwPosition &rPos)
for
(
sal_uInt16
j
=
0
;
j
<
MAXLEVEL
;
++
j
)
{
SwNumFmt
aNumFmt
(
pRule
->
Get
(
j
));
sal_Int16
nType
=
aNumFmt
.
GetNumberingType
();
sal_uInt16
nGrfBulletCP
=
aNumFmt
.
GetGrfBulletCP
();
if
(
nType
==
SVX_NUM_BITMAP
&&
vecBulletGrf
.
size
()
>
nGrfBulletCP
)
const
sal_Int16
nType
=
aNumFmt
.
GetNumberingType
();
const
sal_uInt16
nGrfBulletCP
=
aNumFmt
.
GetGrfBulletCP
();
if
(
nType
==
SVX_NUM_BITMAP
&&
vecBulletGrf
.
size
()
>
nGrfBulletCP
&&
vecBulletGrf
[
nGrfBulletCP
]
!=
NULL
)
{
Graphic
aGraphic
=
vecBulletGrf
[
nGrfBulletCP
]
->
GetGrf
();
SvxBrushItem
aBrush
(
aGraphic
,
GPOS_AREA
,
SID_ATTR_BRUSH
);
Font
aFont
=
numfunc
::
GetDefBulletFont
();
int
nHeight
=
aFont
.
GetHeight
()
*
12
;
//20;
int
nHeight
=
aFont
.
GetHeight
()
*
12
;
Size
aPrefSize
(
aGraphic
.
GetPrefSize
());
if
(
aPrefSize
.
Height
()
*
aPrefSize
.
Width
()
!=
0
)
{
...
...
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