Re: [dev] Change the cursor's size (all office)

2010-01-30 Thread eric b

Answering to myself,

Le 30 janv. 10 à 08:39, eric b a écrit :


Hello,
For children, I'd like to have the cursor bigger (only the cursor),  
for all platform and in the whole application.
Something like  ( 2 x height ) by ( 2 x width ) would be perfect. I  
found some tracks in vcl, but I'm unsure.


What I need is just some indications, and if one could tell me  
globally what has to be done, it would be perfect. Thaks in advance !!



... in meantime, I found : svtools/source/edit/textview.cxx

Looks promising :)


Thanks,
Eric Bachard

--
qɔᴉɹə
http://www.wiki.ooo4kids.org






[dev] Change the cursor's size (all office)

2010-01-30 Thread eric b

Answering me again

Le 30 janv. 10 à 09:24, eric b a écrit :

... in meantime, I found : svtools/source/edit/textview.cxx

Looks promising :)



After more investigation  (OpenGrok is great btw ! ), I  was plain  
wrong and a better place was in vcl/source/window/cursor.cxx
The code below solved the cursor in the text editor, but in fact, the  
cursors I'd like to modify are the system one. e.g. the classical  
arrow, or the pen with Impress .. and so on.


So my new question is : Is the only way to use bigger cursors (all  
platforms),  provide new bigger .png .. or ?



Thanks,
Eric Bachard


Index: vcl/source/window/cursor.cxx
===
--- vcl/source/window/cursor.cxx(revision 384)
+++ vcl/source/window/cursor.cxx(working copy)
@@ -57,6 +57,7 @@

 //  
===


+
 static void ImplCursorInvert( ImplCursorData* pData )
 {
Window* pWindow  = pData-mpWindow;
@@ -67,8 +68,14 @@
nInvertStyle = INVERT_50;
else
nInvertStyle = 0;
-
+#ifdef OOo4Kids
+   Size aNewPixSize;
+   aNewPixSize.setWidth(  2 * pData-maPixSize.getWidth() );
+   aNewPixSize.setHeight ( pData-maPixSize.getHeight() ); //  
increase height is a bad idea

+   Rectangle aRect( pData-maPixPos, aNewPixSize );
+#else
Rectangle aRect( pData-maPixPos, pData-maPixSize );
+#endif
if ( pData-mnDirection || pData-mnOrientation || pData- 
mnPixSlant )

{
Polygon aPoly( aRect );


--
qɔᴉɹə






Re: [dev] Change the cursor's size (all office)

2010-01-30 Thread Philipp Lohmann
Actually you should change the cursor width setting in 
vcl/source/app/settings.cxx line 421; exhange


mnCursorSize = 2;

by a larger value.

Be advised, that on Windows this setting will be overwritten by the 
system setting from DEV300m71 on.


Kind regards, pl

On 1/30/10 10:21 AM, eric b wrote:

Answering me again

Le 30 janv. 10 à 09:24, eric b a écrit :

... in meantime, I found : svtools/source/edit/textview.cxx

Looks promising :)



After more investigation (OpenGrok is great btw ! ), I was plain wrong
and a better place was in vcl/source/window/cursor.cxx
The code below solved the cursor in the text editor, but in fact, the
cursors I'd like to modify are the system one. e.g. the classical arrow,
or the pen with Impress .. and so on.

So my new question is : Is the only way to use bigger cursors (all
platforms), provide new bigger .png .. or ?


Thanks,
Eric Bachard


Index: vcl/source/window/cursor.cxx
===
--- vcl/source/window/cursor.cxx (revision 384)
+++ vcl/source/window/cursor.cxx (working copy)
@@ -57,6 +57,7 @@

// ===

+
static void ImplCursorInvert( ImplCursorData* pData )
{
Window* pWindow = pData-mpWindow;
@@ -67,8 +68,14 @@
nInvertStyle = INVERT_50;
else
nInvertStyle = 0;
-
+#ifdef OOo4Kids
+ Size aNewPixSize;
+ aNewPixSize.setWidth( 2 * pData-maPixSize.getWidth() );
+ aNewPixSize.setHeight ( pData-maPixSize.getHeight() ); // increase
height is a bad idea
+ Rectangle aRect( pData-maPixPos, aNewPixSize );
+#else
Rectangle aRect( pData-maPixPos, pData-maPixSize );
+#endif
if ( pData-mnDirection || pData-mnOrientation || pData-mnPixSlant )
{
Polygon aPoly( aRect );





--
Sanity is just a bad excuse for a lack of imagination.
 -- Author unknown

Registered Office: Sun Microsystems GmbH, Sonnenallee 1, D-85551 
Kirchheim-Heimstetten

Commercial register of the Local Court of Munich: HRB 161028
Managing Directors: Thomas Schröder, Wolfgang Engels
Chairman of the Supervisory Board: Martin Häring

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



Re: [dev] Help needed to create Compact Openoffice setup for document converter

2010-01-30 Thread Aatral Arasu
Thanks for the information. I was able to bring the latest OpenOffice 3.2
setup size to 71.7MB.

Any other additional inputs or pointers to produce a compact OpenOffice
setup would be hugely helpful.

Thanks in Advance,
Aatral

Details of the Steps done for Compacting:
I used the following options in configure script --enable-crashdump=no
--disable-systray --disable-gtk --disable-gnome-vfs --without-myspell-dicts
--disable-ldap --disable-vba --disable-mozilla --disable-odk
--disable-qadevooo --disable-fontooo --disable-mathmldtd --disable-cups
--disable-fontconfig --disable-directx --disable-activex --disable-atl
--disable-gtk --disable-kdeab --disable-binfilter --disable-pam
--disable-crypt-link --disable-randr --disable-randr-link --disable-neon
--disable-Xaw --without-ppds --without-fonts --without-afms --with-dict=ENUS

to bring a OpenOffice setup. Followed by this, I have done application
compacting using UPX compression, JAR resizing provided by PortableApps
AppCompactor.

The option --without-java was not working as part of configure script, as
lucene was not compiling.


On Wed, Jan 6, 2010 at 8:44 PM, K S pgmb...@gmail.com wrote:

 The first Idea which comes to mind is to disable all unnecessary modules by
 using configure script.

 Sincerely yours,
 Kirill

 2010/1/6 Aatral Arasu aatr...@gmail.com

  We have checked out the latest openoffice source code in Ubuntu Linux and
  Windows and successfully created and installed the OpenOffice setup from
  the
  source code.
 
  We are working on creating a portable openoffice setup based document
  converter, whose final setup size has to be shrinked to 50MB from the
  latest
  openoffice source.
 
  A similar setup created by PortableApps for OpenOffice 3.1 is of size
 98MB.
 
  We are going through the wiki pages, source code and searching the
  developer
  mailing archive.
  Any help or pointers would be greatly appreciated and useful.
 
  Thanks in Advance,
  Aatral