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
d0af3045
Kaydet (Commit)
d0af3045
authored
Eki 24, 2013
tarafından
László Németh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
librelogo: fix Writer/Draw synchronization in cropped SVG export
Change-Id: Id7dc7a2853a8c56ee56eab55c078650e16c278fd
üst
5387c4f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
LibreLogo.py
librelogo/source/LibreLogo/LibreLogo.py
+12
-5
No files found.
librelogo/source/LibreLogo/LibreLogo.py
Dosyayı görüntüle @
d0af3045
...
...
@@ -1285,7 +1285,7 @@ def create_valid_svg_file(filename):
f
.
write
(
s
)
def
__groupend__
(
name
=
""
):
global
__group__
,
__grouplefthang__
,
__groupstack__
global
__group__
,
__grouplefthang__
,
__groupstack__
,
__halt__
g
=
0
if
__group__
.
getCount
()
>
1
:
if
__grouplefthang__
<
0
:
...
...
@@ -1313,19 +1313,26 @@ def __groupend__(name = ""):
d
=
ctx
.
ServiceManager
.
createInstanceWithContext
(
"com.sun.star.frame.Desktop"
,
ctx
)
draw
=
d
.
loadComponentFromURL
(
"private:factory/sdraw"
,
"_blank"
,
0
,
())
drawpage
=
draw
.
getDrawPages
()
.
getByIndex
(
0
)
while
XSCRIPTCONTEXT
.
getDocument
()
!=
draw
:
if
XSCRIPTCONTEXT
.
getDocument
()
not
in
[
draw
,
_
.
doc
,
None
]:
__halt__
=
True
return
__time__
.
sleep
(
0.1
)
__dispatcher__
(
".uno:Paste"
,
(),
draw
)
__dispatcher__
(
".uno:FormatGroup"
,
(),
draw
)
pic
=
drawpage
.
getByIndex
(
0
)
pic
.
setPosition
(
__Point__
((
g
.
BoundRect
.
Width
-
g
.
Size
.
Width
)
//
2
,
(
g
.
BoundRect
.
Height
-
g
.
Size
.
Height
)
//
2
))
drawpage
.
Height
,
drawpage
.
Width
=
g
.
BoundRect
.
Height
,
g
.
BoundRect
.
Width
__time__
.
sleep
(
1
)
# avoid writing problem
if
not
os
.
path
.
isabs
(
name
):
name
=
os
.
path
.
expanduser
(
'~'
)
+
os
.
path
.
sep
+
name
__dispatcher__
(
".uno:ExportTo"
,
(
__getprop__
(
"URL"
,
unohelper
.
systemPathToFileUrl
(
name
)),
__getprop__
(
"FilterName"
,
"draw_svg_Export"
)),
draw
)
__time__
.
sleep
(
1
)
create_valid_svg_file
(
name
)
draw
.
close
(
True
)
while
XSCRIPTCONTEXT
.
getDocument
()
!=
_
.
doc
:
if
XSCRIPTCONTEXT
.
getDocument
()
not
in
[
draw
,
_
.
doc
,
None
]:
__halt__
=
True
return
__time__
.
sleep
(
0.1
)
create_valid_svg_file
(
name
)
__group__
=
__groupstack__
.
pop
()
if
__group__
and
g
:
__group__
.
add
(
g
)
...
...
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