Re: [dev] How to create a uno singleton component ?

2009-10-12 Thread Stephan Bergmann

On 10/11/09 15:02, Oliver Brinzing wrote:

can one give me some hints how to create a real java singleton component like

final XLoggerPool xLoggerPool = LoggerPool.get(xComponentContext); ?

till now i found only
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Singleton

is there a code templete available  ?


Maybe 
http://api.openoffice.org/servlets/ReadMsg?listName=devmsgNo=19649 is 
of help.


-Stephan

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] Re: About the license of L10n products

2009-10-12 Thread Björn Michaelsen
Am Mon, 12 Oct 2009 12:31:10 +0900
schrieb JiHui Choi jihui.c...@gmail.com:

 I have some questions about the license. If you help me or introduce
 me someone who can help me, I'll really appreciate to you. :)
Please be advised we cant give you legal advise.

 1. and 2.
Please ask only questions related to OOo on this list. Crossposting to
KDE, Gnome, Mozilla and OOo is no good idea, as all lists are likely
high volume and answers might be project specific.

 3. Can I publish and share my glossary under GPL? If I can, which
 version should I use, v3.0 or v2.0? There are several licenses, for
 GNOME, KDE and GIMP are GPL, LGPL for OpenOffice, Firefox has MPL and
 BSD for Launchpad. I wonder whether I can mix all these licenses and
 publish under a specific license such as GPL.

 I'd like to share my works under GPL or similar it and works with
 many people. However, before that I think I should make to be clear
 about the license. Here is my demo. http://gloss.mr-dust.pe.kr/

Here is a starting point:
http://www.openoffice.org/FAQs/faq-licensing.html
   3.  Which license should I use?

  That depends on what you want to do. If you wish for your code
  submissions to be included in the product, you must sign the Sun
  Microsystems Inc. Contributor Agreement (SCA) (see below); the
  license in effect is the LGPL for code. If you wish for your work
  to be used outside of any product (say, as website FAQ), then you
  may use the PDL. The usage of the source license differs from
  that of the PDL. To apply a source license, you must fill out and
  sign a Sun Microsystems Inc. Contributor Agreement (SCA). You
  only need to do this once. To apply the PDL, on the other hand,
  you must attach a copy of the license to each modifiable document
  covered by that license. Please see the section below on the use
  of the PDL.


Best Regards,

Bjoern Michaelsen


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] How to create a uno singleton component ?

2009-10-12 Thread Giuseppe Castagno

Hi Oliver,

Oliver Brinzing wrote:

Hi,

can one give me some hints how to create a real java singleton component like

final XLoggerPool xLoggerPool = LoggerPool.get(xComponentContext); ?

till now i found only
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Singleton

is there a code templete available  ?


in this project:

https://forge.osor.eu/projects/ooo-xadessig-it/

I wrote a couple of UNO singletons;
- extension variables and
- a dedicated logger.

The svn repo is here:

https://svn.forge.osor.eu/svn/ooo-xadessig-it

the project that can be checked out as example is:

https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno

Check out is anonymous enabled.
The project is an Eclipse one.

Full svn path to interesting classes:

https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno/src/it/plio/ext/oxsit/comp/GlobalLogger.java

https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno/src/it/plio/ext/oxsit/comp/SingletonGlobalVariables.java

Licence is EUPL (GPL 2.0 like) I don't know if that will suit your
application.

Feel free to ask if you have questions.

BeppeC.
--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
beppec56 at openoffice.org


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] How to create a uno singleton component ?

2009-10-12 Thread Giuseppe Castagno

Hi Oliver,

Oliver Brinzing wrote:

Hi,

can one give me some hints how to create a real java singleton component like

final XLoggerPool xLoggerPool = LoggerPool.get(xComponentContext); ?

till now i found only
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Singleton

is there a code templete available  ?


in this project:

https://forge.osor.eu/projects/ooo-xadessig-it/

I wrote a couple of UNO singletons;
- extension variables and
- a dedicated logger.

The svn repo is here:

https://svn.forge.osor.eu/svn/ooo-xadessig-it

the project that can be checked out as example is:

https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno

Check out is anonymous enabled.
The project is an Eclipse one.

Full svn path to interesting classes:

https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno/src/it/plio/ext/oxsit/comp/GlobalLogger.java

https://svn.forge.osor.eu/svn/ooo-xadessig-it/trunk/oxsit-sing_var_uno/src/it/plio/ext/oxsit/comp/SingletonGlobalVariables.java

Licence is EUPL (GPL 2.0 like) I don't know if that will suit your
application.

Feel free to ask if you have questions.

BeppeC.
--
Kind Regards,

Giuseppe Castagno
beppe...@openoffice.org
giuseppe.castagno at acca-esse.eu
Acca Esse http://www.acca-esse.eu







-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] How to create a uno singleton component ?

2009-10-12 Thread Oliver Brinzing
Hi Giuseppe,

 in this project:

 https://forge.osor.eu/projects/ooo-xadessig-it/

thanks a lot, i will have a look next weekend ;-)

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature