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
e5f040bf
Kaydet (Commit)
e5f040bf
authored
Kas 24, 2012
tarafından
Xisco Fauli
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pyletter: Fix letterhead
Change-Id: I73977b203778dca42ef548b4c24412b794701e5a
üst
4fa0236f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
LetterDocument.py
wizards/com/sun/star/wizards/letter/LetterDocument.py
+2
-3
LetterWizardDialogImpl.py
...rds/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+8
-5
No files found.
wizards/com/sun/star/wizards/letter/LetterDocument.py
Dosyayı görüntüle @
e5f040bf
...
...
@@ -35,8 +35,6 @@ from com.sun.star.awt.FontWeight import BOLD
class
LetterDocument
(
TextDocument
):
TextDocument
=
None
def
__init__
(
self
,
xMSF
,
listener
):
super
(
LetterDocument
,
self
)
.
__init__
(
xMSF
,
listener
,
None
,
"WIZARD_LIVE_PREVIEW"
)
...
...
@@ -175,7 +173,8 @@ class LetterDocument(TextDocument):
class
BusinessPaperObject
(
object
):
def
__init__
(
self
,
FrameText
,
Width
,
Height
,
XPos
,
YPos
):
def
__init__
(
self
,
xTextDocument
,
FrameText
,
Width
,
Height
,
XPos
,
YPos
):
self
.
xTextDocument
=
xTextDocument
self
.
iWidth
=
Width
self
.
iHeight
=
Height
self
.
iXPos
=
XPos
...
...
wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
Dosyayı görüntüle @
e5f040bf
...
...
@@ -454,7 +454,8 @@ class LetterWizardDialogImpl(LetterWizardDialog):
if
self
.
numLogoHeight
.
Value
==
0
:
self
.
numLogoHeight
.
Value
=
0.1
self
.
BusCompanyLogo
=
BusinessPaperObject
(
"Company Logo"
,
int
(
self
.
numLogoWidth
.
Value
*
1000
),
self
.
myLetterDoc
.
xTextDocument
,
"Company Logo"
,
int
(
self
.
numLogoWidth
.
Value
*
1000
),
int
(
self
.
numLogoHeight
.
Value
*
1000
),
int
(
self
.
numLogoX
.
Value
*
1000
),
self
.
numLogoY
.
Value
*
1000
)
...
...
@@ -506,7 +507,8 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self
.
numAddressHeight
.
Value
=
0.1
self
.
BusCompanyAddress
=
BusinessPaperObject
(
"Company Address"
,
int
(
self
.
numAddressWidth
.
Value
*
1000
),
self
.
myLetterDoc
.
xTextDocument
,
"Company Address"
,
int
(
self
.
numAddressWidth
.
Value
*
1000
),
int
(
self
.
numAddressHeight
.
Value
*
1000
),
int
(
self
.
numAddressX
.
Value
*
1000
),
int
(
self
.
numAddressY
.
Value
*
1000
))
...
...
@@ -576,8 +578,8 @@ class LetterWizardDialogImpl(LetterWizardDialog):
xReceiverFrame
,
"VertOrientPosition"
))
iReceiverHeight
=
int
(
0.5
*
1000
)
self
.
BusCompanyAddressReceiver
=
BusinessPaperObject
(
" "
,
iFrameWidth
,
iReceiverHeight
,
iFrameX
,
iFrameY
-
iReceiverHeight
)
self
.
myLetterDoc
.
xTextDocument
,
" "
,
iFrameWidth
,
iReceiverHeight
,
iFrame
X
,
iFrame
Y
-
iReceiverHeight
)
self
.
setPossibleAddressReceiver
(
False
)
except
NoSuchElementException
:
traceback
.
print_exc
()
...
...
@@ -605,7 +607,8 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self
.
numFooterHeight
.
Value
=
0.1
self
.
BusFooter
=
BusinessPaperObject
(
"Footer"
,
self
.
myLetterDoc
.
DocSize
.
Width
,
self
.
myLetterDoc
.
xTextDocument
,
"Footer"
,
self
.
myLetterDoc
.
DocSize
.
Width
,
int
(
self
.
numFooterHeight
.
Value
*
1000
),
0
,
int
(
self
.
myLetterDoc
.
DocSize
.
Height
-
\
(
self
.
numFooterHeight
.
Value
*
1000
)))
...
...
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