Re: [api-dev] Attempt for an UNO Undo API

2010-10-26 Thread Ingrid Halama
Hi Frank, Frank Schönheit wrote: For the moment, I declared an UndoFailedException, derived from css.uno.Exception, and let undo/redo throw it. Still an euphemism for "anything can go wrong", though, so I am not that happy with it ... I think a new UndoFailedException is better than css.uno.E

Re: [api-dev] Attempt for an UNO Undo API

2010-10-15 Thread Ingrid Halama
Hi Frank, Frank Schönheit wrote: Hi, An UNO Undo API has been a revenant in this list (and other places) for multiple years now. Not sure if this year's attempt to exorcise (aka: implement) it will be more fruitful than previous ones, but let's see ... The following are some thoughts I have o

Re: [api-dev] Insert column and line chart in calc

2010-10-15 Thread Ingrid Halama
Hi Pivithuru, Pivithuru Wijegunawardana wrote: Hi, I used the following code segment to set the chart type to bar diagram and then set the "NumberOfLines" property value. But I couldn't see the lines in the chart. And also I tried to change some other properties also. I couldn't do any property

Re: [api-dev] setData on a chart

2009-09-02 Thread Ingrid Halama
Hi, On 08/11/09 21:11, Cor Nouws wrote: Andrew Douglas Pitonyak wrote (29-7-2009 1:35) I received a request on how to set the data on a chart. Calling setData causes OOo to crash, and it used to work. This appears to be a regression problem, because the macro used to work. [...] Yes it is

Re: [api-dev] ChartLegend in :: com :: sun :: star :: chart :: ?

2009-08-27 Thread Ingrid Halama
On 08/17/09 16:19, Clayton wrote: Please take a look at this question on the Wiki version of the Developer's Guide: http://wiki.services.openoffice.org/wiki/File_talk:ChartDocument.png C. ChartLegend is still available. No need to change the picture. Ingrid -

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-22 Thread Ingrid Halama
Hi, I am sorry to say that even when you take the right axes the idea will not work. Those distance settings are ignored for category axes in the current state. So, sorry there is no way to get the grid lines placed more pleasant in your scenario. Ingrid Ingrid Halama wrote: Hi, A

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-22 Thread Ingrid Halama
ScaleData(); IncrementData incData=new IncrementData(); incData.Distance=30; scaledata.IncrementData=incData; xaxis.setScaleData(scaledata); Ingrid Halama wrote: Hi, othman wrote: Hi Ingrid , Just discard my last email where i reported a bug about renam

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-22 Thread Ingrid Halama
Hi, othman wrote: Hi Ingrid, I'm attaching below a screen shot of the x-axis grid and labels i need to achieve. as you can see the x-axis should display dates with one month difference and between two successive months ,there should be two vertical grids in between without labels. I'm looking

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-22 Thread Ingrid Halama
can i fix this issue ? i need when i rename a sheet manually; the old sheet name (sheet4) should be replaced by new name and sheet name (Sheet4) must be removed from sheets elements array. thanks much . othman. Ingrid Halama wrote: Hi, That is a bug. You can do the following to work around: Quer

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-22 Thread Ingrid Halama
lor", new Integer( 0x00 )); xGridProp.setPropertyValue( "LineStyle", LineStyle.DASH ); xGridProp.setPropertyValue( "LineDash", aDash ); xGridProp.setPropertyValue( "LineWidth", new Integer( 30 )); } Ingrid Halama wro

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-19 Thread Ingrid Halama
new Integer( 0x00 )); xGridProp.setPropertyValue( "LineStyle", LineStyle.DASH ); xGridProp.setPropertyValue( "LineDash", aDash ); xGridProp.setPropertyValue( "LineWidth", new Integer( 30 )); } Ingrid Halama wrote: Hi,

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-17 Thread Ingrid Halama
scenario. Kind regards, Ingrid thanks. othman. Ingrid Halama wrote: Hi, othman wrote: Hi Ingrid, as we all know the candle chart has two bars (black and white) I guess that by changing the bar width, the chart can have a larger date range displayed. No. I am not sure whether this is

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-16 Thread Ingrid Halama
Hi, othman wrote: Hi Ingrid, as we all know the candle chart has two bars (black and white) I guess that by changing the bar width, the chart can have a larger date range displayed. No. I am not sure whether this is the correct direction to fix the x-axis scale problem . what you think about

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-12 Thread Ingrid Halama
Hi, othman wrote: Ingrid Halama wrote: Within the standard API the different types of diagrams do support several axis-supplier services. For example the LineDiagram (http://api.openoffice.org/docs/common/ref/com/sun/star/chart/LineDiagram.html) does support ChartAxisXSupplier and

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-12 Thread Ingrid Halama
Hi, othman wrote: Ingrid Halama wrote: There is only one legend entry shown for one stock symbol because there is only one line style used for all the values (high low close open). You may try to trick around by adding series of chart type line without any values but with a label. That

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-11 Thread Ingrid Halama
Hi, othman wrote: Ingrid Halama wrote: Yes, it is tricky. The DataSeries do consist of one or more XLabeledDataSequence. http://api.openoffice.org/docs/common/ref/com/sun/star/chart2/data/XLabeledDataSequence.html Each XLabeledDataSequence could have a DataSequence for labels and one for

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-11 Thread Ingrid Halama
Hi, othman wrote: Ingrid Halama wrote: For each series there is one entry generated in the legend. The displayed text is the label of the series and the displayed symbol is the symbol fitting to the properties of the series. For example when you have a series with label 'Series A'

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-04 Thread Ingrid Halama
Hi, othman wrote: Ingrid Halama wrote: For each series there is one entry generated in the legend. The displayed text is the label of the series that's what i want to do : i want to set a Label for a given com.sun.star.chart2.XDataSeries Object.but this interface only has one method

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-04 Thread Ingrid Halama
Hi, othman wrote: Ingrid Halama wrote: 2)for each column of my sheet i want to attach a legend in the chart generated using chart2 and java code. for example the column for "open" values should have a red square and labeled "open" and so for other columns. at the mom

Re: [api-dev] discussing com:sun:star:chart2 API

2008-09-03 Thread Ingrid Halama
Hi, othman wrote: Hi, below are two questions regarding chart2 API features: 1) the default color of line charts (com.sun.star.chart2.LineChartType) is blue ; i want to change the color to black .how can i do that ? (i don't know what are the properties available for line chart b/c there is no

Re: [api-dev] discussing com:sun:star:chart2 module

2008-09-02 Thread Ingrid Halama
Hi, othman wrote: Hi all, I'm opening this new thread to further discuss the features available in the Unpublished com:sun:star:chart2 module . Please distinguish between the module chart2 and the API ::com::sun::star:chart2 . Within the module chart2 all the features are implemented that ar

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-27 Thread Ingrid Halama
Hi, othman wrote: Hi, Ingrid Halama wrote: There is no concept of date range at a category axis in neither API. There is only a sequence of texts that are displayed in order. The values in the stock chart are also only displayed in order. They are not displayed regarding any specific date or

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-27 Thread Ingrid Halama
Hi, othman wrote: Hi Ingrid, thanks for the elaborated response. I will discuss your propositions with our project manager & probably post the feedback in this mailing list . meantime , i hope we can continue on the issue of date formatting. Ingrid Halama wrote: It is not possible to s

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-26 Thread Ingrid Halama
Hi othman, othman wrote: Hi Ingrid, I appreciate your reply & interest to help in our project.our project scope is more interesting .i'll explain it below.at this stage i'm trying to discover the new chart2 API which still remains obscure to me.i'll need some time to understand well the structur

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-26 Thread Ingrid Halama
Hi, othman wrote: hi, Ingrid Halama wrote: With chart2 API the categories have to be attached to the according x axis. When you create the chart using the standard API set parameter 'bRowHeaders' to true in the method addNewByName(). http://api.openoffice.org/docs/common/ref/co

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread Ingrid Halama
Hi, othman wrote: Hi Ingrid & thanks for your patience & further assistance on this thread. you said previously that the default chart type is the bar chart. so i suppose my chart type container object already holds the "com.sun.star.chart2.ColumnChartType". However the below code throws an ex

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread Ingrid Halama
Hi, othman wrote: doing some slow progress in this issue. removing the default line chart is probably done by specifying a string range like ("A1") before i was using a range "A1:A1745" by using a range "A1" the black lines are now gone and only remains the blue chart which i suppose is the cand

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-25 Thread Ingrid Halama
Hi, othman wrote: Hi, I figured out the error i was making : i had to replace service name "com.sun.star.chart2.LabeledDataSequence" with "com.sun.star.chart2.data.LabeledDataSequence" Now i can get some interesting results: i got the stock chart drawn; however it seems that the x-axis values

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-22 Thread Ingrid Halama
om.sun.star.chart2.CandleStickChartType", xContext); com.sun.star.chart2.XChartType oChartType=(com.sun.star.chart2.XChartType) UnoRuntime.queryInterface( com.sun.star.chart2.XChartType.class, object); System.out.println("com.sun.star.chart2.XChartType="+oChartType.toString());

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-21 Thread Ingrid Halama
Hi othman, othman wrote: Sorry, i hope you bare with me & be patient answering my questions about the chart2 API. i wrote a java code to change the type of my chart from default LineType to candlestick type. However this code doesn't work with chart2 .but if i change to standar com.sun.star.char

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-20 Thread Ingrid Halama
[1]; oAddr[0] = myAddr; XTableChartsSupplier oSupp = (XTableChartsSupplier)UnoRuntime.queryInterface( XTableChartsSupplier.class, xSheet); XTableChart oChart = null; System.out.println("Insert new Chart"); XTableCharts oCharts = oSu

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-19 Thread Ingrid Halama
said: Ingrid Halama wrote: Query your chart document for interface com::sun::star::chart2::XChartDocument Well I'm not sure how i can get an instance to chart document. at the beginning there are no charts attached to current spreadsheet .so should i create an empty com::sun::star::c

Re: [api-dev] combined chart type using com:sun:star:chart2

2008-08-18 Thread Ingrid Halama
Hi othman, Again a warning about using ::com::sun::star::chart2 API: It is not provided for external usage yet. It is an internal API that will change further. When the API evolves your code will not work with future versions. If you nevertheless want to use the chart2 API on your own risk do

Re: [api-dev] Set Ranges in an XY Chart

2008-06-09 Thread Ingrid Halama
Hi, Thanks Daniel for providing the example! In fact the task can not be done via the published chart API. But when using chart2 API instead please keep in mind that it is not published and is targeted for further changes. So the suggested code can break in future versions. So all, when sp

Re: [api-dev] Unpublished UNO API

2006-08-22 Thread Ingrid Halama
Hi Jürgen, all, Jürgen Schmidt wrote: Frank Schönheit - Sun Microsystems Germany wrote: Hi Stephan, Second, we neither have nor plan to have in place a mechanism to detect that some UNO component/OOo extension uses an old revision of some unpublished API. That is, there will not be any warn