On 08/21/2010 11:54 AM, Andrew Douglas Pitonyak wrote:
>  I sent a document off list to see if a document that I create sets the
> cursor at a specific location. Any volunteers using an EN USA version of
> OOo want to test my document... Of so, drop me a line and I will send a
> copy of the document to see if this only works based on the user that
> saved the document.
>
> The document is very small (two pages of text).
I am configured to save documents using ODF 1.2 Extended. Note that this
is currently in the review process (ie, it is not finalized).

I took a quick look at the 1.1 format, which is finalized. There is a
specification for specifying the cursor position using the tag:

cursor-position

Note that this tag does NOT exist in my document.

I did notice, however, that in the included settings.xml, I have the
following items:

<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="ViewAreaTop"
config:type="long">19473</config:config-item>
<config:config-item config:name="ViewAreaLeft"
config:type="long">0</config:config-item>
<config:config-item config:name="ViewAreaWidth"
config:type="long">22057</config:config-item>
<config:config-item config:name="ViewAreaHeight"
config:type="long">17612</config:config-item>
<config:config-item config:name="ShowRedlineChanges"
config:type="boolean">true</config:config-item>
<config:config-item config:name="InBrowseMode"
config:type="boolean">false</config:config-item>
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
<config:config-item config:name="ViewId"
config:type="string">view2</config:config-item>
<config:config-item config:name="ViewLeft"
config:type="long">7867</config:config-item>
<config:config-item config:name="ViewTop"
config:type="long">31443</config:config-item>
<config:config-item config:name="VisibleLeft"
config:type="long">0</config:config-item>
<config:config-item config:name="VisibleTop"
config:type="long">19473</config:config-item>
<config:config-item config:name="VisibleRight"
config:type="long">22056</config:config-item>
<config:config-item config:name="VisibleBottom"
config:type="long">37084</config:config-item>
<config:config-item config:name="ZoomType"
config:type="short">0</config:config-item>
<config:config-item config:name="ViewLayoutColumns"
config:type="short">1</config:config-item>
<config:config-item config:name="ViewLayoutBookMode"
config:type="boolean">false</config:config-item>
<config:config-item config:name="ZoomFactor"
config:type="short">125</config:config-item>
<config:config-item config:name="IsSelectedFrame"
config:type="boolean">false</config:config-item>
</config:config-item-map-entry>
</config:config-item-map-indexed>
</config:config-item-set>
<config:config-item-set config:name="ooo:configuration-settings">
<config:config-item config:name="AllowPrintJobCancel"
config:type="boolean">true</config:config-item>
<config:config-item config:name="PrintPaperFromSetup"
config:type="boolean">false</config:config-item>
<config:config-item config:name="AddFrameOffsets"
config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintLeftPages"
config:type="boolean">true</config:config-item>
....

This data appears to be very OOo specific. I moved the cursor to the
left and saved the document. What changed? The ViewLeft value. I assume,
therefore, that this is what is used to specify the cursor position.

The ViewLeft attribute is not in my OOo 1.1 document. So, I grabbed the
1.2 documents out for public review. Not there either. I assume,
therefore, that when I save a document, the view is probably determined
based on a view, which will change subject to some criteria (but this is
a totally wild guess based on some observed data).




-- 
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to