Issue 25719 - It is not possible to set the view grid options
Summary: It is not possible to set the view grid options
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: marc.neumann
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-20 07:32 UTC by ocke.janssen
Modified: 2013-02-24 21:08 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ocke.janssen 2004-02-20 07:32:56 UTC
The view settings

IsGridVisible
IsSnapToGrid
IsSynchroniseAxes
HorizontalGridResolution
HorizontalGridSubdivision
VerticalGridResolution
VerticalGridSubdivision

are missing.

I've added this isssue  to the cws insight01.

Best regards,

Ocke
Comment 1 thomas.lange 2004-02-20 13:31:07 UTC
.
Comment 2 thomas.lange 2004-02-25 12:40:37 UTC
Fixed in CWS insight01.
Files changed:
sw:
- SwXDocumentSettings.cxx 1.30.80.1
- unomod.cxx 1.22.34.1
offapi:
- css.text.ViewSettings.idl 1.12.60.1

In my Office (not build from the CWS) the application crashed when I double
clicked at the zoom factor in the status bar after I had inserted a rectangle.
Also the "Tools/Options" dialog was not displayed. 
I guess these problems vanish when you finally build the instset for the CWS.


The macro I used for testing:

Sub Main

oDoc = thiscomponent

oVS = oDoc.getCurrentController().getViewSettings()
'msgbox IsNull(oVS)
'msgbox oVS.dbg_properties
'msgbox oVS.getImplementationName()
oVS.setPropertyValue( "IsRasterVisible", true )
oVS.setPropertyValue( "IsSnapToRaster", true )
oVS.setPropertyValue( "RasterSubdivisionX", 5 )
oVS.setPropertyValue( "RasterSubdivisionY", 5 )

msgbox oVS.IsRasterVisible
msgbox oVS.IsSnapToRaster
msgbox oVS.RasterSubdivisionX
msgbox oVS.RasterSubdivisionY
msgbox oVS.RasterResolutionX
msgbox oVS.RasterResolutionY
oVS.RasterResolutionX = 2000
oVS.RasterResolutionY = 2000
'msgbox oVS.RasterResolutionX
'msgbox oVS.RasterResolutionY

End Sub

Comment 3 thomas.lange 2004-02-25 12:42:24 UTC
.
Comment 4 thomas.lange 2004-02-25 14:55:25 UTC
See feature mail 2882.
Comment 5 marc.neumann 2004-06-15 08:17:36 UTC
macro works in cws insight01
Comment 6 marc.neumann 2004-06-16 13:02:07 UTC
reopen
Comment 7 marc.neumann 2004-06-16 13:02:20 UTC
reassign
Comment 8 marc.neumann 2004-06-16 13:02:33 UTC
set to fixed
Comment 9 marc.neumann 2004-06-16 13:02:49 UTC
set to verify
Comment 10 marc.neumann 2004-09-13 09:18:02 UTC
Hi,

fixed in current developer build -> close.
The current developer build can be found at
http://download.openoffice.org/680/index.html
Feel free to reopen if this issue is not fixed in the developer build.

Bye Marc