Re: WikiPublisher extension (was Re: servlet-api.jar)

2017-10-05 Thread Don Lewis
On  4 Oct, To: dev@openoffice.apache.org wrote:
> On  4 Oct, Don Lewis wrote:
>> On  4 Oct, Matthias Seidel wrote:
>>> Am 04.10.2017 um 18:27 schrieb Keith N. McKenna:
 On 10/4/2017 11:49 AM, Matthias Seidel wrote:
> Am 04.10.2017 um 17:42 schrieb Keith N. McKenna:
>> On 9/30/2017 8:42 AM, Don Lewis wrote:
>>> On 29 Sep, Matthias Seidel wrote:
 That might explain why I have never seen a working WikiPublisher in the
 last releases.
 (Since at least 4.1.2 we build with that option on Windows)

 The question is: Do we need to build with that option if no one missed
 the plugin?
>>> I've never tried to use it, so I don't know if it works or not.
>>>
>> Currently in version 4.1.3 the send to MediaWiki option does not work.
>> My SWAG is that the Sun Wiki Publisher Extension was never updated to
>> work with the API changes introduced with the 4.0.0 Release.
> Confirmed (also for 4.1.4 RC4)
>
> However it can still be installed as an extension:
> https://extensions.openoffice.org/en/project/sun-wiki-publisher
>
> Last time I tried it the "send to" option was there, but I never tested
> further...
>
> Matthias
>
 Mathias;

 It is the extension that I tested and it does not work. There were API
 changes introduced in AOO Version 4.0.0 that were most likely never
 updated in the extension. It is the extension that adds to MediaWiki
 into File/Send.

 Regards
 Keith
>>> 
>>> OK, I misunderstood.
>>> 
>>> My hope was that at least this old extension would work, since building
>>> with --enable-wiki-publisher (tried also the additional
>>> --with-servlet-api-jar) does not have any effect on a build.
>>> We build releases with that option, so normally there should be no need
>>> to install this (old) extension.
>> 
>> The --enable-wiki-publisher should cause the .oxt file for the extension
>> to be built.  On FreeBSD that ends up getting packaged along with
>> everything else and gets installed along with the rest.  By default, if
>> you want to use it, you have to go into Extension Manager and dig around
>> in the installed tree to find the .oxt file and add it.
>> 
>> I haven't tried building this extension on either Linux or Windows, so I
>> don't know if/how it gets packaged.
> 
> I rebuilt trunk on Windows with --enable-wiki-publisher.  The first
> problem is that the extension does not appear to get packaged.  If you
> have the Windows build tree handy, then you can find the extension here:
>   mail/solver/420/wntmsci12.pro/bin/swext/wiki-publisher.oxt
> I went into the extension manager and told it to add this extension. The
> extension manager appears to successfully add the extension, and when I
> look at the File->Send submenu, I see an entry for "To MediaWiki..."
> menu entry, but it is grayed out and can't be selected.  I don't know
> how to debug this.
> 
> Can someone with a Linux or Mac build tree try this experiment?  A 4.1.4
> build tree should be fine as long as you configured with
> --enable-wiki-publisher.

I think I understand what is going wrong with WikiPublisher on Windows.

The FreeBSD port sets the --with-system-apache-commons=yes, and lists
the all the commons-*.jar files as dependencies, so when AOO is
installed on a machine, the commons-*.jar files will also get installed
because they are dependencies.

On Windows, and probably Linux and Mac, we don't set
--with-system-apache-commons=yes.  Instead we rely on bootstrap to
download the source for these .jar files and we build the actual .jar
files during the build.  Only commons-lang.jar is needed for the base
package and it gets packaged along with the rest of the AOO files.  The
WikiPublisher extension also requires commons-codec.jar,
commons-httpclient.jar, and commons-logging.jar, but these don't get
packaged along with the AOO files, and they also don't get packaged into
the .oxt file for the extension.  The only .jar files bundled with the
extension are help.jar and mediawiki.jar.



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



Re: Upload to SF - AOO 4.1.4

2017-10-05 Thread Andrea Pescetti

On 05/10/2017 Andrea Pescetti wrote:

I'll proceed and upload the entire build tree from dist.


All files are now uploaded to SourceForge. They will be available to the 
general public only when we "unstage" them (or when the 21-days staging 
limit expires, but I totally expect us to release earlier than that).



Instructions are still mostly correct (even though we will need a couple
of clarifications, that I will add to the page).


I've updated 
https://cwiki.apache.org/confluence/display/OOOUSERS/How+to+Cook+a+Release 
with a few useful tips.


Regards,
  Andrea.

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



Re: Upload to SF - AOO 4.1.4

2017-10-05 Thread Marcus

Am 05.10.2017 um 21:53 schrieb Jim Jagielski:



On Oct 5, 2017, at 11:39 AM, Dave Brondsema  wrote:

On 10/5/17 10:08 AM, Jim Jagielski wrote:

The password for my SF account no longer works and I'm unable to
reset my password (I don't rec the reset Emails from the automated
Reset Password function), so I'll need someone to upload the files
to sourceforge for the 4.1.4 release for me. I've gone ahead
and copied them to the ASF release dist location.

Thx!!




Jim - let me know if you'd like me to help with access your SF account.  However
the "jimjag" account isn't an admin of the OpenOffice project anyway.  The
current admins are listed at 
https://sourceforge.net/mirror/openofficeorg/_members/



If you could help get my SF account reset as well as get me added as
an Admin to the AOO project, that would be Super appreciated!


I've added your account to the "Admin" group. After Dave has reset your 
password (I cannnot do that as I don't have the power) you can see and 
act yourself on Sourceforge.


Marcus


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



Re: Upload to SF - AOO 4.1.4

2017-10-05 Thread Marcus

Am 05.10.2017 um 21:03 schrieb Andrea Pescetti:

Dave Brondsema wrote:

On 10/5/17 10:08 AM, Jim Jagielski wrote:

I'll need someone to upload the files
to sourceforge for the 4.1.4 release for me. I've gone ahead
and copied them to the ASF release dist location.

Instructions at
https://cwiki.apache.org/confluence/display/OOOUSERS/How+to+Cook+a+Release#HowtoCookaRelease-Uploads 



I confirm I've just tested the process and everything works - people 
with the correct access rights will see a staged folder named "4.1.4" 
containing just a test for the moment.


yes, I can see the "staged" flag.

Marcus




I'll proceed and upload the entire build tree from dist.

Instructions are still mostly correct (even though we will need a couple 
of clarifications, that I will add to the page).



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



Re: Upload to SF - AOO 4.1.4

2017-10-05 Thread Jim Jagielski

> On Oct 5, 2017, at 11:39 AM, Dave Brondsema  wrote:
> 
> On 10/5/17 10:08 AM, Jim Jagielski wrote:
>> The password for my SF account no longer works and I'm unable to
>> reset my password (I don't rec the reset Emails from the automated
>> Reset Password function), so I'll need someone to upload the files
>> to sourceforge for the 4.1.4 release for me. I've gone ahead
>> and copied them to the ASF release dist location.
>> 
>> Thx!!
>> 
> 
> 
> Jim - let me know if you'd like me to help with access your SF account.  
> However
> the "jimjag" account isn't an admin of the OpenOffice project anyway.  The
> current admins are listed at 
> https://sourceforge.net/mirror/openofficeorg/_members/
> 

If you could help get my SF account reset as well as get me added as
an Admin to the AOO project, that would be Super appreciated!


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



Re: Upload to SF - AOO 4.1.4

2017-10-05 Thread Andrea Pescetti

Dave Brondsema wrote:

On 10/5/17 10:08 AM, Jim Jagielski wrote:

I'll need someone to upload the files
to sourceforge for the 4.1.4 release for me. I've gone ahead
and copied them to the ASF release dist location.

Instructions at
https://cwiki.apache.org/confluence/display/OOOUSERS/How+to+Cook+a+Release#HowtoCookaRelease-Uploads


I confirm I've just tested the process and everything works - people 
with the correct access rights will see a staged folder named "4.1.4" 
containing just a test for the moment.


I'll proceed and upload the entire build tree from dist.

Instructions are still mostly correct (even though we will need a couple 
of clarifications, that I will add to the page).


Regards,
  Andrea.

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



Re: Upload to SF - AOO 4.1.4

2017-10-05 Thread Dave Brondsema
On 10/5/17 10:08 AM, Jim Jagielski wrote:
> The password for my SF account no longer works and I'm unable to
> reset my password (I don't rec the reset Emails from the automated
> Reset Password function), so I'll need someone to upload the files
> to sourceforge for the 4.1.4 release for me. I've gone ahead
> and copied them to the ASF release dist location.
> 
> Thx!!
> 


Jim - let me know if you'd like me to help with access your SF account.  However
the "jimjag" account isn't an admin of the OpenOffice project anyway.  The
current admins are listed at 
https://sourceforge.net/mirror/openofficeorg/_members/

Instructions at
https://cwiki.apache.org/confluence/display/OOOUSERS/How+to+Cook+a+Release#HowtoCookaRelease-Uploads
look right to me still, happy to help if anyone has any questions as they go
through the process.



-- 
Dave Brondsema : d...@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
  <><

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



Re: apache odftoolkit question

2017-10-05 Thread sos
Is suppose you must change the PageStyle and that must been done after 
inserting a pagebreak

hopes it helps
grt;
Fernand
On 05/10/2017 14:05, Vitaliy Yatsunskyi wrote:

Please help me to answer my question
https://stackoverflow.com/questions/46580464/apache-odftoolkit-portrait-landscape-mode

I'm using library apache odftoolkit
 to generate report from Java code
to *.odt file. Have code like this:

outputOdt = TextDocument.newTextDocument();
Paragraph p = outputOdt.addParagraph("some text");
p.appendTextContent("some text");

I'm adding paragraphs, tables, setting fonts, and it works fine. But I need
to set some pages in my document in Landscape mode but don't know how to do
this. I found API class PageLayoutProperties and method
setPrintOrientation(), but don't know where to call it. Anybody know?
Thank you!




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



Re: Import & export Basic libraries ?

2017-10-05 Thread Andrew Pitonyak


Sadly, I do not have time to look into this right now, but, I believe 
that I may have some useful examples in one of my documents. I do not 
remember which one. The documents to check (and I do not have local 
copies where I am now) are either:


I would check in this order:

http://www.pitonyak.org/database/
(1) Random DB Ramblins: http://www.pitonyak.org/database/AndrewBase.odt


http://www.pitonyak.org/oo.php
(2) OpenOffice.org macros Explained: 
http://www.pitonyak.org/OOME_3_0.odt

(3) English macro Document: http://www.pitonyak.org/AndrewMacro.odt


In (1), I think that I directly manipulate macros, creating and then 
running them. In (2) I think that I have a section on manipulating 
libraries. (3), well, I just don't remember at the moment what I have in 
there related to macro libraries.




On 2017-10-05 5:00, CHRISTOPHE JOYAU wrote:

Hello,

I'm looking for a way to import Basic Libraries with Open Office 4.X
about Libraries of a component (not about Globalscope Libraries).

I know to export with :

Librairies=BasicLibrairies
For Each Librairie In Librairies()
BasicLibraries.exportLibrary(Librairie.Name,ConvertToUrl(Chem &
"Basic"),com.sun.star.ucb.AuthenticationRequest)
Next

So i get in directory Chem & "Basic" => xba and xlb


I 'd like to do inverse operation and it 's not working if i use
BasicLibraries.CreateLibraryLink(R,ConvertToUrl(Chem & "Basic\" & 
R),False)


With this command i can obtain a new library R in my component but
with an error and it's empty and with a password " " ( it's mad !) .

Could you please endicate the good command to import libraries ?

Thank you for your attention and i hope your answer !
Avec mes salutations,
Christophe Joyau
Pupitreur assistant-Utilisateurs
C entre I nterrégional de S aisie des D onnées
22 bis avenue du 8 mai 1945
95200 Sarcelles
Tel : 09.70.27.18.57
' Ensemble des librairies contenues dans Clas ( il aurait été plus
simple d'utiliser seulement )


Upload to SF - AOO 4.1.4

2017-10-05 Thread Jim Jagielski
The password for my SF account no longer works and I'm unable to
reset my password (I don't rec the reset Emails from the automated
Reset Password function), so I'll need someone to upload the files
to sourceforge for the 4.1.4 release for me. I've gone ahead
and copied them to the ASF release dist location.

Thx!!

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



apache odftoolkit question

2017-10-05 Thread Vitaliy Yatsunskyi
   Please help me to answer my question
https://stackoverflow.com/questions/46580464/apache-odftoolkit-portrait-landscape-mode

I'm using library apache odftoolkit
 to generate report from Java code
to *.odt file. Have code like this:

outputOdt = TextDocument.newTextDocument();
Paragraph p = outputOdt.addParagraph("some text");
p.appendTextContent("some text");

I'm adding paragraphs, tables, setting fonts, and it works fine. But I need
to set some pages in my document in Landscape mode but don't know how to do
this. I found API class PageLayoutProperties and method
setPrintOrientation(), but don't know where to call it. Anybody know?
Thank you!


Re: Import & export Basic libraries ?

2017-10-05 Thread sos

Chrstophe,

maybe this 2 BASIC subs clould help

sub AddBasicLibrary(srcname,destname)
Dim oSrcDoc as object
Dim SrcLibraryName As String, DestLibraryName As String
Dim oSrcLib As Object, oDestLib As Object, iCounter As Integer
Dim oSrc2Lib As Object , oDest2Lib As Object
Dim iLib As Integer
Dim ModuleName AS String, oModule AS Object
Dim sSrcModules
' set these 2 variables to your lib name
SrcLibraryName = srcname' library that contains the modules
DestLibraryName = destname
' This library will be created and is the
' destination for the modules from the source document.
Dim mFileProperties(0) As New com.sun.star.beans.PropertyValue


   mFileProperties(0).Name="Hidden"
   mFileProperties(0).Value= true
  ' on local error goto geenfile
   oSrcDoc = 
StarDesktop.LoadComponentFromURL(ConvertToURL("t:\template\artikels\macros\Macros_Opmaak_artikels_LaatsteVersie.odt"), 
"_blank", 0, mFileProperties())


oSrcLibs = oSrcDoc.BasicLibraries
oDestLibs = BasicLibraries 'out of this document
oSrcLibs.LoadLibrary(SrcLibraryName)'[DL] Added LoadLibrary
For iLib = 1 To 2 ' this makes two passes, one for the dialogues and one 
for the macros

If oDestLibs.hasByName( DestLibraryName ) = TRue Then
   DeleteBasicLibrary( DestLibraryName) ' = SUB om leeg te maken
   oDestLibs.createLibrary(DestLibraryName )
else
   oDestLibs.createLibrary(DestLibraryName )
End If
If oSrcLibs.hasByName( SrcLibraryName ) Then
oSrcLib = oSrcLibs.getByName( SrcLibraryName )
oDestLib = oDestLibs.getByName(DestLibraryName)
sSrcModules = oSrcLib.getElementNames()
iCounter = lBound( sSrcModules() )
while( iCounter <= uBound( sSrcModules() ) )
If oDestLib.hasByName( sSrcModules(iCounter) ) = False Then
'On Error Goto ErrorHandler
oDestLib.insertByName(  sSrcModules(iCounter), 
oSrcLib.getByName( sSrcModules(iCounter) )

End If
iCounter = iCounter + 1
wend
End If
oSrcLibs = oSrcDoc.DialogLibraries  'DialogLibraries ' The same for 
the Dialog libraries

oDestLibs = DialogLibraries
oSrcLibs.LoadLibrary( SrcLibraryName )'[DL] Added LoadLibrary
Next iLib
'end if
oSrcDoc.dispose

Exit sub

Geenfile:
'Style = 48 'OKonly + Exclamation
MsgBox "ERROR bij het laden van 
t:\template\artikels\macros\Macros_Opmaak_artikels_LaatsteVersie.odt" & 
chr(13) & "Bestaat niet !!!"

'AddBasicLibrary = False
End Sub

Sub DeleteBasicLibrary( srcname)
Dim DelLibraryName As String
Dim oDelLib As Object, iCounter As Integer
Dim oLib As Object, oGlobalLib As Object
Dim iLib As Integer
Dim sSrcModules
DelLibraryName = srcname
oLib =  BasicLibraries ' For Basic libaries in this document
For iLib = 1 To 2 ' this makes two passes, one for the dialogues and one 
for the macros

If oLib.hasByName( DelLibraryName ) Then
oLib.removeLibrary( DelLibraryName )
End If
oLib = DialogLibraries
Next iLib

End Sub


On 05/10/2017 11:00, CHRISTOPHE JOYAU wrote:

Hello,

I'm looking for a way to import Basic Libraries with Open Office 4.X about 
Libraries of a component (not about Globalscope Libraries).

I know to export with :

Librairies=BasicLibrairies
For Each Librairie In Librairies()
BasicLibraries.exportLibrary(Librairie.Name,ConvertToUrl(Chem & 
"Basic"),com.sun.star.ucb.AuthenticationRequest)
Next

So i get in directory Chem & "Basic" => xba and xlb


I 'd like to do inverse operation and it 's not working if i use
BasicLibraries.CreateLibraryLink(R,ConvertToUrl(Chem & "Basic\" & R),False)

With this command i can obtain a new library R in my component but with an error and it's 
empty and with a password " " ( it's mad !) .

Could you please endicate the good command to import libraries ?

Thank you for your attention and i hope your answer !
Avec mes salutations,
Christophe Joyau
Pupitreur assistant-Utilisateurs
C entre I nterrégional de S aisie des D onnées
22 bis avenue du 8 mai 1945
95200 Sarcelles
Tel : 09.70.27.18.57
' Ensemble des librairies contenues dans Clas ( il aurait été plus simple 
d'utiliser seulement )





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



Import & export Basic libraries ?

2017-10-05 Thread CHRISTOPHE JOYAU
Hello, 

I'm looking for a way to import Basic Libraries with Open Office 4.X about 
Libraries of a component (not about Globalscope Libraries). 

I know to export with : 

Librairies=BasicLibrairies 
For Each Librairie In Librairies() 
BasicLibraries.exportLibrary(Librairie.Name,ConvertToUrl(Chem & 
"Basic"),com.sun.star.ucb.AuthenticationRequest) 
Next 

So i get in directory Chem & "Basic" => xba and xlb 


I 'd like to do inverse operation and it 's not working if i use 
BasicLibraries.CreateLibraryLink(R,ConvertToUrl(Chem & "Basic\" & R),False) 

With this command i can obtain a new library R in my component but with an 
error and it's empty and with a password " " ( it's mad !) . 

Could you please endicate the good command to import libraries ? 

Thank you for your attention and i hope your answer ! 
Avec mes salutations, 
Christophe Joyau 
Pupitreur assistant-Utilisateurs 
C entre I nterrégional de S aisie des D onnées 
22 bis avenue du 8 mai 1945 
95200 Sarcelles 
Tel : 09.70.27.18.57 
' Ensemble des librairies contenues dans Clas ( il aurait été plus simple 
d'utiliser seulement )