Re: Need help on bookmark writter
Sorry all, I have been out of town. From what I read on some of the requests, is that you want for different users to enter the document at different points. I am assuming you are converting the document to html. The way to do that is to give an ‘id’ to every entry point. So George Goble world use demo.html#George_Goble and Betty Grable would use demo.html#Betty_Grable, etc. I have my own javascript that can add a table of contents to an html document. I am also working on an upgrade of the Open Office outputting an html file which I can try putting in that code when I detect a table of contents in the original document. Howard Morris
Re: Need help on bookmark writter
Andrew Pitonyak schreef op 13/03/2015 om 12:55: Of course you can do it... Start by finding each bookmark to see how that is done. I don't remember off hand if you can then insert the image at the anchor point. You may need to use a dispatch to do it. something like | oMarks = ThisComponent.getBookmarks() oAnchor = oMarks.getByName(MyMark).getAnchor() oCursor = ThisComponent.getCurrentController().getViewCursor() oCursor.gotoRange(oAnchor, False)| 'now the viewcursor is at the bookmark |ThisComponent|.text.insertTextContent(oDoc.getCurrentController().getViewCursor(), oGraphic, false) hope it helps Fernand Check OOME.odt and AndrewMacro.odt for examples. I can't check either at the moment. On Mar 12, 2015 10:50 AM, purushottam kumar purushottam.ku...@pankanis.com wrote: Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483 - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: Need help on bookmark writter
Hi Dennis, Thanks for your quick response. Actually i have a openOffice template in doc or in odt format that may contains some text, images and tables. There will be some marker in that doc which i need to replace dynamically for different users using openOffice SDK. For text markers i have achieved this task using user fields. In the same way for images i am thinking to have a dummy images in my doc, so that i can change that dummy images with a particular user image at runtime. For this , i am thinking to achieve this task using bookmark, but i am not sure weather we can fill any bookmark with some image or not. Please guide me , how can i achieve this. PS: i am using openoffice sdk for this. Regards, Purushottam On Thu, Mar 12, 2015 at 10:48 PM, Dennis E. Hamilton dennis.hamil...@acm.org wrote: Please say more. Are you saying you want the bookmark to be on an image so it can be referred to using the bookmark? Is the problem that the bookmark exists already and you want to replace the text with an image? Did you place the bookmark on a range of text or just at a point in the text? What you cannot do is use an image as the name of the bookmark. If the image is anchored to text, you can bookmark where the image is. You can also use the Navigator to go to images without bookmarking them. (See View Navigator) You can also link to images without using bookmarks to do it. - Dennis PS: You have reached a public mailing list on which volunteers contribute to questions from other users like themselves. For any follow-up, please reply to dev@openoffice.apache.org where expert users can offer further advice and others can learn the solutions others have found. -Original Message- From: purushottam kumar [mailto:purushottam.ku...@pankanis.com] Sent: Thursday, March 12, 2015 07:51 To: dev@openoffice.apache.org; dev-subscr...@openoffice.apache.org Subject: Need help on bookmark writter Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483
Re: Need help on bookmark writter
Of course you can do it... Start by finding each bookmark to see how that is done. I don't remember off hand if you can then insert the image at the anchor point. You may need to use a dispatch to do it. Check OOME.odt and AndrewMacro.odt for examples. I can't check either at the moment. On Mar 12, 2015 10:50 AM, purushottam kumar purushottam.ku...@pankanis.com wrote: Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483
Re: Need help on bookmark writter
Hello, Can any one from the dev group please reply on this if you have some clue. Its really very urgent. Thanks in advance. Regards, Purushottam On Fri, Mar 13, 2015 at 11:45 AM, purushottam kumar purushottam.ku...@pankanis.com wrote: Hi Dennis, Thanks for your quick response. Actually i have a openOffice template in doc or in odt format that may contains some text, images and tables. There will be some marker in that doc which i need to replace dynamically for different users using openOffice SDK. For text markers i have achieved this task using user fields. In the same way for images i am thinking to have a dummy images in my doc, so that i can change that dummy images with a particular user image at runtime. For this , i am thinking to achieve this task using bookmark, but i am not sure weather we can fill any bookmark with some image or not. Please guide me , how can i achieve this. PS: i am using openoffice sdk for this. Regards, Purushottam On Thu, Mar 12, 2015 at 10:48 PM, Dennis E. Hamilton dennis.hamil...@acm.org wrote: Please say more. Are you saying you want the bookmark to be on an image so it can be referred to using the bookmark? Is the problem that the bookmark exists already and you want to replace the text with an image? Did you place the bookmark on a range of text or just at a point in the text? What you cannot do is use an image as the name of the bookmark. If the image is anchored to text, you can bookmark where the image is. You can also use the Navigator to go to images without bookmarking them. (See View Navigator) You can also link to images without using bookmarks to do it. - Dennis PS: You have reached a public mailing list on which volunteers contribute to questions from other users like themselves. For any follow-up, please reply to dev@openoffice.apache.org where expert users can offer further advice and others can learn the solutions others have found. -Original Message- From: purushottam kumar [mailto:purushottam.ku...@pankanis.com] Sent: Thursday, March 12, 2015 07:51 To: dev@openoffice.apache.org; dev-subscr...@openoffice.apache.org Subject: Need help on bookmark writter Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483
RE: Need help on bookmark writter
Purushottam, Please allow for time differences. You are dealing with an international community. An experiment for you to try is to do it using Apache OpenOffice Writer. Create an image in text. Select it. Use the bookmark feature to set a bookmark. If it allows it, save it and reload it to verify that the bookmark is still there. See if you can replace the image and have the bookmark be preserved. The ODF specification allows two kinds of bookmark targets. There can be a single point in the document flow that is the target. That is the common case. There is also a feature to mark the start and the subsequent end of a bookmark span. I think you want the image (anchor) inside of that. You should be able to see what happens by examining the content.xml file of the generated ODT. Then see how to accomplish that using the OpenOffice SDK. - Dennis -Original Message- From: purushottam kumar [mailto:purushottam.ku...@pankanis.com] Sent: Thursday, March 12, 2015 23:16 To: dennis.hamil...@acm.org Cc: dev@openoffice.apache.org Subject: Re: Need help on bookmark writter Hi Dennis, Thanks for your quick response. Actually i have a openOffice template in doc or in odt format that may contains some text, images and tables. There will be some marker in that doc which i need to replace dynamically for different users using openOffice SDK. For text markers i have achieved this task using user fields. In the same way for images i am thinking to have a dummy images in my doc, so that i can change that dummy images with a particular user image at runtime. For this , i am thinking to achieve this task using bookmark, but i am not sure weather we can fill any bookmark with some image or not. Please guide me , how can i achieve this. PS: i am using openoffice sdk for this. Regards, Purushottam On Thu, Mar 12, 2015 at 10:48 PM, Dennis E. Hamilton dennis.hamil...@acm.org wrote: Please say more. Are you saying you want the bookmark to be on an image so it can be referred to using the bookmark? Is the problem that the bookmark exists already and you want to replace the text with an image? Did you place the bookmark on a range of text or just at a point in the text? What you cannot do is use an image as the name of the bookmark. If the image is anchored to text, you can bookmark where the image is. You can also use the Navigator to go to images without bookmarking them. (See View Navigator) You can also link to images without using bookmarks to do it. - Dennis PS: You have reached a public mailing list on which volunteers contribute to questions from other users like themselves. For any follow-up, please reply to dev@openoffice.apache.org where expert users can offer further advice and others can learn the solutions others have found. -Original Message- From: purushottam kumar [mailto:purushottam.ku...@pankanis.com] Sent: Thursday, March 12, 2015 07:51 To: dev@openoffice.apache.org; dev-subscr...@openoffice.apache.org Subject: Need help on bookmark writter Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483 - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
RE: Need help on bookmark writter
Please say more. Are you saying you want the bookmark to be on an image so it can be referred to using the bookmark? Is the problem that the bookmark exists already and you want to replace the text with an image? Did you place the bookmark on a range of text or just at a point in the text? What you cannot do is use an image as the name of the bookmark. If the image is anchored to text, you can bookmark where the image is. You can also use the Navigator to go to images without bookmarking them. (See View Navigator) You can also link to images without using bookmarks to do it. - Dennis PS: You have reached a public mailing list on which volunteers contribute to questions from other users like themselves. For any follow-up, please reply to dev@openoffice.apache.org where expert users can offer further advice and others can learn the solutions others have found. -Original Message- From: purushottam kumar [mailto:purushottam.ku...@pankanis.com] Sent: Thursday, March 12, 2015 07:51 To: dev@openoffice.apache.org; dev-subscr...@openoffice.apache.org Subject: Need help on bookmark writter Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483 - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Need help on bookmark writter
Hello Sir, I want to replace the content of a bookmark with an image instead of some text. Is this possible in Openoffice? Please help. Regards, Purushottam 9922008483