Re: [dev] Update: Removing external header guards

2008-04-02 Thread Thorsten Behrens
On Tue, Apr 01, 2008 at 10:39:33PM +0200, Thorsten Behrens wrote:
 Done with the first two rounds of guard removals. Linux builds
 cleanly, I'm currently doing Win32  Aqua builds.

Win32  Aqua now clean as well.

Cheers,

-- Thorsten

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



Re: [dev] Update: Removing external header guards

2008-04-02 Thread Stephan Bergmann

Thorsten Behrens wrote:

On Tue, Apr 01, 2008 at 03:21:01PM +0200, Stephan Bergmann wrote:
Is your tooling defective?  Why is the external header around  
rtl/string.hxx not removed below?



Nope. The script first collects all headers, extracts the header
guards from it, and then removes those guards in all files where
they externally guard the corresponding include statements.

Following from that, 
 - typos are not removed

 - headers that are not visible to the script are not considered at
   all

Your case fits in the latter category (I've been a bit conservative
in the first strip run).


But why is rtl/string.hxx not visible to the script?

Do occurences of external guards around including rtl/string.hxx (and 
others?) need to be removed manually?


-Stephan

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



Re: [dev] Update: Removing external header guards

2008-04-02 Thread Thorsten Behrens
On Wed, Apr 02, 2008 at 09:16:21AM +0200, Stephan Bergmann wrote:
 But why is rtl/string.hxx not visible to the script?

 Do occurences of external guards around including rtl/string.hxx (and  
 others?) need to be removed manually?

No. Please check the file again. ;-)

Cheers,

-- Thorsten


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



[dev] Need redirection..

2008-04-02 Thread Sudarsun Santhiappan
Hello List,

I would like to contribute to OO as a c++ developer.  I would like to pick
on OO core C++ modules.  But I could not identify a project name from the
list. Can you suggest names of few projects and also redirect me to their
appropriate mailing-list and team leaders ?

thanks much
Sudar.


Re: [dev] Saving Documents

2008-04-02 Thread Mikhail Voitenko

Hi,

Which API are you using currently to let the document be saved? Please 
describe the arguments you provide to the API ( if any ) as well.


Best regards,
Mikhail.

yaungmin wrote:

Here is detail information about the project that I am working on.

I am using Java for this add-on program. This program is just for
openoffice.org writer, so I will only working with .odt format. I have five
buttons on the tool bar which are Login, New, Open, Save and Logout. After
the user login to the system, they are allowed to create new document, open
existing document, save current document and logout from the system.

What I have so far is when I click on New, it shows me a new blank document.
I can type some text on the document but I wasn’t able to save it when I
click on Save button. I will be saving the document to the database in
future but just for testing purpose, I am saving the document to my desktop.

The format that I would like to save is odt (openoffice.org writer) format.

Basically yes, I would like to replace the “Save/Save As” functionality of
OOo, but my program will save to a given database instead of displaying a
file dialog to specify the folder to save in. Yes, I would like to have my
own function call to save the current document when user click on the save
button.

My code will be added to openoffice.org as an extension.

I tried to create a separate test program which creates a blank document and
I saved it right after I created the document. The document was saved to my
desktop as I specified but the title of the document is still “Untitled 2 –
Openoffice.org Writer” instead of the name of the document that I given.

In additional to that, I tried to type some text in the document and tried
to save the document again, but additional text that I just typed in weren’t
saved. 


Thank you for your help in advance.

Min




Mathias Bauer wrote:

yaungmin wrote:


I am writing an Openoffice Add-on program which I need to write my own
save
function. Can someone please give me some advice on how to save an
Openoffice writer document which is active on the screen.

Thanks,
Min

With so little information it's close to impossible to give advice. So:

- do you want to have a file dialog to select a file name or folder to
save in?

- in which format or formats do you want to save the file?

- do you want to create a copy of the file or do you intend to replace
the Save/SaveAs functionality of OOo?

- if the answer to the last question is yes, do you want your own
function called when the user selects the corresponding command in the
menu or toolbar?

- which programming language do you want to use?

- do you want to add your code to your own private build of OOo or do
you want to create an extension?

I'm sure I can present some more nice questions before I can give you a
*useful* advice, but let's start with those ones. :-9

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]







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



[dev] GoOOoCon 2008 programme

2008-04-02 Thread Jan Holesovsky
Hi,

GoOOoCon 2008 (http://wiki.services.openoffice.org/wiki/GoOOCon_2008, a local 
OOo-developer-focused conference) is getting really near - the next Friday 
and Saturday.  If you are still undecided whether to attend, hopefully the 
programme could persuade you :-)

http://wiki.services.openoffice.org/wiki/GoOOCon_2008#Programme

It is full, but if you have a good enough theme, I'm sure it will fit somehow.

If you cannot go, but still are interested, we hope we'll be able to provide 
an on-line streaming of the talks - I'll post the details later when tested 
etc.  And for the feedback, we plan to setup a conference call where you can 
ask questions/interact.

This comes with a request: If you plan to actively participate, please send me 
where are you from (what country), and we will try to setup the conference 
call so that it is free in those countries.

Regards,
Jan

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



Re: [dev] How to import external data with username/password?

2008-04-02 Thread Mathias Bauer
SHUE Jon wrote:

 Hi, I'm new to Calc, and fascinated by its power, but while using Link to 
 External Data to get realtime stock quote, the website asks me to log in 
 first, would you mind telling me how to type username/password when importing 
 external data? Thanks.
 - psist -
 
 _
 用部落格分享照片、影音、趣味小工具和最愛清單,盡情秀出你自己 — Windows Live Spaces
 http://spaces.live.com/

I assume that external data shall mean http. In ftp you could use
the user:[EMAIL PROTECTED] syntax, not sure if this is possible for http.

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]



Re: [dev] How to import external data with username/password?

2008-04-02 Thread Jan Holesovsky
Hi Mathias,

On Wednesday 02 of April 2008, Mathias Bauer wrote:

  Hi, I'm new to Calc, and fascinated by its power, but while using Link
  to External Data to get realtime stock quote, the website asks me to log
  in first, would you mind telling me how to type username/password when
  importing external data? Thanks. - psist -

 I assume that external data shall mean http. In ftp you could use
 the user:[EMAIL PROTECTED] syntax, not sure if this is possible for http.

Unfortunately not until the CWS webdavandgvfslocking1 which changes 
tools/source/fsys/urlobj.cxx to support the user and password for http as 
well.

Regards,
Jan

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



[dev] Development at a Glance - Weekly Update CW14

2008-04-02 Thread Dieter Loeschky

Hi,

here is the weekly update for calendar week 14:
http://blogs.sun.com/GullFOSS/entry/development_at_a_glance_weekly45

Regards,
Dieter

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



Re: [dev] How to import external data with username/password?

2008-04-02 Thread Bernd Eilers

Jan Holesovsky wrote:

Hi Mathias,



Hi there!


On Wednesday 02 of April 2008, Mathias Bauer wrote:


Hi, I'm new to Calc, and fascinated by its power, but while using Link
to External Data to get realtime stock quote, the website asks me to log
in first, would you mind telling me how to type username/password when
importing external data? Thanks. - psist -

I assume that external data shall mean http. In ftp you could use
the user:[EMAIL PROTECTED] syntax, not sure if this is possible for http.


Unfortunately not until the CWS webdavandgvfslocking1 which changes 
tools/source/fsys/urlobj.cxx to support the user and password for http as 
well.




I suppose this CWS is only going to solve HTTP Basic and HTTP Digest 
Authentication as per rfc2617. But what about the much more common case 
of sites which are using form-based Authentication and than set a cookie 
to indicate that the user has been logged in successfully or use a 
special redirect URL after a successful login? Is there already a 
solution for being able to use such sites with calc in the works as well?


To even extend this idea I could imagine a system where a sequence of 
urls must be executed with checking of results between each step before 
finally the URL which get´s you the data into calc can be executed. The 
external Data Link dialog could than let the user specify such sequence 
or even better two such sequences one that is to be executed just once 
and one that is to be executed before every update of the data. 
Placeholders in the URL which can be replaced by values of calc cells 
would be a nice idea there too. Doing so would solve the login problem 
as well as enable a bunch of other solutions such as being able to 
calculate with the result of a complex website query.


And just one related question: when connecting to http sites does the 
UCP for http+webdav maintain state at all at the momment? That is are 
cookies set by the server stored and send at the next request? If the 
answer to this is yes there might be a possible other solution which 
could already work now how to solve the login to 
form-based-authentication sites and other problems.



Regards,
Jan



Regards,
Bernd Eilers

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



Re: [dev] New License and Contributor Agreement

2008-04-02 Thread Stefan Taxhet

Hi,

To round off the license and contributor agreement change[0] the 
exempted contributions guidelines and the new source header are now

available after review by the OpenOffice.org Project Leads.

As you know additional functionality for OpenOffice.org may be provided
as an OpenOffice.org Extension. Authors of Extensions are invited to
maintain their Extensions within the OpenOffice.org Project. This will
enable you to use the available facilities like mailing lists, issue
tracking, ... and the source repository for collaboration purposes. If
you prefer to do so without signing the SCA make yourself familiar with
the exempted contributions guidelines.
The home page of the external project[1] has been updated. It now
contains the guidelines for the exempted contribution of source code
extensions.
Along the way the handling of infrastructural libraries is
now stated more precisely.

To reflect the license change to LGPLv3 a new header for the source
files will be introduced. Header templates[2] are linked from our
guidelines for participation[3] and should be used for files created
from now on. On the DEV300 codeline all source files will be changed by
Sun Release Engineering to contain the new header before we release
OpenOffice.org 3.0 Beta.

Greetings
Stefan

[0] http://www.openoffice.org/licenses/newlicense2008.html
[1] http://external.openoffice.org
[2] http://www.openoffice.org/dev_docs/source/templates/code
[3] http://www.openoffice.org/dev_docs/guidelines.html


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



[dev] implementation codes for .idl files in OOo source codes

2008-04-02 Thread Zongyun Lai

Hi all,
I am trying to write a broadcaster and listener example using uno API 
(JAVA preferred, C++ is OK too). I have found that the example at 
/examples/DevelopersGuide/OfficeDev/Linguistic quite useful. So, I want 
 to find out how linguistic implements these feature. I found that 
the idl files for these interfaces/services are located at 
/OpenOffice_SDK/installed/install/en-US/idl/com/sun/star/linguistic2. 
But where can I find implementation details for them? The only thing I 
can find that seems to be their implementation is at 
/OOH680_m8/linguistic/source/. Is that correct?


I am a little bit confused, since it is quite differnt from what is 
described in developer guide chapter 4 for developing new components. If 
you have time, could you point me out some examples that implements 
event dispatching action? Just similar to XLinguServiceEventBroadcaster 
and XLinguServiceEventListener interfaces?


Thanks a lot.


Zach


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



Re: [dev] Saving Documents

2008-04-02 Thread yaungmin

Hi,

I don't quite understand your question. I am using Netbeans IDE to write my
programs. I don't pass any arguments to my saveDocument method. See below
for the method that I have so far. I am sure that the method just load a
document from a given location and save it to a different location, which is
not what I wanted to do. I would like to get the current active document and
save it to a given location.

Thanks,
Min

private void saveDocument(){
String loadpath = C:/Users/min/Desktop/test.odt;
String storepath = C:/Users/min/Desktop/savetest.odt;
com.sun.star.uno.XComponentContext xContext = gui.m_xContext;
try {
com.sun.star.lang.XMultiComponentFactory xMCF =
xContext.getServiceManager();

Object oDesktop = xMCF.createInstanceWithContext(
com.sun.star.frame.Desktop, xContext);

com.sun.star.frame.XComponentLoader xCompLoader =
(com.sun.star.frame.XComponentLoader)
 UnoRuntime.queryInterface(
 com.sun.star.frame.XComponentLoader.class,
oDesktop);

java.io.File sourceFile = new java.io.File(loadpath);
StringBuffer sLoadUrl = new StringBuffer(file:///);
sLoadUrl.append(sourceFile.getCanonicalPath().replace('\\',
'/'));

sourceFile = new java.io.File(storepath);
StringBuffer sSaveUrl = new StringBuffer(file:///);
sSaveUrl.append(sourceFile.getCanonicalPath().replace('\\',
'/'));

com.sun.star.beans.PropertyValue[] propertyValue =
new com.sun.star.beans.PropertyValue[1];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = Hidden;
propertyValue[0].Value = new Boolean(true);

Object oDocToStore = xCompLoader.loadComponentFromURL(
sLoadUrl.toString(), _default, 0, propertyValue );

com.sun.star.frame.XStorable xStorable =
(com.sun.star.frame.XStorable)UnoRuntime.queryInterface(
com.sun.star.frame.XStorable.class, oDocToStore );

propertyValue = new com.sun.star.beans.PropertyValue[ 2 ];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = Overwrite;
propertyValue[0].Value = new Boolean(true);
propertyValue[1] = new com.sun.star.beans.PropertyValue();
propertyValue[1].Name = FilterName;
propertyValue[1].Value = StarOffice XML (Writer);
xStorable.storeAsURL( sSaveUrl.toString(), propertyValue );

System.out.println(\nDocument \ + sLoadUrl + \ saved under
\ +
   sSaveUrl + \\n);
}
catch( Exception e ) {
e.printStackTrace(System.err);
System.exit(1);
}
}


Mikhail Voitenko wrote:
 
 Hi,
 
 Which API are you using currently to let the document be saved? Please 
 describe the arguments you provide to the API ( if any ) as well.
 
 Best regards,
 Mikhail.
 
 yaungmin wrote:
 Here is detail information about the project that I am working on.
 
 I am using Java for this add-on program. This program is just for
 openoffice.org writer, so I will only working with .odt format. I have
 five
 buttons on the tool bar which are Login, New, Open, Save and Logout.
 After
 the user login to the system, they are allowed to create new document,
 open
 existing document, save current document and logout from the system.
 
 What I have so far is when I click on New, it shows me a new blank
 document.
 I can type some text on the document but I wasn’t able to save it when I
 click on Save button. I will be saving the document to the database in
 future but just for testing purpose, I am saving the document to my
 desktop.
 
 The format that I would like to save is odt (openoffice.org writer)
 format.
 
 Basically yes, I would like to replace the “Save/Save As” functionality
 of
 OOo, but my program will save to a given database instead of displaying a
 file dialog to specify the folder to save in. Yes, I would like to have
 my
 own function call to save the current document when user click on the
 save
 button.
 
 My code will be added to openoffice.org as an extension.
 
 I tried to create a separate test program which creates a blank document
 and
 I saved it right after I created the document. The document was saved to
 my
 desktop as I specified but the title of the document is still “Untitled 2
 –
 Openoffice.org Writer” instead of the name of the document that I given.
 
 In additional to that, I tried to type some text in the document and
 tried
 to save the document again, but additional text that I just typed in
 weren’t
 saved. 
 
 Thank you for your help in advance.
 
 Min
 
 
 
 
 Mathias Bauer wrote:
 yaungmin wrote:

 I am writing an 

Re: [dev] NetBeans Tips and Tricks

2008-04-02 Thread Juergen Schmidt

Ariel Constenla-Haile wrote:

Hi Steffen,

Steffen Grund escribió:

Hello all,

I just created a wiki page for NetBeans users to publish some tips and 
tricks around programming in Java for OpenOffice.org. Here it is:


http://wiki.services.openoffice.org/wiki/NetBeans_Tips_and_Tricks

Not much content right now, but there is a useful tip around avoiding 
to type UnoRuntime.queryInterface() repeatedly.


Any feedback is welcome.


I think you will get more feedback posting this to [EMAIL PROTECTED] and 
[EMAIL PROTECTED] : there are more people using Java + NB OOo plug-in 
there, and most people developing extensions is not subscribed to this 
list.


By the way, I was able to configure NetBeans C++ Project to compile and 
debug C++ client applications on Linux; I think I may write something in 
the Wiki so that Java-NB users can give it a try at the UNO C++ bridge.


you should try it with the latest developer build for OO.org 3.0. I 
expect that it won't work but it make sense that you adapt your project 
to the new requirements coming soon. We have to adapt the SDK and the NB 
plugin as well.


Juergen



Regards
Ariel.





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



Re: [dev] Need redirection..

2008-04-02 Thread Jan Holesovsky
Hi Sudar,

Dne Wednesday 02 of April 2008 11:53:30 Sudarsun Santhiappan napsal(a):

 I would like to contribute to OO as a c++ developer.  I would like to pick
 on OO core C++ modules.  But I could not identify a project name from the
 list. Can you suggest names of few projects and also redirect me to their
 appropriate mailing-list and team leaders ?

Do you mean something like http://projects.openoffice.org/ ?  Or something 
more specific?

Regards,
Jan

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



Re: [dev] Hi

2008-04-02 Thread Jan Holesovsky
Hi Guy,

Dne Monday 31 of March 2008 21:15:17 Guy Standen napsal(a):

 I am a professional computer (games) programmer and am interested in
 contributing to the development of Open Office. My resume is available on
 request.

Welcome to the world of OOo!  You might find some interesting info here:

http://wiki.services.openoffice.org/wiki/I_want_to_be_an_OpenOffice.org_developer

Regards,
Jan

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



Re: [dev] Installing OOo 2.4.0 and DEV300m5 in parallel on Ubuntu

2008-04-02 Thread Ariel Constenla-Haile

Michele escribió:

Hello,

I would like to install OOo2.4 with the DEV300m5 in parallel on my ubuntu
box, but I don't know how. They are both called openoffice, so when i try to
install dpkg *substitutes* one version with the other.

I have found this command for RPMs in an old setup guide:

rpm -ivh --install --dbpath /home/user1/office/.rpm --nodeps --prefix
/home/user1/office/ openoffice*.rpm

where /home/user1/office/.rpm is the directory where the second installation
should be.

Is there an equivalent command for dpkg? is there an alternative method
altogether?

TIA,

Michele


Hi Michele,

http://wiki.services.openoffice.org/wiki/Run_OOo_versions_parallel

explains how to install 2.* in parallel.
Tonight I finish building DEV300_m5 (which installs in three layers) and 
I'll see how to update that Wiki page



Regards
Ariel


--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter.
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

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



Re: [dev] NetBeans Tips and Tricks

2008-04-02 Thread Ariel Constenla-Haile

Hi Jürgen,

seems you're back from holidays, hope you had fun!

Juergen Schmidt escribió:
By the way, I was able to configure NetBeans C++ Project to compile 
and debug C++ client applications on Linux; I think I may write 
something in the Wiki so that Java-NB users can give it a try at the 
UNO C++ bridge.


you should try it with the latest developer build for OO.org 3.0. I 
expect that it won't work but it make sense that you adapt your project 
to the new requirements coming soon. We have to adapt the SDK and the NB 
plugin as well.


I guess you're talking about the 3 layers installation
(http://blogs.sun.com/GullFOSS/entry/ooo_3_est_omnis_divisa).
I have DEV300_m3, but this one is normal, so I'm building now
DEV300_m5 , sure this is the omnis divisa in partes tres. This new
3-layers installation may surely become useless the current SDK makefiles.

Concerning the NB C++ Project, I send it to your mail.

Regards
Ariel.




--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter.
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

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