[api-dev] Re: How to insert a page break

2011-05-05 Thread Jürgen Schmidt
On 5/4/11 10:50 PM, Herter, Scott wrote:
 I can't get to the API reference at the moment, keeps timing out on the web 
 page.  As soon as I can get to the website again I will look that up.
download the SDK and you can use the API reference offline ;-)

Juergen

 
 In the mean time I get a page cursor when I have moved the view cursor to the 
 point I want to be at and then use the page number to decide if I am putting 
 in a single or double page break based on what type of page break it is.  It 
 works, but relies on my math being right and the definition of left and right 
 never changing.  I would prefer to let OpenOffice figure out if there should 
 be one or two page breaks in those cases, especially if we ever get in to 
 languages that read right to left.
 
 -Original Message-
 From: Cor Nouws [mailto:oo...@nouenoff.nl] 
 Sent: Wednesday, May 04, 2011 3:31 PM
 To: dev@api.openoffice.org
 Subject: [api-dev] Re: How to insert a page break
 
 Herter, Scott wrote (04-05-11 21:13)
 I figured out how to set a page break through the cursor properties, I
 just can't find a way to break left/right or odd/even.
 
 My idea would be to set the page style.
 
 Regards,
 Cor
 

-- 
-
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help


[api-dev] Re: How to insert a page break

2011-05-04 Thread Herter, Scott
I figured out how to set a page break through the cursor properties, I just 
can't find a way to break left/right or odd/even.

Thanks.

From: Herter, Scott [mailto:scott.her...@napersoft.com]
Sent: Wednesday, May 04, 2011 1:25 PM
To: dev@api.openoffice.org
Subject: [api-dev] How to insert a page break

I am trying to go through a document and insert a page break at a certain point 
in the document.  Specifically I need to insert either a break right or break 
left code.  I can search through the document, I can insert text, I can remove 
text, I can't find any way to insert a break through the API.

I tried recording a macro, but that only showed me how to pop up the insert 
break dialog, not very helpful.  I have been combing through the API 
documentation trying to find some way to insert a new page break and have not 
been able to find anything close to that.

Any suggestions on which API calls to look at?  I can get an XComponent, 
XTextDocument, XText, and any component they implement, I just can't figure out 
which API call will insert a page break.

Thanks.

--
I used to think I wasn't a morning person, but things never got better after 
lunch.
-- Wally from Dilbert

-- 
-
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help


[api-dev] Re: How to insert a page break

2011-05-04 Thread Cor Nouws

Herter, Scott wrote (04-05-11 21:13)

I figured out how to set a page break through the cursor properties, I
just can’t find a way to break left/right or odd/even.


My idea would be to set the page style.

Regards,
Cor

--
 - http://nl.libreoffice.org
 - giving openoffice.org its foundation :: The Document Foundation -

--
-
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help


[api-dev] Re: How to insert a page break

2011-05-04 Thread Herter, Scott
I can't get to the API reference at the moment, keeps timing out on the web 
page.  As soon as I can get to the website again I will look that up.

In the mean time I get a page cursor when I have moved the view cursor to the 
point I want to be at and then use the page number to decide if I am putting in 
a single or double page break based on what type of page break it is.  It 
works, but relies on my math being right and the definition of left and right 
never changing.  I would prefer to let OpenOffice figure out if there should be 
one or two page breaks in those cases, especially if we ever get in to 
languages that read right to left.

-Original Message-
From: Cor Nouws [mailto:oo...@nouenoff.nl] 
Sent: Wednesday, May 04, 2011 3:31 PM
To: dev@api.openoffice.org
Subject: [api-dev] Re: How to insert a page break

Herter, Scott wrote (04-05-11 21:13)
 I figured out how to set a page break through the cursor properties, I
 just can't find a way to break left/right or odd/even.

My idea would be to set the page style.

Regards,
Cor

-- 
  - http://nl.libreoffice.org
  - giving openoffice.org its foundation :: The Document Foundation -

-- 
-
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help

-- 
-
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help