User data storage

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

User data storage

jonasalfredsson@gmail.com
I'm looking into this bug:
https://issues.apache.org/ooo/show_bug.cgi?id=2771

Where can I find code that store user preferences. I want to store all hyperlinks the user has written into documents and use them to fill the receiver combobox in the 'Insert/Hyperlink' dialog? I understand the user data is stored in the file "~/.openoffice/4/user/registrymodifications.xcu". How do I access it from within the code?

Anyone got a pointer?

/Jonas
Reply | Threaded
Open this post in threaded view
|

Re: User data storage

Jürgen Schmidt-3
On 2/12/14 9:32 PM, [hidden email] wrote:
> I'm looking into this bug:
> https://issues.apache.org/ooo/show_bug.cgi?id=2771
> <https://issues.apache.org/ooo/show_bug.cgi?id=2771>  
>
> Where can I find code that store user preferences. I want to store all
> hyperlinks the user has written into documents and use them to fill the
> receiver combobox in the 'Insert/Hyperlink' dialog? I understand the user
> data is stored in the file "~/.openoffice/4/user/registrymodifications.xcu".
> How do I access it from within the code?

I recommend the DevGuide [1] and the related configuration chapter. And
SDK contains a sample in Java that shows how to access the configuration.

You probably have to define a new schema first to store your data. For
testing you can do that via an extension and you can use Java to play
around with the API.


[1]
https://wiki.openoffice.org/wiki/Documentation/DevGuide/Config/Configuration_Management

Juergen

>
> Anyone got a pointer?
>
> /Jonas
>
>
>
> --
> View this message in context: http://openoffice.2283327.n4.nabble.com/User-data-storage-tp4658954.html
> Sent from the Development mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: User data storage

jonasalfredsson@gmail.com
>I recommend the DevGuide [1] and the related configuration chapter. And
>SDK contains a sample in Java that shows how to access the configuration.

I'm new to this and has just recently completed my first build of the aoo. The code I'm looking at is C++ in the cui module and not Java. Is it not right that Java is used for users to develop extensions and addins not for correcting aoo bugs. My aim is to commit a bugfix to the aoo codebase. What I am looking for is pointers into the C++ codebase where user configuration is read and written. Is this not the correct forum for aoo developers, but aoo addin developers?

>You probably have to define a new schema first to store your data. For
>testing you can do that via an extension and you can use Java to play
>around with the API.


>[1]
>https://wiki.openoffice.org/wiki/Documentation/DevGuide/Config/Configuration_Management

>Juergen


/Jonas
Reply | Threaded
Open this post in threaded view
|

Re: User data storage

Oliver-Rainer Wittmann
Hi,

On 13.02.2014 21:09, [hidden email] wrote:

>> I recommend the DevGuide [1] and the related configuration chapter. And
>> SDK contains a sample in Java that shows how to access the configuration.
>
> I'm new to this and has just recently completed my first build of the aoo.
> The code I'm looking at is C++ in the cui module and not Java. Is it not
> right that Java is used for users to develop extensions and addins not for
> correcting aoo bugs. My aim is to commit a bugfix to the aoo codebase. What
> I am looking for is pointers into the C++ codebase where user configuration
> is read and written. Is this not the correct forum for aoo developers, but
> aoo addin developers?
>

This is the general mailing list for AOO - it is the right place for
your requests.

I think Jürgen pointed you to the DevGuide as the configuration is also
available via the UNO-API and thus can be used by extension developers.
To get familiar with the configuration management this is a good start,
I think.

>> You probably have to define a new schema first to store your data. For
>> testing you can do that via an extension and you can use Java to play
>> around with the API.
>

The same API is also available in the C++ code. Thus, the code used in
an extension could be converted into C++ code.

Best regards, Oliver.

>
>> [1]
>> https://wiki.openoffice.org/wiki/Documentation/DevGuide/Config/Configuration_Management
>
>> Juergen
>
>
> /Jonas
>
>
>
> --
> View this message in context: http://openoffice.2283327.n4.nabble.com/User-data-storage-tp4658954p4658974.html
> Sent from the Development mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: User data storage

Andre Fischer
On 14.02.2014 08:52, Oliver-Rainer Wittmann wrote:

> Hi,
>
> On 13.02.2014 21:09, [hidden email] wrote:
>>> I recommend the DevGuide [1] and the related configuration chapter. And
>>> SDK contains a sample in Java that shows how to access the
>>> configuration.
>>
>> I'm new to this and has just recently completed my first build of the
>> aoo.
>> The code I'm looking at is C++ in the cui module and not Java. Is it not
>> right that Java is used for users to develop extensions and addins
>> not for
>> correcting aoo bugs. My aim is to commit a bugfix to the aoo
>> codebase. What
>> I am looking for is pointers into the C++ codebase where user
>> configuration
>> is read and written.

Some time ago I have written a simple class for accessing the configuration:

header: sd/source/ui/inc/tools/ConfigurationAccess.hxx
implementation: sd/source/ui/tools/ConfigurationAccess.cxx
used here: sd/source/framework/module/ModuleController.cxx
and here: sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx

once you know the UNO intefaces to implement and services to use you can
find other examples via OpenGrok
(http://opengrok.adfinis-sygroup.org/source/)

-Andre

>> Is this not the correct forum for aoo developers, but
>> aoo addin developers?
>>
>
> This is the general mailing list for AOO - it is the right place for
> your requests.
>
> I think Jürgen pointed you to the DevGuide as the configuration is
> also available via the UNO-API and thus can be used by extension
> developers.
> To get familiar with the configuration management this is a good
> start, I think.
>
>>> You probably have to define a new schema first to store your data. For
>>> testing you can do that via an extension and you can use Java to play
>>> around with the API.
>>
>
> The same API is also available in the C++ code. Thus, the code used in
> an extension could be converted into C++ code.
>
> Best regards, Oliver.
>
>>
>>> [1]
>>> https://wiki.openoffice.org/wiki/Documentation/DevGuide/Config/Configuration_Management 
>>>
>>
>>> Juergen
>>
>>
>> /Jonas
>>
>>
>>
>> --
>> View this message in context:
>> http://openoffice.2283327.n4.nabble.com/User-data-storage-tp4658954p4658974.html
>> Sent from the Development mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]