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
62423956
Kaydet (Commit)
62423956
authored
Eki 21, 2012
tarafından
Xisco Fauli
Kaydeden (comit)
xisco
Eki 22, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pywizards: unused method
Change-Id: I2664413d974c1e6a8b84d1807ffe982008e5aae9
üst
ce6995ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
TextDocument.py
wizards/com/sun/star/wizards/text/TextDocument.py
+0
-32
No files found.
wizards/com/sun/star/wizards/text/TextDocument.py
Dosyayı görüntüle @
62423956
...
...
@@ -172,38 +172,6 @@ class TextDocument(object):
xTextCursor
=
oCursorContainer
.
createTextCursor
()
return
xTextCursor
# Todo: This method is unsecure because the last index is not necessarily the last section
# Todo: This Routine should be modified, because I cannot rely on the last Table in the document to be the last in the TextTables sequence
# to make it really safe you must acquire the Tablenames before the insertion and after the insertion of the new Table. By comparing the
# two sequences of tablenames you can find out the tablename of the last inserted Table
# Todo: This method is unsecure because the last index is not necessarily the last section
def
getCharWidth
(
self
,
ScaleString
):
iScale
=
200
TextDocument
.
xTextDocument
.
lockControllers
()
iScaleLen
=
ScaleString
.
length
()
xTextCursor
=
createTextCursor
(
TextDocument
.
xTextDocument
.
Text
)
xTextCursor
.
gotoStart
(
False
)
com
.
sun
.
star
.
wizards
.
common
.
Helper
.
setUnoPropertyValue
(
xTextCursor
,
"PageDescName"
,
"First Page"
)
xTextCursor
.
String
=
ScaleString
xViewCursor
=
TextDocument
.
xTextDocument
.
CurrentController
xTextViewCursor
=
xViewCursor
.
ViewCursor
xTextViewCursor
.
gotoStart
(
False
)
iFirstPos
=
xTextViewCursor
.
Position
.
X
xTextViewCursor
.
gotoEnd
(
False
)
iLastPos
=
xTextViewCursor
.
Position
.
X
iScale
=
(
iLastPos
-
iFirstPos
)
/
iScaleLen
xTextCursor
.
gotoStart
(
False
)
xTextCursor
.
gotoEnd
(
True
)
xTextCursor
.
String
=
""
unlockallControllers
()
return
iScale
def
unlockallControllers
(
self
):
while
TextDocument
.
xTextDocument
.
hasControllersLocked
():
TextDocument
.
xTextDocument
.
unlockControllers
()
def
refresh
(
self
):
TextDocument
.
xTextDocument
.
refresh
()
...
...
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