programmatically removing connected shapes

2013-05-20 Thread Антон Борисов
Hello, need some help with draw extension I have 3 shapes connected: 2 connector shapes, 1 text shape, they are connected next way: " > text > " I trying to do next: removing one of this shapes (i.e by key delete) will causes deleting two another. I handle XEventListener "ShapeRemoved"

programmatically removing connected shapes

2013-05-20 Thread Антон Борисов
I have 3 shapes connected: 2 connector shapes, 1 text shape, they are connected next way: " > text > " I trying to do next: removing one of this shapes (i.e by key delete) will causes deleting two another. I handle XEventListener "ShapeRemoved", and deleting another by XDrawPage.remove,

Re: programmatically removing connected shapes

2013-05-22 Thread Антон Борисов
e event, delete connected ConnectorShape but program crashes. 2013/5/20 Ariel Constenla-Haile : > Hi Антон, > > On Mon, May 20, 2013 at 08:56:05PM +0400, Антон Борисов wrote: >> Hello, need some help with draw extension >> >> I have 3 shapes connected: 2 connector shapes, 1 text s

Re: Inserting table in draw

2013-06-04 Thread Антон Борисов
thanks for reply, it helped 2013/5/25 Антон Борисов : > Hello, according to draw application menu it's possible to insert > table to draw document by gui, > I need to do this in extension, > so question is it's possible or not? > > i found > http://wiki.openoffice.

Multiple instances of main extesion's class

2013-06-30 Thread Антон Борисов
i noticed that for each frame openoffice creates ten instances of extesion main class. Why it's so, and how to have only one per frame ? I created my own implementation of XSingleComponentFactory which is returning in __getComponentFactory but how to find out about frame from createInstanceWithCo

On new page drawdocument event

2013-07-21 Thread Антон Борисов
Hello, can someone could tell me, whether draw document supports onnewpage event or not? if not, if there's exists alternative methods to create handler for this event? (I think by dispatch framework it is real) Thank you for any help you can provide in this situation -- Борисов Антон --

Re: Multiple instances of main extesion's class

2014-01-28 Thread Антон Борисов
no reply yet :( i still have this problem, maybe someone knows solution? 2013-06-30 Антон Борисов > i noticed that for each frame openoffice creates ten instances of > extesion main class. Why it's so, and how to have only one per frame ? > > I created my own

Re: Multiple instances of main extesion's class

2014-02-02 Thread Антон Борисов
om.sun.star.task.Job", "com.sun.star.task.AsyncJob" services I assume that it's creating instance for every button in toolbar or something similar. It's possible to do it Singleton per frame? 2014-01-29 Ariel Constenla-Haile : > Hi Антон > > On Wed, Jan 29, 2014 at 01:43:10AM +

Re: Multiple instances of main extesion's class

2014-02-08 Thread Антон Борисов
Thanks for reply, now it works 2014-02-06 10:36 GMT+04:00 Ariel Constenla-Haile : > On Mon, Feb 03, 2014 at 02:14:16AM +0400, Антон Борисов wrote: > > my extension is having something like Model (which consists of Nodes > > (customized shapes) and Links (customized connector shap

ToolbarItem Image Trouble

2014-02-08 Thread Антон Борисов
I have some troubles with toolbar icons and menu icons Image for Toolbar item not showing with ControlType ImageButton, set for toolbar item URL and in case when ImageIdentifier set for ToolbarItem itself a have no idea why it happened maybe wrong maven-ooo-plugin configuration in pom I want to

Re: ToolbarItem Image Trouble

2014-02-09 Thread Антон Борисов
Thanks, now it's working 09 февр. 2014 г. 5:09 пользователь "Ariel Constenla-Haile" < arie...@apache.org> написал: > Hi Антон, > > On Sun, Feb 09, 2014 at 01:25:38AM +0400, Антон Борисов wrote: > > I have some troubles with toolbar icons and menu icons > &

show sidebar by code in extension

2014-02-11 Thread Антон Борисов
Dear all, It's possible to show and hide Sidebar by java code in extension by dispatch framework or by another way ? I haven't found anything by searching -- Borisov Anton

Re: show sidebar by code in extension

2014-02-15 Thread Антон Борисов
bar="true" it's displaying but as separate dialog. i found example with one panel, maybe i've missed some important details about case more than one panel? 2014-02-15 21:38 GMT+04:00 Ariel Constenla-Haile : > Hi Антон, > > On Wed, Feb 12, 2014 at 02:21:19AM +0400,

Sidebar Panel DIalog and XDialogEventHandler

2014-04-13 Thread Антон Борисов
It's possible to handle sidebar panel XDialog with XDialogEventHandler ? If i call xDialog.execute() it will be showed not inside sidebar, just like plain dialog. If i'm not calling execute, public XUIElement createUIElement() returns new UIElement( sResourceURL,

Re: Sidebar Panel DIalog and XDialogEventHandler

2014-04-20 Thread Антон Борисов
thanks for replies 2014-04-14 11:45 GMT+04:00 Andre Fischer : > On 13.04.2014 22:38, Ariel Constenla-Haile wrote: > >> Hello Антон, >> >> On Sun, Apr 13, 2014 at 06:02:29PM +0400, Антон Борисов wrote: >> >>> It's possible to handle sidebar panel XDi

setting PositionX and PositionY of FixedHyperlink have no effect

2014-05-03 Thread Антон Борисов
Hi all, I have dialog created by DialogProvider2 and xdl file created in Form Designer, and i want to add Hyperlink to this dialog by java code, because there is no ability to add it in Form Designer. XDialog dialog = ... XControl dialogControl = ..

Re: OpenOffice Calc

2018-03-02 Thread Антон Борисов
You can define custom formula https://wiki.openoffice.org/wiki/Custom_functions Anton Borisov сб, 3 марта 2018 г., 1:57 Павел : > > Good afternoon! > Sorry for my bad english. > I propose a new formula for the OpenOffice Calc application. > = FINDN (A; B; C; D), where > FINDN (A; B; C; D) - disp