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'