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
9c9bf9a3
Kaydet (Commit)
9c9bf9a3
authored
May 01, 2012
tarafından
Chr. Rossmanith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SVG: remove unused code in svgreader.cxx
üst
5977a8d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
svgreader.cxx
filter/source/svg/svgreader.cxx
+1
-24
No files found.
filter/source/svg/svgreader.cxx
Dosyayı görüntüle @
9c9bf9a3
...
...
@@ -1496,7 +1496,7 @@ struct ShapeWritingVisitor
// collect attributes
const
sal_Int32
nNumAttrs
(
xAttributes
->
getLength
()
);
rtl
::
OUString
sAttributeValue
;
double
x
=
0.0
,
y
=
0.0
,
width
=
0.0
,
height
=
0.0
;
double
x
=
0.0
,
y
=
0.0
;
for
(
sal_Int32
i
=
0
;
i
<
nNumAttrs
;
++
i
)
{
sAttributeValue
=
xAttributes
->
item
(
i
)
->
getNodeValue
();
...
...
@@ -1510,12 +1510,6 @@ struct ShapeWritingVisitor
case
XML_Y
:
y
=
convLength
(
sAttributeValue
,
maCurrState
,
'v'
);
break
;
case
XML_WIDTH
:
width
=
convLength
(
sAttributeValue
,
maCurrState
,
'h'
);
break
;
case
XML_HEIGHT
:
height
=
convLength
(
sAttributeValue
,
maCurrState
,
'v'
);
break
;
default
:
// skip
break
;
...
...
@@ -1532,31 +1526,14 @@ struct ShapeWritingVisitor
// extract basic transformations out of CTM
basegfx
::
B2DTuple
aScale
,
aTranslate
;
double
fRotate
,
fShearX
;
::
rtl
::
OUString
sTransformValue
;
if
(
maCurrState
.
maCTM
.
decompose
(
aScale
,
aTranslate
,
fRotate
,
fShearX
))
{
rtl
::
OUString
sTransform
;
x
+=
aTranslate
.
getX
();
y
+=
aTranslate
.
getY
();
sTransform
+=
USTR
(
"scale("
)
+
rtl
::
OUString
::
valueOf
(
aScale
.
getX
())
+
USTR
(
", "
)
+
rtl
::
OUString
::
valueOf
(
aScale
.
getX
())
+
USTR
(
")"
);
if
(
fRotate
)
sTransform
+=
USTR
(
" rotate("
)
+
rtl
::
OUString
::
valueOf
(
fRotate
*
180.0
/
M_PI
)
+
USTR
(
")"
);
if
(
fShearX
)
sTransform
+=
USTR
(
" skewX("
)
+
rtl
::
OUString
::
valueOf
(
fShearX
*
180.0
/
M_PI
)
+
USTR
(
")"
);
}
xAttrs
->
AddAttribute
(
USTR
(
"svg:x"
),
rtl
::
OUString
::
valueOf
(
pt2mm
(
x
))
+
USTR
(
"mm"
));
xAttrs
->
AddAttribute
(
USTR
(
"svg:y"
),
rtl
::
OUString
::
valueOf
(
pt2mm
(
y
))
+
USTR
(
"mm"
));
(
void
)
width
;
(
void
)
height
;
xAttrs
->
AddAttribute
(
USTR
(
"draw:style-name"
),
USTR
(
"svggraphicstyle"
)
+
sStyleId
);
mxDocumentHandler
->
startElement
(
USTR
(
"draw:frame"
),
xUnoAttrs
);
...
...
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