von komma4 » Mo, 10.11.2008 16:48
...i see...
nun, dann halt nicht über Textmarken, sondern über die Texttabelle:
Code: Alles auswählen
oForm = ThisComponent.Drawpage.Forms(0)
oFeld = oForm.getByName( "CheckBox" )
' Texttabellle, Index 0
oTxtTab = ThisComponent.getTextTables().getByIndex( 0 )
If oFeld.State = 1 Then
' eingeschaltet
' Position, bei null beginnend (Spalte, Zeile)
oTxtTab.getCellByPosition( 0 , 1 ).Value = 1
Else
' ausgeschaltet
oTxtTab.getCellByPosition( 0 , 1 ).Value = 0
End If
Hiermit klappt auch die automatische Berechnung wieder.
Dir hilft das?
[i]...i see...[/i]
nun, dann halt nicht über Textmarken, sondern über die Texttabelle:
[code]oForm = ThisComponent.Drawpage.Forms(0)
oFeld = oForm.getByName( "CheckBox" )
' Texttabellle, Index 0
oTxtTab = ThisComponent.getTextTables().getByIndex( 0 )
If oFeld.State = 1 Then
' eingeschaltet
' Position, bei null beginnend (Spalte, Zeile)
oTxtTab.getCellByPosition( 0 , 1 ).Value = 1
Else
' ausgeschaltet
oTxtTab.getCellByPosition( 0 , 1 ).Value = 0
End If[/code]
Hiermit klappt auch die automatische Berechnung wieder.
Dir hilft das?