von turtle47 » Fr, 18.06.2010 16:39
Hi Arran,
hierzu was aus meiner Grabbelkiste:
Code: Alles auswählen
Sub FalzMarkenSetzen
oDoc = thisComponent
myLine = "oLine"
for i = 0 to 2
aLine = Array(10500,14850,20900)'Position der Linie
lLine = Array(800,500,800)'Länge der Linie
oLine = myLine & i
oLine = oDoc.createInstance("com.sun.star.drawing.LineShape")
dim oPos3 as new com.sun.star.awt.Point
oPos3.X = 300 'Randabstand
oPos3.Y = aLine(i)
dim LineSize as new com.sun.star.awt.Size
LineSize.Width = lLine(i)
with oLine
.name = "Falzmarke" & i + 1
.lineColor = RGB(172, 168, 153)
.lineWidth = 1
.position = oPos3
.Size = LineSize
.AnchorType = com.sun.star.text.TextContentAnchorType.AT_PAGE
.MoveProtect = true
end with
oDoc.Drawpage.add(oLine)
next
End Sub
Arran hat geschrieben:Da arbeite ich ja mindestens gleichlang wie ein Vorlage erstellen...
Einfach in die OO.o Standardbibliothek einfügen, Symbol in die Standardleiste einfügen, klicken > fertig.
Viel Erfolg.
Jürgen
Hi Arran,
hierzu was aus meiner Grabbelkiste:
[code]Sub FalzMarkenSetzen
oDoc = thisComponent
myLine = "oLine"
for i = 0 to 2
aLine = Array(10500,14850,20900)'Position der Linie
lLine = Array(800,500,800)'Länge der Linie
oLine = myLine & i
oLine = oDoc.createInstance("com.sun.star.drawing.LineShape")
dim oPos3 as new com.sun.star.awt.Point
oPos3.X = 300 'Randabstand
oPos3.Y = aLine(i)
dim LineSize as new com.sun.star.awt.Size
LineSize.Width = lLine(i)
with oLine
.name = "Falzmarke" & i + 1
.lineColor = RGB(172, 168, 153)
.lineWidth = 1
.position = oPos3
.Size = LineSize
.AnchorType = com.sun.star.text.TextContentAnchorType.AT_PAGE
.MoveProtect = true
end with
oDoc.Drawpage.add(oLine)
next
End Sub[/code]
[quote="Arran"]Da arbeite ich ja mindestens gleichlang wie ein Vorlage erstellen... [/quote]
Einfach in die OO.o Standardbibliothek einfügen, Symbol in die Standardleiste einfügen, klicken > fertig. :lol:
Viel Erfolg.
Jürgen