2007年9月26日星期三

Back from OOoCon2007 in Barcelona

Back from OOoCon2007 in Barcelona

Check the mails, so many. skip one by one and answer some of them

complete the Novell 2007 employee engagement survey. begin to do COBE. listen to the training modules. print the copy and prepare to have a look after back home.

my cws cjksp1 resync
* check out the code
*

ooo-build update to m5

plan to blog my work about cjk functions

2007年7月3日星期二

2007年7月3日 星期二

* download oox
** investiage the framework

* zoom factor
** how to set local zoom factor, not global zoom factor

find ZoomFactor in go-oo.org, got:
http://go-oo.org/lxr/source/sw/sw/source/ui/uiview/view.cxx#1485
const SwViewOption* pVOpt = pWrtShell->GetViewOptions();
if ( bGotZoomType && bGotZoomFactor &&
( pVOpt->GetZoom() != nZoomFactor || pVOpt->GetZoomType() != eZoom ) )
SetZoom( eZoom, nZoomFactor, sal_True );
upload file to sf.net
* update the ssh pub key to :https://sourceforge.net/account/editsshkeys.php
* create a module in sf
fong@fong:~/hackweek/uof-filter> export CVS_RSH=ssh
fong@fong:~/hackweek/uof-filter> cvs -z3 -d:ext:odf4all@uof-converter.cvs.sourceforge.net:/cvsroot/uof-converter import -m "uof filter" uoffilter jrandom start


check the patch of font list box:
* backup the files
fong@fong:/local/SRC680_m211> cp psprint/inc/psprint/fontmanager.hxx psprint/inc/psprint/fontmanager.hxx.orig
fong@fong:/local/SRC680_m211> cp psprint/source/fontmanager/fontconfig.cxx psprint/source/fontmanager/fontconfig.cxx.orig
fong@fong:/local/SRC680_m211> vi svtools/inc/ctrlbox.hxx svtools/inc/ctrlbox.hxx.orig
还有 2 个文件等待编辑
fong@fong:/local/SRC680_m211> cp svtools/inc/ctrlbox.hxx svtools/inc/ctrlbox.hxx.orig
fong@fong:/local/SRC680_m211> cp svtools/source/control/ctrlbox.cxx svtools/source/control/ctrlbox.cxx.orig
fong@fong:/local/SRC680_m211> cp svtools/util/makefile.mk svtools/util/makefile.mk.orig
fong@fong:/local/SRC680_m211> cp svx/source/items/textitem.cxx svx/source/items/textitem.cxx.orig
fong@fong:/local/SRC680_m211> cp svx/util/makefile.mk svx/util/makefile.mk.orig

* apply the patch


*

An Introduction to the OpenOffice.org API

http://platform.netbeans.org/tutorials/nbm-open-office.html



ooo-build

/home/fong/ooo-build/build/src680-m216/writerperfect/source/wpgimp/WPGImportFilter.cxx: In member function 'virtual sal_Bool WPGImportFilter::filter(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>&)':
/home/fong/ooo-build/build/src680-m216/writerperfect/source/wpgimp/WPGImportFilter.cxx:161: error: cannot declare variable 'exporter' to be of abstract type 'OdgExporter'
/home/fong/ooo-build/build/src680-m216/writerperfect/source/wpgimp/OdgExporter.hxx:38: note: because the following virtual functions are pure within 'OdgExporter':
/home/fong/ooo-build/build/src680-m216/solver/680/unxlngi6.pro/inc/libwpg/WPGPaintInterface.h:45: note: virtual void libwpg::WPGPaintInterface::startGraphics(double, double)
/home/fong/ooo-build/build/src680-m216/solver/680/unxlngi6.pro/inc/libwpg/WPGPaintInterface.h:69: note: virtual void libwpg::WPGPaintInterface::endGraphics()
dmake: Error code 1, while making '../../unxlngi6.pro/slo/WPGImportFilter.obj'

2007年6月25日星期一

Tab browsing for OpenOffice.org

If you can load all the documents ( text, presentation, spreadsheet) in a single OpenOffice.org window, and use tabs to navigate between them, would it be good for you?

I will spend a week to "hack" on this problem and try to see whether I can make a prototype for it.

I think it is not a easy stuff, so your suggestion is very appreciated.

http://www.openoffice.org/issues/show_bug.cgi?id=12686
http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Tabbed_Windows_Extension
http://wiki.services.openoffice.org/wiki/Framework/TabBrowse/Development

http://www.openoffice.org/issues/show_bug.cgi?id=54847
check out the code in the cws: gsoc

2007年6月22日星期五

* Investigate how to add a typedetection for OOo
two files should be added, one is for "type", the other is for "filter".
refer to svg-import :http://www.ipd.uka.de/~hauma/svg-import/

* learn Python-uno bridge

* how to use XRayTool
download xraytool and install, but not know how to use it.

* install object inspector

reference:
* Articles about the macro language OpenOffice.org/StarBASIC: http://wiki.services.openoffice.org/wiki/Category:Basic:Tutorials
* IDL and Cpp: http://wiki.services.openoffice.org/wiki/IDL_Files_and_Cpp#Core_reflection_service_and_its_Interfaces
* WEB api: http://api.openoffice.org/docs/common/ref/index-files/index-1.html
* using cpp with the OOo sdk: http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK




2007年6月21日星期四

2007年6月21日 星期4

* learn how to write extension in OOo
download some materials
* http://api.openoffice.org/docs/DevelopersGuide/Components/Components.xhtml#1_7_3_Add-Ons
Read this guid

print http://api.openoffice.org/docs/DevelopersGuide/Extensions/Extensions.xhtml#1_Extensions,
read this tonight

2007年6月20日星期三

* Investigate how to port libwps into openoffice
writerperfect: wraper for libwps

Debugging OO

1. build debug=true dbglevel=2 for max output and dbglevel=1 or 0 for less output.
2.
gdb ./soffice.bin
(gdb) handle SIGPWR nostop noprint
(gdb) handle SIGXCPU nostop noprint
(gdb) handle SIG33 nostop noprint
(gdb) run -norestore -writer

3. (gdb) print dbg_dump(sWhatEver)

4. rebuild the module
gdb ./soffice.bin
...
bt
#0 0x40b4e0a1 in kill () from /lib/libc.so.6
#1 0x409acfe6 in raise () from /lib/libpthread.so.0
#2 0x447bcdbd in SfxMedium::DownLoad(Link const&) () from ./libsfx641li.so
#3 0x447be151 in SfxMedium::SfxMedium(String const&, unsigned short, unsigned char, SfxFilter const*, SfxItemSet*) ()
from ./libsfx641li.so
#4 0x448339d3 in getCppuType(com::sun::star::uno::Reference const*) () from ./libsfx641li.so
...
quit
cd base/OOO_STABLE_1/sfx2
ootouch SfxMedium
build debug=true
5. or
dmake killobj
dmake

6.Non-Product Builds are created using a special configure switch, namely --enable-dbgutil.

For available tools in non-product builds, have a look at the various DBG_foo macros in tools/debug.hxx

To actually fire up the debug settings dialog, press -D.

To use (or do QA for) the additional debug features: just run OO.o, and
when it's in full-flow, press --
'D' in that order