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
83cb7a3e
Kaydet (Commit)
83cb7a3e
authored
Kas 21, 2010
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove 'busy' code (code that consume cpu to produce unused result)
üst
f65bf138
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
36 deletions
+1
-36
drawtreevisiting.cxx
sdext/source/pdfimport/tree/drawtreevisiting.cxx
+1
-36
No files found.
sdext/source/pdfimport/tree/drawtreevisiting.cxx
Dosyayı görüntüle @
83cb7a3e
...
...
@@ -120,15 +120,6 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< Element* >::cons
rtl
::
OUString
str
(
elem
.
Text
.
getStr
());
// Check for CTL
bool
isComplex
=
false
;
for
(
int
i
=
0
;
i
<
elem
.
Text
.
getLength
();
i
++
)
{
sal_Int16
nType
=
GetBreakIterator
()
->
getScriptType
(
str
,
i
+
1
);
if
(
nType
==
::
com
::
sun
::
star
::
i18n
::
ScriptType
::
COMPLEX
)
isComplex
=
true
;
}
m_rEmitContext
.
rEmitter
.
beginTag
(
"text:span"
,
aProps
);
for
(
int
i
=
0
;
i
<
elem
.
Text
.
getLength
();
i
++
)
...
...
@@ -688,13 +679,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
std
::
list
<
Element
*
>::
iterator
next
=
rParent
.
Children
.
begin
();
std
::
list
<
Element
*
>::
iterator
it
=
next
++
;
FrameElement
*
pFrame
=
dynamic_cast
<
FrameElement
*>
(
rParent
.
Parent
);
bool
bRotatedFrame
=
false
;
if
(
pFrame
)
{
const
GraphicsContext
&
rFrameGC
=
m_rProcessor
.
getGraphicsContext
(
pFrame
->
GCId
);
if
(
rFrameGC
.
isRotatedOrSkewed
()
)
bRotatedFrame
=
true
;
}
while
(
next
!=
rParent
.
Children
.
end
()
)
{
bool
bConcat
=
false
;
...
...
@@ -907,26 +892,6 @@ void DrawXmlFinalizer::visit( ParagraphElement& elem, const std::list< Element*
elem
.
StyleId
=
m_rStyleContainer
.
getStyleId
(
aStyle
);
// update page boundaries
if
(
elem
.
Parent
)
{
// check for center alignement
// criterion: paragraph is small relative to parent and distributed around its center
double
p_x
=
elem
.
Parent
->
x
;
double
p_y
=
elem
.
Parent
->
y
;
double
p_w
=
elem
.
Parent
->
w
;
double
p_h
=
elem
.
Parent
->
h
;
PageElement
*
pPage
=
dynamic_cast
<
PageElement
*>
(
elem
.
Parent
);
if
(
pPage
)
{
p_x
+=
pPage
->
LeftMargin
;
p_y
+=
pPage
->
TopMargin
;
p_w
-=
pPage
->
LeftMargin
+
pPage
->
RightMargin
;
p_h
-=
pPage
->
TopMargin
+
pPage
->
BottomMargin
;
}
}
elem
.
applyToChildren
(
*
this
);
}
...
...
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