[dev] Re: Problems downloading source through Mercurial

2011-10-09 Thread Jan Holst Jensen

On 2011-10-09 09:21, Seth Shich wrote:

Hi,

I am trying to download the source for building Open Office. I am new 
to all of this but have used SVN before (never Mercurial though). I 
have Mac OS X 10.7.1.


My problem is that when I type, hg clone 
http://hg.services.openoffice.org/DEV300 ooo_source, nothing happens. 
Finally, I get the following: error: abort: error: Operation timed out


However, when I type, say, hg clone 
https://code.google.com/p/core-plot/, it works.







OpenOffice source code has been moved to apache.org and I guess 
repositories too. I don't remember the exact links but I think you have 
a fair chance of getting started at:


http://incubator.apache.org/openofficeorg/

Cheers
-- Jan
--
-
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help


[dev] Re: opne et dokument med passord

2011-07-23 Thread Jan Holst Jensen

On 2011-07-23 01:03, Kim Sørlie wrote:
hei jeg har skrivi et openoffice.orgwriter  dukument. og låst det med 
passord  ca 23.30 fredags kveld (22.07.2011) men jeg får ikke åpna det 
igjen det vil ikke godta passordet jeg skrev finnes det noen mulighet 
å få opna det igjen 
hilsen kim sørlie ( sorlie@gmail.com mailto:sorlie@gmail.com ) 


[Rough translation: I wrote an OpenOffice writer document friday night, 
but I can't open it again. It won't accept the password I wrote. Is 
there any way of opening it again ?]


Hi Kim,

If you have forgot the password I am afraid you're lost, since OOo uses 
quite good encryption. See e.g.


http://www.oooforum.org/forum/viewtopic.phtml?t=74190

Kind regards
-- Jan Holst Jensen
--
-
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help


[dev] Re: Configure Error

2011-05-28 Thread Jan Holst Jensen

Hi Cristian,

/bin/sh is a symlink to /bin/dash (at least on my Ubuntu 10 - I assume 
Debian is similar).


   jhje@rumleskaft:~$ ls -l /bin/sh
   lrwxrwxrwx 1 root root 4 2011-02-19 02:12 /bin/sh - dash
   jhje@rumleskaft:~$


'dash' is a lightweight version of 'bash' and 'dash' only understands 
the most basic stuff. It speeds up booting because 'dash' is faster to 
load, but as you have discovered it has its limitations.


Kind regards
-- Jan Holst Jensen

On 2011-05-28 06:32, Cristi Lacatus wrote:

Hi Tora,

I managed to get around that error message replacing /bin/sh with 
/bin/bash at the top of the configure script. Both are GNU versions 
and I am not sure why the sh one didn't work.
I am trying to compile OOO330_m20, on a Intel x86 QNAP NAS which runs 
a debian stripped down version.


Thanks for your help.

Cheers,
Cristian.

2011/5/27 tora - Takamichi Akiyama t...@openoffice.org 
mailto:t...@openoffice.org


Hi,

This might help you dig into the cause:

http://www.google.co.jp/search?num=50q=autoconf+%22syntax+error+near+unexpected+token+%22+case+%28ac_space%3D%27+%27%3B+set+|+grep+ac_space%29+2%3E%261+in

http://www.google.co.jp/search?num=50q=autoconf+%22syntax+error+near+unexpected+token+%22+case+%28ac_space%3D%27+%27%3B+set+%7C+grep+ac_space%29+2%3E%261+in

e.g.
https://bugzilla.redhat.com/show_bug.cgi?id=192793
http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00038.html

next time, providing a version number of your OpenOffice.org
source code might help us a lot!

Regards,
Tora


On 2011/05/27 22:40, Cristi Lacatus wrote:

Hello,
I am trying to compile OpenOffice on my headless Debian
flavour NAS and I getting an error message that I don't how to
get passed it.
This is the error message that I get:
checking whether and how to use Xinerama... yes, with dynamic
linking
checking X11/extensions/Xinerama.h usability... yes
checking X11/extensions/Xinerama.h presence... yes
checking for X11/extensions/Xinerama.h... yes
checking for XineramaIsActive in -lXinerama... yes
./configure: line 29908: syntax error near unexpected token `('
./configure: line 29908: `case `(ac_space=' '; set | grep
ac_space) 21` in'
My configure line looks like this:
./configure --prefix=/share/qpkg/ooo/opt
CPPFLAGS=-I/share/HDA_DATA/.qpkg/Optware/include
LDFLAGS=-L/opt/lib --disable-ldap --disable-mozilla
--disable-epm --disable-odk --disable-mathmldtd
--disable-directx --disable-gtk --disable-build-mozilla
--disable-kdeab --disable-Xaw --disable-opengl --disable-randr
--disable-gconf --disable-gnome-vfs
--with-jdk-home=/share/HDA_DATA/qpkg/jdk --disable-systray
--with-dynamic-xinerama
I also attached the config log, maybe someone can seee more there.
I am trying to get OpenOffice compiled to use with Alfresco.
Any help will be greatly appreciated.
Thanks,
Cristian.

-- 
-

To unsubscribe send email to dev-unsubscr...@openoffice.org
mailto:dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
mailto:sy...@openoffice.org
with Subject: help




--
-
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help


Re: [dev] How to run an add-on in a separate thread

2010-12-21 Thread Jan Holst Jensen

On 2010-12-21 10:52, imacat wrote:

Zindy Minshava said:

I am creating an add-on for OpenOffice Writer in java. In my application I have 
the need to refresh the text displayed in a GUI on a time basis manner.
Do I need to use separate thread for my add- on to achieve this? Or how can I 
achieve these idle time intervals without effecting the Writer application?

 I do not think you can do this.  OpenOffice.org extension is not
running in a thread-safe environment.


Hmmm... code like below runs OK in Calc allowing you to continue your 
work while the counter ticks in an open dialog window. So I guess that 
you could see how Wait() is implemented - it reschedules the Basic code 
so the UI is responsive. Or if callback timers are available in Java ? 
Check e.g. the section Special Behavior of OpenOffice.org Basic 
(around page 50) in



http://wiki.services.openoffice.org/w/images/8/8f/DevelopersGuide_OOo3.1.0_11OOoBasic.odt



Dialog1 is a dialog with a single Label field called Label1

Global Dlg As Variant

Sub Main
  Dlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1)

  Dlg.Model.Label1.Label = Hey

  Dlg.SetVisible(True)

  Dim I As Integer
  For I = 1 to 20
Dlg.Model.Label1.Label = I
Wait 1000
  Next I
End Sub

Cheers
-- Jan

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



Re: [dev] embedding an animated gif image

2010-11-29 Thread Jan Holst Jensen

On 2010-11-29 09:24, Chameen De Silva wrote:

Im doing an extension for OO writer. In my application a dialogbox is set to
appear and now I need to embed an animated .gif image in to that dialog box.

Can some one help me with that.
Thanx in advance



I have a StarBasic extension that shows an about-dialog with an image 
from the extension bundle using roughly this code:


   Sub ShowAboutDialog
  Dim Dlg as Variant

  DialogLibraries.LoadLibrary(MyLibrary)
  Dlg = CreateUnoDialog(DialogLibraries.MyLibrary.AboutDialog)

  On Error Resume Next

  Dim InfoProvider as Variant
  InfoProvider =
   
GetDefaultContext().GetByName(/singletons/com.sun.star.deployment.PackageInformationProvider)

  Dim BaseUrl as String
  BaseUrl = InfoProvider.GetPackageLocation(MY_PACKAGE_NAME)
  BaseUrl = BaseUrl  /graphics/

  Dlg.GetControl(MyLogoImage).Model.ImageURL = BaseUrl 
   my-logo.png

  On Error Goto 0

  Dlg.Execute
  Exit Sub

   End Sub


MY_PACKAGE_NAME will be something like com.mycompany.mylibrary.ooocalc.

The dialog has an ImageControl named MyLogoImage. The .png file is in 
a graphics/ directory that is just added to the .oxt (.zip) archive with 
7-zip (or you can use regular WinZip etc.). I haven't done anything to 
register the graphics files in the manifest or elsewhere; perhaps that's 
slightly naughty but it works for me :-).


Hope this can inspire you.

Cheers
-- Jan Holst Jensen, Denmark

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



Re: [dev] Re: BigPointerArray, SvPointerArray vs STL containers

2010-06-15 Thread Jan Holst Jensen

On 2010-06-15 09:06, Bartosz wrote:

By the way.
After replace svArrays by STL containers, in some cases I observed boost of 
performance.

For example:
  for (USHORT i = 0;  i  aEntries.size();  ++i)
  {

 if (aEntries.at(i).aFntFmt == rFntFmt)
 {
 aRes = aEntries[i].aId;
 break;
 }
  }

is much faster than:

 USHORT nCnt = aEntries.Count();
 USHORT i;
 for (i = 0;  i  nCnt   0 == aRes.Len();  ++i)
 {
 if (aEntries[i].aFntFmt == rFntFmt)
  aRes = aEntries[i].aId;
 }
   


If you're about to optimize then try the iterator-version of above as 
well. Something like (not tested, off the top of my head, and I don't 
know the actual type of aEntries):


 EntryType::iterator end = aEntries.end();
 for (EntryType::iterator i = aEntries.begin(); i != end; i++)
 {

if (i-aFntFmt == rFntFmt)
{
aRes = i-aId;
break;
}
 }

In some of the code that I work on (not OOo, but another C++ project) I 
have seen a very nice performance boost by switching from array-style 
subscripting to iterators.


Cheers
-- Jan

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



Re: [dev] Re: BigPointerArray, SvPointerArray vs STL containers

2010-06-15 Thread Jan Holst Jensen

On 2010-06-15 10:44, Bjoern Michaelsen wrote:

Am Tue, 15 Jun 2010 09:18:45 +0200
schrieb Jan Holst Jensenj...@biochemfusion.com:

   

On 2010-06-15 09:06, Bartosz wrote:
 

By the way.
After replace svArrays by STL containers, in some cases I observed
boost of performance.

For example:
   for (USHORT i = 0;  i   aEntries.size();  ++i)
   {

  if (aEntries.at(i).aFntFmt == rFntFmt)
  {
  aRes = aEntries[i].aId;
  break;
  }
   }

is much faster than:

  USHORT nCnt = aEntries.Count();
  USHORT i;
  for (i = 0;  i   nCnt0 == aRes.Len();  ++i)
  {
  if (aEntries[i].aFntFmt == rFntFmt)
   aRes = aEntries[i].aId;
  }

   

If you're about to optimize then try the iterator-version of above as
well. Something like (not tested, off the top of my head, and I don't
know the actual type of aEntries):

   EntryType::iterator end = aEntries.end();
   for (EntryType::iterator i = aEntries.begin(); i != end; i++)
   {

  if (i-aFntFmt == rFntFmt)
  {
  aRes = i-aId;
  break;
  }
   }

In some of the code that I work on (not OOo, but another C++ project)
I have seen a very nice performance boost by switching from
array-style subscripting to iterators.
 

Having measured performance on container access ad nauseum for
new_itemsets I can only warn you about such generic statements: For
example the new_itemsets cws seems to be 2-8% faster for loading and
saving on unix, while seeming to be ~8% slower on loading on windows
currently. So while measuring with callgrind is helping, it is only
part of the truth -- especially since it is partially synthetic. Also
measuring on a high-end i7 developer machine might be misleading,
since the scenario were we care about performance (meek netbooks etc.)
have completely different CPU-caches etc., resulting in possible
completely different performances.


Agree. I wasn't trying to make a generic statement, just pointing out 
that it might be worth trying. And even though I have seen great 
improvements in my particular release code on both Linux and Windows the 
debug builds have terrible performance on Windows - which could be a 
pain for developers.


Cheers
-- Jan

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



Re: [dev] Windows' unopkg.exe does not differentiate between stderr and stdout, where does stdout go to when piping ?

2010-03-21 Thread Jan Holst Jensen

On 2010-03-20 19:37, rony wrote:

Hi Oliver,

On 20.03.2010 17:29, Oliver Brinzing wrote:
   

you can use: unopkg add myExtension.oxt--shared  --verbose --log-file 
c:\mylog.txt

but this won't log error's 
(http://qa.openoffice.org/issues/show_bug.cgi?id=79831),
output is:

## Progress log entry 2010-03-20 16:54:33 ##
Copying: myExtension.oxt
Enabling:myExtension
  Enabling: Addons.xcu
...

 

thank you very much for your hint!

Wondering whether unopkg.exe under Windows is exhibiting erroneous
behaviour (compared to its Linux behaviour) w.r.t. its output (cannot be
redirected, nor piped). And as such whether it warrants a bug report.


unopkg behaves rather strangely on Windows. There is no way to redirect 
its output in case of errors so you don't stand a chance of reporting an 
error back to a user - only that installation has failed. See also


http://qa.openoffice.org/issues/show_bug.cgi?id=102854

Cheers
-- Jan Holst Jensen

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



Re: [dev] Calc for Life Science: Who are the masters of output2.cxx - and can those persons guide me a little ?

2010-03-12 Thread Jan Holst Jensen

On 2010-03-10 18:32, Niklas Nebel wrote:

On 03/09/10 19:57, Jan Holst Jensen wrote:
Can anyone give me input on what variables / flags I should set to 
really override cell drawing and effectively get OwnerDraw mode in 
specific cells ? I am currently changing bNeedEdit when I encounter a 
molecule-formatted cell so I can do cell rendering instead of the 
in-place editor doing it (as far as I have understood the meaning of 
that flag).


bNeedEdit is used to set the bEditEngine flag in the CellInfo array, 
for those cells that can't be output using a simple 
OutputDevice::DrawText or DrawTextArray call. In the separate 
ScOutputData::DrawEdit method, the EditEngine class is used to output 
the content of these cells. If you don't want DrawEdit to overwrite 
your cell, it's correct to clear that flag.


I have also tried changing bDoCell but with somewhat unpredictable 
results. Is this caused by cell rendering also being done in other 
places than ScOutputData::DrawStrings() ?


Yes, DrawEdit, see above. But now, OutputDevice::DrawText is still 
called, you just overwrite the text with your white background. 


Thanks Niklas. I think I have enough to keep my occupied for a couple of 
weeks now ;-).


Mvh
-- Jan

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



[dev] Calc for Life Science: Who are the masters of output2.cxx - and can those persons guide me a little ?

2010-03-09 Thread Jan Holst Jensen

Hi,

I am dabbling with in-cell rendering of molecules and proteins in Calc. 
I have made a custom build of DEV300_M60 (I know - it's old now) where I 
have added code that to some extent can do the job. You can take a look 
at my progress so far at


http://www.biochemfusion.com/work/in-cell/status1.html

I haven't found myself able to sufficiently grok the logic in 
output2.cxx's ScOutputData::DrawStrings() so I can override the cell 
rendering reliably enough. Also, I could use a hint as to how I should 
implement proper preview and print support - seems like it is mostly a 
matter of scaling (?).


My source code changes as of now can be found at

http://www.biochemfusion.com/work/in-cell/output2.cxxall my changes 
marked with 'j...@biochemfusion.com'
http://www.biochemfusion.com/work/in-cell/custom_draw.cxxthe code 
that actually draws the molecule graphics


Cheers
-- Jan Holst Jensen

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



Re: [dev] Calc for Life Science: Who are the masters of output2.cxx - and can those persons guide me a little ?

2010-03-09 Thread Jan Holst Jensen

On 2010-03-09 17:17, Niklas Nebel wrote:

On 03/09/10 14:14, Jan Holst Jensen wrote:
I am dabbling with in-cell rendering of molecules and proteins in 
Calc. I have made a custom build of DEV300_M60 (I know - it's old 
now) where I have added code that to some extent can do the job. You 
can take a look at my progress so far at


http://www.biochemfusion.com/work/in-cell/status1.html

I haven't found myself able to sufficiently grok the logic in 
output2.cxx's ScOutputData::DrawStrings() so I can override the cell 
rendering reliably enough. Also, I could use a hint as to how I 
should implement proper preview and print support - seems like it is 
mostly a matter of scaling (?).


ScOutputData has member variables nPPTX and nPPTY for the factor of 
pixels per twip. Just use those instead of a fixed factor, and scaling 
will adjust to the printer (or different zoom in the view).


There is still a special case to be handled though: If the 
configuration option User printer metrics for text formatting is 
set, the bPixelToLogic parameter to DrawStrings is TRUE, and 
PixelToLogic / LogicToPixel has to be used. 


Thanks Niklas. That should get me going with the preview / printing.

Can anyone give me input on what variables / flags I should set to 
really override cell drawing and effectively get OwnerDraw mode in 
specific cells ? I am currently changing bNeedEdit when I encounter a 
molecule-formatted cell so I can do cell rendering instead of the 
in-place editor doing it (as far as I have understood the meaning of 
that flag).


I have also tried changing bDoCell but with somewhat unpredictable 
results. Is this caused by cell rendering also being done in other 
places than ScOutputData::DrawStrings() ?


Cheers
-- Jan

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



Re: [dev] Stay-put buttons

2010-01-08 Thread Jan Holst Jensen

R. Georgeson wrote:

On Wed, 06 Jan 2010 14:15:23 +0100
Niklas Nebel niklas.ne...@sun.com wrote:

  

On 01/06/10 12:52, R. Georgeson wrote:

I looked at toolbars 
  
An add-on component can also specify images instead of text for its 
toolbar entries, see 
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Images_for_Toolbars_and_Menus. 
Maybe that helps.



Thanks (gulp). I think I will have to build my competence a bit before attempting something like that but it's bookmarked for future reference. 


Mind you I can't believe that wanting to stick a button on a spreadsheet which 
is always accessible as you scroll around is so ideosyncratic.
  


Not 100% sure what you are trying to do but is it something like the 
attached spreadsheet (don't know if the attachment will survive the 
mailing list transfer - feel free to write me directly if it doesn't) ?


I have simply added a button to the sheet, selected cell A4 and frozen 
the window with Window-Freeze.


Cheers
-- Jan Holst Jensen


StayPutButton.ods
Description: application/vnd.oasis.opendocument.spreadsheet
-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Re: [dev] FW: Need to hide button in custom toolbar

2009-11-19 Thread Jan Holst Jensen

Vikas Patel wrote:
FYI, it’s not custom toolbar, but it’s add-on toolbar.. which is installed with my add-in J. 


Best Regards,

Vikas Patel | Team Coordinator | Decos Software Development Pvt. Ltd (“ISO 9001: 2000 Certified Company”) 
  


Dear Vikas.

Perhaps this thread can help you ? 
http://www.mail-archive.com/d...@api.openoffice.org/msg09753.html


Kind regards
-- Jan Holst Jensen

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



Re: [dev] Calc development - source code advice, please.

2009-10-10 Thread Jan Holst Jensen

Ariel Constenla-Haile wrote:

Hello Jan,

On Friday 09 October 2009, 21:38, Jan Holst Jensen wrote:
  

Advice would be appreciated on how I can best orient myself in the
source code. I have used
http://wiki.services.openoffice.org/wiki/Source_code_directories as a
starting point but if there is more to be found besides the source
 itself...



did you try http://svn.services.openoffice.org/opengrok/ ?

for example 
http://svn.services.openoffice.org/opengrok/xref/DEV300_m61/sc/source/ui/view/output2.cxx#ScDrawStringsVars
  


Ah - that's a great tool. Thanks :-).

And I found the pointer there to http://tools.openoffice.org/ - looks 
like a good place to start getting my bearings.


Cheers
-- Jan

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



[dev] Calc development - source code advice, please.

2009-10-09 Thread Jan Holst Jensen

Hi all.

I have started to experiment with the Calc source code in DEV300_M60. 
The goal is to add custom in-line cell rendering, preferably 
implementable as an add-in if possible, but ... first steps first. My 
first shot would be to define a user-defined format code in Format 
Cells... and let the format code determine whether custom (hard-coded) 
rendering is in effect or not.


I have added some useless graphics to cells that contain formatted 
numbers by adding graphics instructions to ScOutputData::DrawStrings() 
(here, line 1690 of sc/source/ui/view/output2.cxx - just to see 
something happening, hooray) -


   else {
   pDev-DrawText( aDrawTextPos, aString );
++  pDev-SetFillColor();
++  pDev-SetLineColor(COL_BLACK);
++  pDev-DrawLine( aDrawTextPos, Point( aDrawTextPos.X() + 100, 
aDrawTextPos.Y() + 100 ) );

   }

but I am wondering - can the cell format code be accessed from here; and 
is it the right place at all to modify drawing code (?). Is the format 
code accessible through the ScDrawStringVars class - which is defined 
where ? I can't find a header file that defines this class.


Advice would be appreciated on how I can best orient myself in the 
source code. I have used 
http://wiki.services.openoffice.org/wiki/Source_code_directories as a 
starting point but if there is more to be found besides the source itself...


Cheers
-- Jan

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



[dev] [DUH - solved] Problem building M60 on Windows XP (w/ VS2005).

2009-09-30 Thread Jan Holst Jensen
My mistake - I had the Windows Server 2003 Platform SDK installed and 
not the Windows Server 2008 Platform SDK. With the 2008 SDK and VS 2008 
Express installed it is now building and building and building... so far 
so good at least.


Cheers
-- Jan


Hi All.

I have setup a Windows XP according to the Wiki at
http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows.

When running dmake to build M60 I get the following error:

=
Compiling: sal/osl/w32/file_dirvol.cxx
[...snip...]
p:/ooo_src/DEV300_m60/sal/osl/w32/file_dirvol.cxx(1164) : error C3861:
'GetVolumeNameForVolumeMountPoint': identifier not found
[...and so on...]

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



[dev] Problem building M60 on Windows XP (w/ VS2005).

2009-09-29 Thread Jan Holst Jensen

Hi All.

I have setup a Windows XP according to the Wiki at 
http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows.


When running dmake to build M60 I get the following error:

=
Compiling: sal/osl/w32/file_dirvol.cxx
e:/PROGRA~1/MICROS~1/VC/bin/cl.exe -Zm500 -Zc:forScope,wchar_t- -GR -c 
-nologo -Gs  -Gy -Ob1 -Oxs -O
y- -DENABLE_LAYOUT=0 -DENABLE_LAYOUT_EXPERIMENTAL=0 -Gd  -I.  
-I../../wntmsci11.pro/inc/cpposl -I../
inc -I../../inc/pch -I../../inc -I../../WIN/inc 
-I../../wntmsci11.pro/inc -I. -Ip:/ooo_src/DEV300_m6
0/solver/300/wntmsci11.pro/inc/stl 
-Ip:/ooo_src/DEV300_m60/solver/300/wntmsci11.pro/inc/external -Ip
:/ooo_src/DEV300_m60/solver/300/wntmsci11.pro/inc 
-Ip:/ooo_src/DEV300_m60/solenv/wntmsci11/inc -Ip:/
ooo_src/DEV300_m60/solenv/inc -Ip:/ooo_src/DEV300_m60/res 
-Ip:/ooo_src/DEV300_m60/solver/300/wntmsci
11.pro/inc/stl -Ie:/jdk/include/win32 -Ie:/jdk/include 
-Ie:/PROGRA~1/MICROS~3/include -Ie:/PROGRA~1/
MICROS~1/VC/include  
-Ip:/ooo_src/DEV300_m60/solver/300/wntmsci11.pro/inc/offuh -I. 
-I../../res -I.

-Wall
[bla bla bla ...]
oo_src/DEV300_m60/sal/osl/w32/file_dirvol.cxx
file_dirvol.cxx
p:/ooo_src/DEV300_m60/sal/osl/w32/file_dirvol.cxx(1164) : error C3861: 
'GetVolumeNameForVolumeMountP

oint': identifier not found
p:/ooo_src/DEV300_m60/sal/osl/w32/file_dirvol.cxx(1168) : error C3861: 
'GetVolumeNameForVolumeMountP

oint': identifier not found
p:/ooo_src/DEV300_m60/sal/osl/w32/file_dirvol.cxx(1173) : error C3861: 
'GetVolumeNameForVolumeMountP

oint': identifier not found
p:/ooo_src/DEV300_m60/sal/osl/w32/file_dirvol.cxx(1236) : error C3861: 
'GetVolumeNameForVolumeMountP

oint': identifier not found
dmake:  Error code 2, while making '../../wntmsci11.pro/obj/file_dirvol.obj'

ERROR: Error 65280 occurred while making 
/cygdrive/p/ooo_src/DEV300_m60/sal/osl/w32

rmdir E:/cygwin/tmp/5wslFTQF9e
dmake:  Error code 1, while making 'build_instsetoo_native'
=
Configure called with:

./configure \
--disable-directx \
--with-cl-home=/cygdrive/e/Program Files/Microsoft Visual Studio 8/VC \
--disable-activex \
--disable-build-mozilla \
--disable-mozilla \
--disable-directx \
--disable-epm \
--disable-atl \
--with-frame-home=/cygdrive/e/Program Files/Microsoft Platform SDK \
--with-psdk-home=/cygdrive/e/Program Files/Microsoft Platform SDK \
--with-midl-path=/cygdrive/e/Program Files/Microsoft Platform SDK/Bin \
--with-asm-home=/cygdrive/e/Program Files/Microsoft Visual Studio 8/VC \
--with-jdk-home=/cygdrive/e/jdk \
--with-csc-path=/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5 \
--with-ant-home=/cygdrive/e/ant \
--with-use-shell=bash


One word: Help ;-). This is my first build attempt of OOo so bear with me.

Cheers
-- Jan

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



Re: [dev] How to get footer of presentation slide?

2009-08-18 Thread Jan Holst Jensen
Wei Min Teo wrote:
 Is this the right place to ask qns regarding the api? Or i should be asking 
 this questions in another mailing list?
   

Hi Wei.

You may have more luck posting to d...@api.openoffice.org. Sorry, I can't
help you with your question about getting the footer.

Kind regards
-- Jan Holst Jensen

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



Re: [dev] Using OpenOffice.org for Chemistry on Linux

2009-08-12 Thread Jan Holst Jensen

Konstantin Tokarev wrote:

Hello!

I think every chemist which wants to use Linux faces with one serious problem: 
structural formulae cannot be inserted into the text in editable way. Also I 
think that only OpenOffice.org can provide this functionality today.

In MS Windows there are many GUI based editors, which can be used to create and 
edit formulae incorporated into documents. In *nix-like systems there are no 
OLE-like interfaces. Only possibilities for user are to insert formula as 
image, SVG, or use OLE objects, incorporated in files which were created in 
Windows, Objects, created by external software and inserted into document 
cannot be edited after incorporation.

On the other hand, there is an extension for OpenOffice.org called 'quick 
formule', which provides a language for textual description of chemical 
structural formulae. It constructs formula as OOo Draw object from text string. 
But created object cannot be edited as chemical structure. If a possibility to 
store this text string alongside with drawing, it could be used for further 
edit, and required functionality would be achieved.
  


Hi Konstantin.

I have looked into providing a somewhat similar functionality for 
protein sequences, only in Calc. I would like to custom-render Calc 
cells so the cells would display a graphical view of a protein sequence 
instead of the underlying text. To translate this to your needs, imagine 
that you could enter ph'4cy(2=O)(5=O)4ph(4-Oh)(5-Oh) in a 
spreadsheet cell and apply a special cell formatting that lets Calc 
automagically render the chemical structure directly in the cell (adding 
images to a spreadsheet doesn't work since the images do not follow the 
cells when you e.g. sort the underlying data).


You can follow the discussion at 
http://www.mail-archive.com/d...@api.openoffice.org/msg09260.html. Niklas 
Nebel suggests a method of letting an extension subscribe to events to 
let it update/add images to a document - this might work for you if you 
only consider Writer.


I haven't had time to look into this myself yet but if you are 
interested in supporting Calc too, feel free to e-mail me directly or 
post back here.


I had a look at quick formule and it's a very nice tool. However, to 
be useful in the pharmaceutical industry the formulas would need to be 
SMILES or some other standard format. Interfacing to OpenBabel or 
similar tools could potentially solve this.


Cheers
-- Jan

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



Re: [dev] Calc add-in: How do I specify optional parameters for functions in a UNO component ?

2009-03-19 Thread Jan Holst Jensen

Ariel Constenla-Haile wrote:

Hello Jan,

this is now an API thread, so I'd suggest moving to d...@api.openoffice.org 
(dev@openoffice.org is for development on OOo source code, d...@api.openoffice.org 
for API developers).
  

Point taken. I will move it to that list.

I'll send you a Java example, just look at the IDL and the CalcAddIns.xcu

  

Thanks. I'll try to get my head around it.

AFAIK there is no other documentation than the schema
/opt/openoffice.org/basis3.1/share/registry/schema/org/openoffice/Office/CalcAddIns.xcs 
http://svn.services.openoffice.org/opengrok/xref/DEV300_m43/officecfg/registry/schema/org/openoffice/Office/CalcAddIns.xcs


The Dev's Guide chap. about Add-ins is from the stone age.
  
OK, I'll try to summarize what I have done once I have a functional 
add-in. Especially the need to use IDL and what's heads and tails of all 
those XML files was not at all clear to me from the start.


Cheers
-- Jan

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



Re: [dev] OOo BASIC Calc extension - sheet functions in library other than Standard - how ?

2009-03-18 Thread Jan Holst Jensen

Ariel Constenla-Haile wrote:

Hello Jan,

On Tuesday 17 March 2009, 21:15, Jan Holst Jensen wrote:
  

Well, I have compiled my first IDL now so I am more or less on my merry
way to implementing the extension functions in Python instead.



there is an example for you to follow:

http://udk.openoffice.org/python/python-bridge.html#calc-addin
http://udk.openoffice.org/python/samples/python-tokencounter-calc-addin.oxt

can't say if/how it works, because never tried it.
  

Hi Ariel.

The tokencounter example works nicely for me and I have been able to 
change it so I can define my own IDL and implement my own functions. 
Testing is not particularly easy (e.g. missing imports in the .py file 
cause an OOo Calc crash with a totally generic error message :-/) but 
the functions I implement will mainly be thin wrappers for COM stuff so 
they should present very few problems now that I have the main skeleton 
up and running.


The solutions we discussed earlier in this thread for supporting OOo 
Basic Calc functions has for me dropped in priority to nice-to-have, 
since I am now implementing it as a Python UNO component instead.


Cheers
-- Jan

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



Re: [dev] OOo BASIC Calc extension - sheet functions in library other than Standard - how ?

2009-03-17 Thread Jan Holst Jensen

Ariel Constenla-Haile wrote:

Hello Jan,

On Sunday 15 March 2009, 21:15, Jan Holst Jensen wrote:
  

I can add OOo Basic functions to the Standard library and use those as
sheet functions without problems. Now, when I want to deploy the
functions packaged as an extension I run into problems.

As far as I can see an extension (an .oxt package) is not able to
install functions into the Standard library. 
Is there a good solution to this ? Or will I have to use Python or Java

instead of OOo Basic to do this (a shame since OOo Basic does the job
really nice) ?



no, you cannot add functions to the Standard library using an extension. 
You'll have to develop an Add-in (in C++, Java or Python).
  

Hi Ariel.

Thanks for the info although it confirms my fears. So I can deploy Basic 
macros as extensions and add buttons and stuff to the UI but cannot 
deploy Basic functions so they are available from Calc - feels a little 
like being cheated.


But Python is fortunately a nice language :-).

Cheers
-- Jan

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



Re: [dev] OOo BASIC Calc extension - sheet functions in library other than Standard - how ?

2009-03-17 Thread Jan Holst Jensen

Peter Eberlein wrote:


no, you cannot add functions to the Standard library using an 
extension. You'll have to develop an Add-in (in C++, Java or Python).
  
if issue http://qa.openoffice.org/issues/show_bug.cgi?id=53615 (allow 
other libraries) is solved, things will become easier.
It is an issue from 2005, so it seems I shouldn't hold my breath for a 
solution... ?


Cheers
-- Jan

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



Re: [dev] OOo BASIC Calc extension - sheet functions in library other than Standard - how ?

2009-03-17 Thread Jan Holst Jensen




no, you cannot add functions to the Standard library using an 
extension. You'll have to develop an Add-in (in C++, Java or 
Python).
  
if issue http://qa.openoffice.org/issues/show_bug.cgi?id=53615 
(allow other libraries) is solved, things will become easier.
It is an issue from 2005, so it seems I shouldn't hold my breath 
for a solution... ?



Ask Niklas...


No quick solution in sight. We don't want to load and search all 
libraries, and we don't have any additional information available 
besides the function name.


Niklas

Basic supports the syntax: library-name-dot-function-name, like 
MyLib.MyFunc. Maybe Calc could, too? Basic Runtime isn't smart enough 
to try to load the library for you, but Calc could be made that smart.


That solution gets a vote from me - allowing library.function syntax in 
a cell would feel natural to me; at least that is what I tried as soon 
as I had put my function in my own library.


An alternative could be to allow an extension to add a module to the 
standard library, to e.g. add appropriate wrapper functions to surface 
library functions to Calc. If the reason for not allowing this is to 
avoid excessive initialization on startup, you could perhaps constrain 
extension modules so they are not allowed to have a Main sub ? That 
would be OK for a module that only consists of wrapper functions. But 
having to add special logic for special extension modules makes the 
above solution sounds far more clean and simple...  

However - a crucial feature (for me at least) that must also be 
supported is proper integration into the function wizard. If this won't 
work for Basic add-ins that will be reason enough for me to go the 
Python or Java route anyway.


I have tried defining a function called TestFunction in the Standard 
library that just multiplies the input number by 20. Works fine as a 
cell function. I then tried to make an .XCU file that defines that there 
is a function called TestFunction and that it has a single parameter 
called X (using the example from 
http://specs.openoffice.org/sdk/tools/spec_uno-skeletonmaker.odt as a 
template). The .XCU file was then installed by hitching a ride via an 
otherwise unrelated example extension. TESTFUNCTION is now listed in 
the function wizard but refuses to work (no parameters listed - even 
though I have listed the X parameter in the .XCU file) and I can no 
longer use TestFunction as a cell function (Err:504). Removing the 
extension and thereby the .XCU file removes TESTFUNCTION from the 
function wizard and restores TestFunction as a working cell function.


Is the .XCU example that I used as a template incomplete or outdated or 
is it not possible to add a Basic function to the list in the function 
wizard ?


Cheers
-- Jan

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



Re: [dev] OOo BASIC Calc extension - sheet functions in library other than Standard - how ?

2009-03-17 Thread Jan Holst Jensen

Ariel Constenla-Haile wrote:

Hello Jan,

On Tuesday 17 March 2009, 20:17, Jan Holst Jensen wrote:
  

Is the .XCU example that I used as a template incomplete or outdated or
is it not possible to add a Basic function to the list in the function
wizard ?



AFAIK the later. The configration file (xcu) is for Add-in functions implemented 
in UNO-components.


For example in

oor:component-data xmlns:oor=http://openoffice.org/2001/registry; 
xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:name=CalcAddIns 
oor:package=org.openoffice.Office

node oor:name=AddInInfo
node oor:name=org.openoffice.sdk.java.spreadsheet.CalcAddIns 
oor:op=replace

...
/node
/node
/oor:component-data

org.openoffice.sdk.spreadsheet.CalcAddIns is the service identifier of the UNO 
component.
  

Hi Ariel.

Ah - makes sense. So supporting Basic extensions in the function wizard 
sounds like even more work that needs to be done.


Well, I have compiled my first IDL now so I am more or less on my merry 
way to implementing the extension functions in Python instead.


Cheers
-- Jan

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



[dev] OOo BASIC Calc extension - sheet functions in library other than Standard - how ?

2009-03-15 Thread Jan Holst Jensen

Hi.

I can add OOo Basic functions to the Standard library and use those as 
sheet functions without problems. Now, when I want to deploy the 
functions packaged as an extension I run into problems.


As far as I can see an extension (an .oxt package) is not able to 
install functions into the Standard library. At least trying to do so 
gives me a non-function .oxt package, and of course the proper way is to 
put my stuff in its own namespace. So I create the OtherModule module 
in the OtherLibrary library having this function:


 Function OtherFunc(X As Integer)
   OtherFunc = X * 5
 End Function

But the only way I have been able to access that as a sheet function, 
e.g. having the following in cell B1


 =OTHERFUNC(A1)

is to add this wrapper function to (one of the modules in) the 
Standard library:


 Function OtherFunc(X As Integer)
   OtherFunc = OtherLibrary.OtherFunc(X)
 End Function

So I am still stuck with modifying the Standard library - which I 
can't seem to do in the process of installing my .oxt file (?). I could 
actually live with having to add a module to the Standard library...


Is there a good solution to this ? Or will I have to use Python or Java 
instead of OOo Basic to do this (a shame since OOo Basic does the job 
really nice) ?


Cheers
-- Jan Holst Jensen, Denmark


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