On 03/03/13 08:21, Ariel Constenla-Haile wrote:
> On Sun, Mar 03, 2013 at 08:10:41AM -0600, Larry Evans wrote:
>> So:
>>
>>   http://www.openoffice.org/dev_docs/source/sys_reqs_aoo34.html
>>
>> where it says gnome is required is wrong?  IOW, it should just
>> say libgtk2?
> Gnome is only a requirement for accessibility to work (via Orca), but
> you can use OpenOffice in any desktop environment as long as you have
> gtk2 libraries.
>
>>> What desktop environment do you have?
>> My os is ubuntu 10.04 LTS.  However, it appears I've also
>> got gnome because on my panel, when I select System,
>> it shows an "About Gnome" item.  What's confusing is
>> that synaptic shows gnome is not installed.
> If you have the default Ubuntu installation, then you already have all
> gtk2 libraries :)
>
>>> You
>>> don't need to install gnome, and sure you have gtk2 libraries already
>>> installed ;)
>> Yep, synaptic shows several packages installed with names
>> starting with libgtk2, in particular it shows:
>>
>>   libgtk2.0-dev
> packages ending with *-dev are for development, you don't need them
> unless you are planning to develop with that library.
>
>
> Regards
Thanks.  I've downloaded:

 
http://people.apache.org/~arielch/packages/r1372282-glibc-2.5/linux_x86-64/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US.tar.gz.md5
 
http://people.apache.org/~arielch/packages/r1372282-glibc-2.5/linux_x86-64/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US.tar.gz

and gunzipped and tar -xf the .tar.gz file.  This resulted in 2 directories:

 
/home/evansl/download/OpenOffice/r1372282/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US:
  total used in directory 16 available 54485852
  drwxr-xr-x 4 evansl evansl 4096 Aug 18  2012 .
  drwxr-xr-x 3 evansl evansl 4096 Aug 18  2012 ..
  drwxr-xr-x 4 evansl evansl 4096 Aug 18  2012 openoffice.org
  drwxr-xr-x 5 evansl evansl 4096 Aug 18  2012 openoffice.org3

In a terminal window, in directory:

 
/home/evansl/download/OpenOffice/r1372282/Apache_OpenOffice_incubating_3.4.1_Linux_x86-64_install-arc_en-US/openoffice.org3/program

I typed:

  ./scalc

and the calc window opened.  I then put macros security at medium, and then
loaded the attached .ods file, and then created a macro containing the
previously attached NumberFive.bsh. I was able to save it this time;
however,
when I tried to run it, I got an Error window with a pink octagon and red
X and the message:
   Sourced file: inline evaluation of : ``import
com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XcomponentContext;
i...": Not an array
So obviously it's not interpreting the file as java.  I've again attached
the file.  What am I doing wrong?

TIA.

-regards,
Larry


 
 

import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XModel;

// Hello World in BeanShell
import com.sun.star.sheet.XSpreadsheetDocument;
import com.sun.star.sheet.XSpreadsheet;

oDoc = 
UnoRuntime.queryInterface(XModel.class,XSCRIPTCONTEXT.getInvocationContext());
if ( oDoc == null )
  oDoc = XSCRIPTCONTEXT.getDocument();
xSpreadsheetDoc = (XSpreadsheetDocument) 
UnoRuntime.queryInterface(XSpreadsheetDocument.class,oDoc);
oSheets = xSpreadsheetDoc.sheets;
oSheet = oSheets[0];
// BeanShell OpenOffice.org scripts should always return 0
return 0;


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

Reply via email to