[dev] UserFields Does not Update in the Document Content

2008-12-04 Thread [EMAIL PROTECTED]

Hello , 

You have helped me many times and now i need help again..I tried in the
previous posts to find it but i had no lack..
What i tried to do is change through java the value of a userfield..
That i have managed to do it..What is impossible is to update the field in
the document..
I have tried 2 ways but none of them works..

//The first method finds the name of userfield in the list and changes its
content.. Though nothing goes wrong and when i open the fields i can see the
new value , i don't see its value on the document..There i see the old value
not the new one..
/
Here is my code

XMultiServiceFactory xMultiServiceManager =
(XMultiServiceFactory)
UnoRuntime.queryInterface(XMultiServiceFactory.class, xComponent); 
try{
oUserField =
xMultiServiceManager.createInstance(com.sun.star.text.TextField.User);
} catch(com.sun.star.uno.Exception e) {
System.out.println(e);
}
xUserField =
(XDependentTextField)UnoRuntime.queryInterface(XDependentTextField.class, 
oUserField);

try{
oMasterPropSet =
xMultiServiceManager.createInstance(com.sun.star.text.FieldMaster.User);
} catch(com.sun.star.uno.Exception e) {
System.out.println(e);
}

XTextFieldsSupplier xTextFieldsSupplier =
(XTextFieldsSupplier)UnoRuntime.queryInterface(
XTextFieldsSupplier.class, xComponent);
// access the TextFields and the TextFieldMasters collections
XNameAccess xNamedFieldMasters =
xTextFieldsSupplier.getTextFieldMasters();

String[] fieldNames=xNamedFieldMasters.getElementNames();
for (int ll=0;llfieldNames.length;ll++) {
  System.out.println(fieldNames[ + ll + ] + fieldNames[ll]);
} 


for(int ll=0 ; llfields.length;ll++){
ls_fullMasterName = fields[ll][0];
ls_fullMasterValue = fields[ll][1];
ls_fullMasterName  = com.sun.star.text.FieldMaster.User. +
ls_fullMasterName;

if (xNamedFieldMasters.hasByName(ls_fullMasterName)){ 
Object oField;
oField = xNamedFieldMasters.getByName(ls_fullMasterName);
xMasterPropSet = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class,oField); 
xMasterPropSet.setPropertyValue(Content,
ls_fullMasterValue);
xUserField.attachTextFieldMaster (xMasterPropSet);
}
}

THE CONTNENT HAS NEW VALUE BUT NOT THE DOCUMENT!!!

Another thing i tried is the following though 


XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class,
this.xComponent); 
XController xController = xModel.getCurrentController();
XDispatchProvider xDispatchProvider =
(XDispatchProvider)UnoRuntime.queryInterface(XDispatchProvider.class,
xController.getFrame());
// Getting the Dispatch Helper 
XMultiServiceFactory xMultiServiceManager =
(XMultiServiceFactory)
UnoRuntime.queryInterface(XMultiServiceFactory.class, xComponent); 

Object oDispatchHelper = null; 
try{ 
oDispatchHelper = xMultiServiceManager.createInstance(
com.sun.star.frame.DispatchHelper); 
} catch(com.sun.star.uno.Exception e) {

} 
XDispatchHelper xDispatchHelper = (XDispatchHelper)
UnoRuntime.queryInterface(XDispatchHelper.class,oDispatchHelper); 
// Executing the commandURL 
xDispatchHelper.executeDispatch(xDispatchProvider,
.uno:UpdateFields, , 0, properties);

///
But no lack either here..

I would be very grateful if you can give me a hint:-(
Thanks in advance
Ciao
-- 
View this message in context: 
http://www.nabble.com/UserFields-Does-not-Update-in-the-Document-Content-tp20833234p20833234.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] UserFields Does not Update in the Document Content

2008-12-04 Thread [EMAIL PROTECTED]

I just found  something that it worked!!!

XRefreshable xRefreshable = (XRefreshable)UnoRuntime.queryInterface(
   XRefreshable.class, xEnumeratedFields);
xRefreshable.refresh();

AND EVERY FIELD REFRESHS!

Thnks a lot!!
-- 
View this message in context: 
http://www.nabble.com/UserFields-Does-not-Update-in-the-Document-Content-tp20833234p20833874.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Need Help with Listeners

2008-11-24 Thread [EMAIL PROTECTED]
[this.iuo_arraymenu.size()/4][4];
System.out.println(is_menus.length +  is_menus.length );
for(i=0;ithis.iuo_arraymenu.size();i=i+4){
is_menus[j][0] = this.iuo_arraymenu.get(i);
is_menus[j][1] = this.iuo_arraymenu.get(i+1);
is_menus[j][2] = this.iuo_arraymenu.get(i+2);
is_menus[j][3] = this.iuo_arraymenu.get(i+3);
j= j + 1;
}
}
}
   
private PropertyValue[] createMenuOption(String sMyCommand, String
label)
throws IllegalArgumentException, IndexOutOfBoundsException,
WrappedTargetException {
PropertyValue[] loadProps = new PropertyValue[3];

loadProps[0] = new PropertyValue();
loadProps[1] = new PropertyValue();
loadProps[2] = new PropertyValue();

loadProps[0].Name = CommandURL;
loadProps[0].Value = sMyCommand;
   
loadProps[1].Name = Label;
loadProps[1].Value = label;
   

return loadProps;
}
   
private PropertyValue[] createMenuItem(String sMyCommand, String label)
{
PropertyValue[] loadProps = new PropertyValue[2];
loadProps[0] = new PropertyValue();
loadProps[1] = new PropertyValue();

loadProps[0].Name = CommandURL;
loadProps[0].Value = sMyCommand;
loadProps[1].Name = Label;
loadProps[1].Value = label;

return loadProps;
}
   
   
public void getTopMenu() throws IllegalArgumentException,
IndexOutOfBoundsException, WrappedTargetException{
   
for (int i=0;iis_menus.length;i++){
if (is_menus[i][2].equals(0)){
CreateTreeTopMenu( is_menus[i][0] , 0 , is_menus[i][1]);
}
}
   
}
   
 
 public void CreateTreeTopMenu( String as_fatherid , int
ai_indexContainer , String as_menudescr ) throws IllegalArgumentException,
IndexOutOfBoundsException, WrappedTargetException{
 
boolean lbl_found = false;
   
for (int i=0;iis_menus.length;i++){
if (is_menus[i][2].equals(as_fatherid)){
lbl_found = true;
break;
}
}
   
if (!lbl_found) {
PropertyValue[] property = createMenuItem(.uno:PickList,
as_menudescr);

   
oContainer[ai_indexContainer].insertByIndex(oContainer[ai_indexContainer].getCount(),property);
return;
}else{ 
int curindexContainer;
PropertyValue[] MenuOption = createMenuOption(.uno:PickList,
as_menudescr);
curindexContainer = ai_indexContainer + 1;
oContainer[curindexContainer] =
uiConfigManager.createSettings();
for (int i=0;iis_menus.length;i++){
if (is_menus[i][2].equals(as_fatherid)){
CreateTreeTopMenu(is_menus[i][0], curindexContainer ,
is_menus[i][1] );
}
}
   
MenuOption[2].Name=ItemDescriptorContainer;
MenuOption[2].Value = oContainer[curindexContainer];
   
oContainer[ai_indexContainer].insertByIndex(oContainer[ai_indexContainer].getCount(),MenuOption);
   
}
 
 }

   

}

//

Sorry for the long post.
As you can see i have attached in the xFrame.addEventListener but it is
never fired...
I have also tried to insert it to the xModel even the xController...
But no lack...
Maybe there is something i haven't undestood well

Thanks in advance
Ciao
-- 
View this message in context: 
http://www.nabble.com/Need-Help-with-Listeners-tp20660938p20660938.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Need Help with Listeners

2008-11-24 Thread [EMAIL PROTECTED]

Carsten , 
thank you very much for the hint...I really had misunderstood...
thank you for the links..I will study them and i will try to implement what
i need

THANK YOU!!:handshake:


Hi,

it looks like you misunderstood how menus in OpenOffice.org work. Menus 
are only containers for commands. There is no event listener concept for 
menus controlled by OpenOffice.org. These commands are dispatched and 
processed by a so called Dispatch Provider. For more information, 
please look into the following chapter of the Developer's Guide:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Using_the_Dispatch_Framework

So there are two different ways to be called when a certain command is 
going to be dispatched. First, you can implement your own 
DispatchProvider which is responsible for your commands. A second way is 
to implement a dispatch interceptor, which intercept certain commands. 
For more information, please look into the following chapter of the 
Developer's Guide:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Dispatch_Interception

Regards,
Carsten

-- 
Carsten Driesner (cd at openoffice.org) - Project Lead OpenOffice.org 
Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
View this message in context: 
http://www.nabble.com/Need-Help-with-Listeners-tp20660938p20675795.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Java - LoadComponentFromUrl

2008-11-21 Thread [EMAIL PROTECTED]

Hello 

Thank you very much both for the immediate answer...

I changed the 
XComponent xCurrentComponent = xDesktop.getCurrentComponent()
 XModel xModel =
(XModel)UnoRuntime.queryInterface(XModel.class,xCurrentComponent);


with the 
XModel xModel = (XModel)
UnoRuntime.queryInterface(XModel.class,document);

and now everything works fine...
Thank you very much  i am very fresh to OOo and i am having a few
problems with it
Thanks for helping Mathias and Andreas 

Ciao..for the time..


Mathias Bauer wrote:
 
 [EMAIL PROTECTED] wrote:
 
 Hello , 
 
 Thanks in advance for listening to me..
 I have created an application in which i try to open a new Writer
 Document
 with LoadComponentFromUrl.
 My next steps are to get the 
 
 
 XComponent document = loader.loadComponentFromURL (
 private:factory/swriter,  
 _blank,
 0, 
 loadProps); 
 XComponent xCurrentComponent = xDesktop.getCurrentComponent()
 XModel xModel = (XModel)
 UnoRuntime.queryInterface(XModel.class,xCurrentComponent);
 XController xController = xModel.getCurrentController();
 XFrame xFrame = xController.getFrame();
 
 
 my problem is that the LoadComponentFromUrl seems to delay and the rest
 lines return NullPointerException...
 
 Why do you retrieve the component from the Desktop instead of taking the
 return value of loadComponentFromURL()?
 
 XComponent document = loader.loadComponentFromURL (
  private:factory/swriter,
  _blank,
  0,
  loadProps);
 XModel xModel = (XModel)
 UnoRuntime.queryInterface(XModel.class,document);
 
 The currentComponent indeed is not reliable as it requires that the
 freshly loaded component got the focus.
 
 Ciao,
 Mathias
 
 -- 
 Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't reply to [EMAIL PROTECTED].
 I use it for the OOo lists and only rarely read other mails sent to it.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
=)
-- 
View this message in context: 
http://www.nabble.com/Java---LoadComponentFromUrl-tp20600458p20617781.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Java - LoadComponentFromUrl

2008-11-20 Thread [EMAIL PROTECTED]

Hello , 

Thanks in advance for listening to me..
I have created an application in which i try to open a new Writer Document
with LoadComponentFromUrl.
My next steps are to get the 


XComponent document = loader.loadComponentFromURL (
private:factory/swriter,  
_blank,
0, 
loadProps); 
XComponent xCurrentComponent = xDesktop.getCurrentComponent()
XModel xModel = (XModel)
UnoRuntime.queryInterface(XModel.class,xCurrentComponent);
XController xController = xModel.getCurrentController();
XFrame xFrame = xController.getFrame();


my problem is that the LoadComponentFromUrl seems to delay and the rest
lines return NullPointerException...
How can i overcome this problem so that the LoadComponentFromUrl finishes
and then go on to the rest of the code??

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Java---LoadComponentFromUrl-tp20600458p20600458.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Problem With scrolling

2008-07-01 Thread [EMAIL PROTECTED]

Hi,

Am porting OO to directfb and have accomplished most of the basic
functionality.Have tweaked the vcl to talk to directfb instead of X. 

Was having a problem with the scrolling functionality where in on scrolling
a little vigourously the document text is replicated (ie. beside the
original text) which is not expected. This behavior is seen in all the 3
types of documents namely .doc,.ods and .odp. Gentle scrolling or using the
scrollbar arrows gives no problem. 

Any pointers as to what might be causing the problem will be greatly
appreciated!! :)

Regards,

Karl
-- 
View this message in context: 
http://www.nabble.com/Problem-With-scrolling-tp18212747p18212747.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-19 Thread [EMAIL PROTECTED]



Thorsten Behrens-3 wrote:
 
 On Thu, Jun 19, 2008 at 01:49:14AM -0700, [EMAIL PROTECTED] wrote:
 I have checked the Clip regions and there is no problem there.The clip
 region for the dest drawable seems set correctly.
 
 Next,as you said I tried with slides containing two small bitmaps and
 the
 animated text and have noticed only a small but important observation. I
 noticed that in this case on fullscreen the first slide comes up(ie.Only
 the
 bitmap as expected) and on a click(ie any user event) the slide is shown
 completely along with the text.The last time when I had the whole screen
 covered in a bitmap and animated text, the first slide did not show up
 the
 slide on Fullscreen and required a click to show the bitmap and the text.
 
 Weird. Some limit in bitmap sizes? I strongly suggest you to publish
 your code, so that others can review/debug it, this here starts to become 
 wild guessing...
 
 Cheers,
 
 -- Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Hi Thorsten,

Well, I later discovered that the slide contained some animation(ie.fly in
black kind of custom animation) and on removing it the slide is shown. So
the sizes dint matter really. I think there is something going wrong in our
rendering of the cached bitmaps as till that step the data seems to be
showing in the buffer. The Slideshow working on F5 and post PgDwn is also
not very clear so debugging is becoming a problem.
If u can give us any hints it would be great! :)

Regards,

Karl 

Regards,
Karl
-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p18023432.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-18 Thread [EMAIL PROTECTED]

Hi Thorsten .
I have seen that when i start the slideshow from any slide it works for that
slide .
Navigating to the other slide during slideshow is failing . 

What is the flow in following cases :
a) When u press F5 on the current sllide Versus 
b) When u press Page Down on the current slide which is fullscreen 
Do the flows at a) and b) differ .  

Please point me to relevant code in the slideshow.  Does the spriteHelprer
update screen  creates data of the consecutive slides for both cases (a) and
(b) . If the flows differ , it would mean that my VCL code fails for the
other case. 

Note that when i navigate the presentation in non-slideshow mode , it works
. Do you see any obvious problem , which i am missing .   Any pointers from
you will help me debug the issue with my bitmap / virtual device code. 

Regards,
Karl.



Thorsten Behrens-3 wrote:
 
 On Tue, Jun 17, 2008 at 01:51:35AM -0700, [EMAIL PROTECTED] wrote:
 Am porting OO to directfb and am facing a problem with the slideshow
 engine
 wherein on PgDown the navigation of slides doesnt seem to be
 happening.After
 a lot of debugging ive realised an inconsistent output from the
 gdk_draw_drawable() api I am using in the GtkCopyBits function. For the
 first time when i hit fullscreen there is no problem and the slide is
 displayed.However on PgDown or a click the next slide is not painted. 
 
 The code snippet is below.
 gdk_draw_drawable(GetDrawable(),pCopyGC,pSrcGraphics-GetDrawable(),
 pPosAry-mnSrcX, pPosAry-mnSrcY,
 pPosAry-mnDestX,pPosAry-mnDestY,pPosAry-mnSrcWidth,
 pPosAry-mnSrcHeight);
 
 This API documentation says that gives errors like 'badmatch' when there
 is
 a mismatch in the source and dest drawables visuals and colormaps.

 I'd guess getting gtk with debug  stepping into it should reveal
 that - apart from that, you can verify whether it's really the
 copyBits that fails, by assigning a slide transition to the first
 slide - if that shows, the method works in principle.
 
 Cheers,
 
 -- Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17974455.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-18 Thread [EMAIL PROTECTED]



Thorsten Behrens-3 wrote:
 
 On Wed, Jun 18, 2008 at 01:56:17AM -0700, [EMAIL PROTECTED] wrote:
 I have seen that when i start the slideshow from any slide it works for
 that
 slide .
 Navigating to the other slide during slideshow is failing . 
 
 Hi Karl,
 
 could you please also try whether assigning a slide transition
 effect to the first slide shows up correctly?
 
 What is the flow in following cases :
 a) When u press F5 on the current sllide Versus 
 b) When u press Page Down on the current slide which is fullscreen 
 Do the flows at a) and b) differ .  
 
 Not fundamentally. The next slide gets prepared in the background in
 a second bitmap, so maybe a caching/resource issue on your side?
 
 Note that when i navigate the presentation in non-slideshow mode , it
 works
 . Do you see any obvious problem , which i am missing .   Any pointers
 from
 you will help me debug the issue with my bitmap / virtual device code. 
 
 The non-slideshow mode is using completely different code paths,
 this does not give much information - to give more specific help,
 I'd need the code - preferrably a full patch, such that I can debug
 that in a live office.
 
 Cheers,
 
 -- Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Hi Thorsten,

As u suggested I put a slide transition in the first slide  ,but with no
succes and it dint show up. :(

Also I was just wondering if its really a caching/resource issue on my side,
as i came across a situation wherein the slideshow works but wid slight
change in the way the user delivers the events.
The situation is summarized as follows.
1)I have 3 slides each being bitmaps covering the entire screen and each
containing some animation(ie. Some text coming up on a click)
2  (a)On F5,the first slide doesnt show up(ie.No bitmap comes up as in the
original slide). However on a click as proposed the 1st slide is displayed
correctly(ie.The bitmap as well as the animated text).
(b)To move to the next slide ie. on any key press , the first Slide is
erased and a black screen comes up.But giving one more click ( this is for
the animated text) , the slide comes up with both the bitmap and animated
text.
(c)this happens in case of all the remaing slides.

From the Observations above i conclude that the caching is not an issue as
well as the possibility of the next slide being clobbered is ruled out.

Do you draw anything from it??

Any help will be greatly appreciated! :)

Regards,
Karl


-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17982873.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Urgent:How to check if gdk API is failiing??

2008-06-17 Thread [EMAIL PROTECTED]

Hi,

Am porting OO to directfb and am facing a problem with the slideshow engine
wherein on PgDown the navigation of slides doesnt seem to be happening.After
a lot of debugging ive realised an inconsistent output from the
gdk_draw_drawable() api I am using in the GtkCopyBits function. For the
first time when i hit fullscreen there is no problem and the slide is
displayed.However on PgDown or a click the next slide is not painted. 

The code snippet is below.
gdk_draw_drawable(GetDrawable(),pCopyGC,pSrcGraphics-GetDrawable(),
pPosAry-mnSrcX, pPosAry-mnSrcY,
pPosAry-mnDestX,pPosAry-mnDestY,pPosAry-mnSrcWidth,
pPosAry-mnSrcHeight);

This API documentation says that gives errors like 'badmatch' when there is
a mismatch in the source and dest drawables visuals and colormaps. Is there
any way to debug this as in our case we dont have and X Server ,so no way to
see if the bad match error is actually being reported.
Any help will be greatly appreciated. :)

Regards,
Karl
-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17880763.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:How to check if gdk API is failiing??

2008-06-17 Thread [EMAIL PROTECTED]



[EMAIL PROTECTED] wrote:
 
 Hi,
 
 Am porting OO to directfb and am facing a problem with the slideshow
 engine wherein on PgDown the navigation of slides doesnt seem to be
 happening.After a lot of debugging ive realised an inconsistent output
 from the gdk_draw_drawable() api I am using in the GtkCopyBits function.
 For the first time when i hit fullscreen there is no problem and the slide
 is displayed.However on PgDown or a click the next slide is not painted. 
 
 The code snippet is below.
 gdk_draw_drawable(GetDrawable(),pCopyGC,pSrcGraphics-GetDrawable(),
 pPosAry-mnSrcX, pPosAry-mnSrcY,
 pPosAry-mnDestX,pPosAry-mnDestY,pPosAry-mnSrcWidth,
 pPosAry-mnSrcHeight);
 
 This API documentation says that gives errors like 'badmatch' when there
 is a mismatch in the source and dest drawables visuals and colormaps. Is
 there any way to debug this as in our case we dont have and X Server ,so
 no way to see if the bad match error is actually being reported.
 Any help will be greatly appreciated. :)
 
 Regards,
 Karl
 


Hey,

Your right!The API works for the first slide so it means theres no problem.
But i was just wondering if the second time some argument is getting
corrupted or something.Anyways will try and figure it out.

Thanks Thorsten!

Regards,

Karl
-- 
View this message in context: 
http://www.nabble.com/Urgent%3AHow-to-check-if-gdk-API-is-failiing---tp17880763p17959948.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Urgent:demo applications not building

2008-06-12 Thread [EMAIL PROTECTED]



Thorsten Behrens-3 wrote:
 
 On Wed, Jun 11, 2008 at 10:29:44AM -0700, [EMAIL PROTECTED] wrote:
 1)While building slideshow after adding the rule at the end of the
 prj/build.lst as follows
 pe  slideshow\test  nmake   -   all pe_test pe_api
 pe_inc NULL
 
 Hi Karl,
 
 strictly speaking, this is not necessary - just cd into the test
 dir, and issue a 'dmake'.
 
 A patial dump of the Error is as follows:
 
 Making: ../unxlngi6.pro/lib/libtests.so
 ccache g++ -Wl,-z,noexecstack -Wl,-z,combreloc -Wl,-z,defs
 -Wl,-rpath,'$ORIGIN' -Wl,--hash-style=both -g -shared -Wl,-O1
 -Wl,--version-script ../unxlngi6.pro/misc/export_tests.map
 -L../unxlngi6.pro/lib -L../lib
 -L/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/unxlngi6/lib
 -L/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/lib
 -L/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/unxlngi6/lib
 -LNO_JAVA_HOME/lib -LNO_JAVA_HOME/jre/lib/i386
 -LNO_JAVA_HOME/jre/lib/i386/client
 -LNO_JAVA_HOME/jre/lib/i386/native_threads [EMAIL PROTECTED]@
 ../unxlngi6.pro/slo/views.o ../unxlngi6.pro/slo/slidetest.o
 ../unxlngi6.pro/slo/testshape.o ../unxlngi6.pro/slo/testview.o
 ../unxlngi6.pro/slo/tests_version.o -o ../unxlngi6.pro/lib/libtests.so
 -luno_sal -lbasegfx680li -luno_cppuhelpergcc3 -luno_cppu -lcppunitli
 -lutl680li -lvcl680li -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc
 ../unxlngi6.pro/slo/views.o: In function `(anonymous
 namespace)::UnoViewContainerTest::testContainer()':
 /home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/views.cxx:62:
 undefined reference to
 `slideshow::internal::UnoViewContainer::UnoViewContainer()'
 /home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/views.cxx:65:
 undefined reference to
 `slideshow::internal::UnoViewContainer::addView(boost::shared_ptrslideshow::internal::UnoView
 const)'
 /home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/views.cxx:72:
 undefined reference to `slideshow::internal::UnoViewContainer::dispose()'
 ../unxlngi6.pro/slo/slidetest.o: In function `LayerManagerTest':
 /home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/slidetest.cxx:60:
 undefined reference to
 `slideshow::internal::UnoViewContainer::UnoViewContainer()'
 ../unxlngi6.pro/slo/slidetest.o: In function `(anonymous
 namespace)::LayerManagerTest::tearDown()':
 /home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/slidetest.cxx:85:
 undefined reference to `slideshow::internal::UnoViewContainer::dispose()'
 ../unxlngi6.pro/slo/slidetest.o: In function `(anonymous
 namespace)::LayerManagerTest::setUp()':
 /home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/slidetest.cxx:73:
 undefined reference to
 `slideshow::internal::UnoViewContainer::addView(boost::shared_ptrslideshow::internal::UnoView
 const)'
 
 No idea what's causing this - tried it on a OOH680_m16, and it just
 worked. Issuing a 'cvs diff -rOOG680_m9 -rOOH680_m16' in
 slideshow/test yields insignificant differences, that you still
 might want to merge, via 'cvs up -dP -kk -jOOG680_m9 -jOOH680_m16'
 
 2)Have added the following line to the prj/build.lst of canvas
 cv  canvas\workben  
 nmake  -   all cv_test cv_inc NULL
 
 See above.
 
 Get the following error while building the module
 Making: ../unxlngi6.pro/obj/canvasdemo.obj
 ccache g++ -fmessage-length=0 -c -g -O0   -I. 
 -I../unxlngi6.pro/inc/canvasdemo -I../inc -I../inc/pch -I../inc
 -I../unx/inc
 -I../unxlngi6.pro/inc -I.
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/stl
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/external
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/unxlngi6/inc
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/inc
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/res
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/stl
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/inc/Xp31
 -INO_JAVA_HOME/include -INO_JAVA_HOME/include/linux
 -INO_JAVA_HOME/include/native_threads/include -INONE
 -I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/offuh
 -I. -I../res -I. -pipe -mtune=pentiumpro -fvisibility-inlines-hidden
 -Wall
 -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy
 -Wno-non-virtual-dtor-DLINUX -DUNX -DVCL -DGCC -DC341 -DINTEL
 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
 -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE
 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3
 -DGXX_INCLUDE_PATH=/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1
 -DSUPD=680 -DDEBUG -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=2
 -DGUI -DOOG680=OOG680 -fexceptions -fno

[dev] Urgent:demo applications not building

2008-06-11 Thread [EMAIL PROTECTED]

Hi,

I was facing a problem with the Presentation engine so was advised to build
the test applications available in slideshow and canvass to study the
behaviour.But the applications dont seem to be building and give error as
below.

1)While building slideshow after adding the rule at the end of the
prj/build.lst as follows
pe  slideshow\test  nmake   -   all pe_test pe_api
pe_inc NULL

A patial dump of the Error is as follows:

Making: ../unxlngi6.pro/lib/libtests.so
ccache g++ -Wl,-z,noexecstack -Wl,-z,combreloc -Wl,-z,defs
-Wl,-rpath,'$ORIGIN' -Wl,--hash-style=both -g -shared -Wl,-O1
-Wl,--version-script ../unxlngi6.pro/misc/export_tests.map
-L../unxlngi6.pro/lib -L../lib
-L/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/unxlngi6/lib
-L/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/lib
-L/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/unxlngi6/lib
-LNO_JAVA_HOME/lib -LNO_JAVA_HOME/jre/lib/i386
-LNO_JAVA_HOME/jre/lib/i386/client
-LNO_JAVA_HOME/jre/lib/i386/native_threads [EMAIL PROTECTED]@
../unxlngi6.pro/slo/views.o ../unxlngi6.pro/slo/slidetest.o
../unxlngi6.pro/slo/testshape.o ../unxlngi6.pro/slo/testview.o
../unxlngi6.pro/slo/tests_version.o -o ../unxlngi6.pro/lib/libtests.so
-luno_sal -lbasegfx680li -luno_cppuhelpergcc3 -luno_cppu -lcppunitli
-lutl680li -lvcl680li -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc
../unxlngi6.pro/slo/views.o: In function `(anonymous
namespace)::UnoViewContainerTest::testContainer()':
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/views.cxx:62:
undefined reference to
`slideshow::internal::UnoViewContainer::UnoViewContainer()'
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/views.cxx:65:
undefined reference to
`slideshow::internal::UnoViewContainer::addView(boost::shared_ptrslideshow::internal::UnoView
const)'
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/views.cxx:72:
undefined reference to `slideshow::internal::UnoViewContainer::dispose()'
../unxlngi6.pro/slo/slidetest.o: In function `LayerManagerTest':
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/slidetest.cxx:60:
undefined reference to
`slideshow::internal::UnoViewContainer::UnoViewContainer()'
../unxlngi6.pro/slo/slidetest.o: In function `(anonymous
namespace)::LayerManagerTest::tearDown()':
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/slidetest.cxx:85:
undefined reference to `slideshow::internal::UnoViewContainer::dispose()'
../unxlngi6.pro/slo/slidetest.o: In function `(anonymous
namespace)::LayerManagerTest::setUp()':
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/slideshow/test/slidetest.cxx:73:
undefined reference to
`slideshow::internal::UnoViewContainer::addView(boost::shared_ptrslideshow::internal::UnoView
const)'

2)Have added the following line to the prj/build.lst of canvas
cv  canvas\workben  
nmake  -   all cv_test cv_inc NULL

Get the following error while building the module
Making: ../unxlngi6.pro/obj/canvasdemo.obj
ccache g++ -fmessage-length=0 -c -g -O0   -I. 
-I../unxlngi6.pro/inc/canvasdemo -I../inc -I../inc/pch -I../inc -I../unx/inc
-I../unxlngi6.pro/inc -I.
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/stl
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/external
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/unxlngi6/inc
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/inc
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/res
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/stl
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solenv/inc/Xp31
-INO_JAVA_HOME/include -INO_JAVA_HOME/include/linux
-INO_JAVA_HOME/include/native_threads/include -INONE
-I/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/solver/680/unxlngi6.pro/inc/offuh
-I. -I../res -I. -pipe -mtune=pentiumpro -fvisibility-inlines-hidden -Wall
-Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor-DLINUX -DUNX -DVCL -DGCC -DC341 -DINTEL
-DCVER=C341 -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
-D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE
-D__DMAKE -DUNIX -DCPPU_ENV=gcc3
-DGXX_INCLUDE_PATH=/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1
-DSUPD=680 -DDEBUG -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=2
-DGUI -DOOG680=OOG680 -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON 
-o ../unxlngi6.pro/obj/canvasdemo.o
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/canvas/workben/canvasdemo.cxx
/home/openoffice/OpenOffice-2.3.1-directFB/OOG680_m9/canvas/workben/canvasdemo.cxx:
In constructor
'DemoRenderer::DemoRenderer(com::sun::star::uno::Referencecom::sun::star

[dev] Getting warning [Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()]

2008-06-04 Thread [EMAIL PROTECTED]

Hi,
Am Working on porting OpenOffice onto DirectFB.Have completed the
implementation of most of the major functionality.
But facing some issues relating document font rendering.
Am getting the warning 
Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() for
a regular document text

Have used pango to render the font and implemented a PangoFontLayout class
deriving from SalLayout in unx under vcl.
Following is the code to implement the UTF-16 to UTF-8 conversion where i
have found out the problem is arising.
  m_pLayoutText = new ByteString( rArgs.mpStr, rArgs.mnLength);
  m_pLayoutText-Convert( RTL_TEXTENCODING_UNICODE, RTL_TEXTENCODING_UTF8 );
  pango_layout_set_text( m_pPangoLayout, m_pLayoutText-GetBuffer(),
rArgs.mnLength );

For a simple line text properly formatted there is no problem. But Have
noticed significant corruption in rendered text when
1)multiple tabs are present infont of a line in the sample doc.
2)Extra spaces are present in the original doc.
3)A space in the form of a grey area is present in the original doc.
...and many more instances not found yet.

A removal of the above spaces and tabs removes the warning and the document
is rendered cleanly without corruption.

Any ideas on the same will be greatle appreciated. :)

Regards,
Karl


-- 
View this message in context: 
http://www.nabble.com/Getting-warning--Pango-WARNING-**%3A-Invalid-UTF-8-string-passed-to-pango_layout_set_text%28%29--tp17643055p17643055.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Getting warning [Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()]

2008-06-04 Thread [EMAIL PROTECTED]



Stephan Bergmann wrote:
 
 Philipp Lohmann wrote:
 Stephan Bergmann wrote:
 [EMAIL PROTECTED] wrote:
 Hi,
 Am Working on porting OpenOffice onto DirectFB.Have completed the
 implementation of most of the major functionality.
 But facing some issues relating document font rendering.
 Am getting the warning Pango-WARNING **: Invalid UTF-8 string passed 
 to pango_layout_set_text() for
 a regular document text

 Have used pango to render the font and implemented a PangoFontLayout 
 class
 deriving from SalLayout in unx under vcl.
 Following is the code to implement the UTF-16 to UTF-8 conversion 
 where i
 have found out the problem is arising.
   m_pLayoutText = new ByteString( rArgs.mpStr, rArgs.mnLength);
   m_pLayoutText-Convert( RTL_TEXTENCODING_UNICODE, 
 RTL_TEXTENCODING_UTF8 );
   pango_layout_set_text( m_pPangoLayout, m_pLayoutText-GetBuffer(),
 rArgs.mnLength );

 What is rArgs in your code snippet?  A (class instance wrapping a) 
 char[] that contains UTF-16 (-LE or -BE?) data?  What strikes me as 
 odd is that you use rArgs.mnLength in the final call, instead of 
 m_pLayoutText-GetLength().
 
 That's ImplLayoutArgs, a helper class in vcl's SalLayout interface which 
 is for text output. The contained string is not necessarily output as a 
 whole but only part of it (e.g. a word out of a paragraph by writer). 
 The contained characters are xub_Unicode (which is effectively 
 sal_Unicode).
 
 So a better approach would be to use one of the conversion functions 
 from rtl::OUString to RTL_TEXTENCODING_UTF8 rtl::OString 
 (rtl::OUStringToOString, rtl::OUString::convertToString) and use the 
 resulting rtl::OString's data in the call to pango_layout_set_text.
 
 -Stephan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Thanks Stephan and Phil for your valuable inputs.Yes with the new API it
seems to be rendering the lines which previously were being rendered as
'?'.However the bullets in the text are still being rendered as ? and if the
text contains some spaces marked by grey areas still render as  '?' as i
had mentioned earlier. Any ideas on it?
Thanks again guys for ur suggestions!! :)

Regards,
Karl
-- 
View this message in context: 
http://www.nabble.com/Getting-warning--Pango-WARNING-**%3A-Invalid-UTF-8-string-passed-to-pango_layout_set_text%28%29--tp17643055p17649898.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] [OT] Contacting Bustamam Harun regarding PerlUNO

2007-08-20 Thread Mattia Barbon \[EMAIL PROTECTED]
[please cc me on replies, I haven't subscribed yet]

  Hi all,
sorry for the off-topic post, but I can't seem to find a working
email address for Bustamam Harun.  I wanted to contact him to
join the PerlUNO project, but he seems to have disappeared from the
net.  I tried both the @users.sourceforge.net and @yahoo.com addresses
I found googling.

  Does anybody have a recent contact address?

  Thanks in advance and sorry for the noise.

Best regards,
Mattia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] About developing

2007-03-14 Thread [EMAIL PROTECTED]

Hi

I would like to know if i can help on the development of OpenOffice, and 
would like to know:

1) Which languages had been used so far for the development of the OpenOffice 
Core,
and
2) Which tools are needed or used by the developer team to compile, debug, 
and test the OpenOffice modules?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Re: [users] Re: [discuss] RE: [ooo-announce] OpenOffice.org 2.1 Is Here

2006-12-13 Thread [EMAIL PROTECTED]

Mathias Bauer wrote:

Lovesh Vashist wrote:


Hi Louis - Thanks for this update.

I had recently very enthusiastically downloaded the then latest version of
open office suite of products - fully aware that I will have to spend time
to reorient myself away from MS Office suite of products. However, I was
disappointed to find out that some simple features, for example, pivot
tables were missing and this forced me back to MS Office.

When do we expect to have these functionalities built in?

Calling Pivot Tables a *simple* feature is the biggest
understatement I have read since years.  :-)

Besides that - a hint for all interested readers (as this is a multi
post): Niklas Nebel has answered the question on the discuss mailing
list. Please follow up there for any further discussions.



how to access Niklas Nebel answer on pivot table?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] How do I get a crash log?

2005-05-02 Thread [EMAIL PROTECTED]
Hi,
Daniel Kasak a écrit :
I have a large number of documents that make OOo crash instantly and
silently when I go to open them.
:-/
Can you please give us more precisions ?
At least : the version of OOo (1.1.x or 1.9.xx ), the operating system 
you're using, and where you download it can be usefull too.

The crash reporter never starts, and it seems that no-one else is able
to reproduce my issues from bug reports and documents that I attach to them.
One time we had such systematics crashes with Mac OSX build and 
uncorrect symlinks with xmlsec.

But I'm not sure at all, because it's probably not your case...and the 
origin of your problem can have a completely different cause if your OS 
is different.

Is there any way of getting a crash log if the reporter doesn't realise
a crash has occured?
If you're on Mac OSX, the crash reporter is the best way to obtain such 
logs. On Linux, you can use strace, for example, or gdb to have a back 
trace of the crash or a dump...

Don't know on windows or Solaris, sorry.

Regards,
eric bachard
--
eric bachard [EMAIL PROTECTED]
French OpenOffice.org Community contributor (build of french releases 
for Linux PPC and Mac OS X / X11)
See : http://fr.openoffice.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]