显示标签为“oo”的博文。显示所有博文
显示标签为“oo”的博文。显示所有博文

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月20日星期三

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

2007年6月19日星期二

tab browsing in oo

2007/06/19
* reference
http://wiki.services.openoffice.org/wiki/Tutorial_Locate_UI
find . -name *.src -exec grep -Hn Normal '{}' \;

STR_OUTLINE_MODE

ViewTabBarModule::UpdateViewTabBar
SID_OUTLINEMODE

ToolBarRules::MainViewShellChanged
mrToolBarManager.AddToolBar

2007年6月12日星期二

new ideas on OO from Hacking Week

Hacking week from opensuse is comming soon. from now on, there are two ideas about OOo.
* collaborative editing for OO
allow multipule people to work together on the same document in OO at the same time in the same visual space.
the OO internals need to be examined because it does not use a "piece table" implementation underneath the word processor which would make this easier.

* more intuitive UI for OO
simplify and trimming down the OO UI so that an user can more easily grasp it. sources of inspiration maybe include google docs, the ribbon interface in MS Office 2007 and more.

There is my idea about OO from Soc proposal: http://wiki.services.openoffice.org/wiki/Summer_of_Code_2007/proposals#OpenOffice.org_Based_Workflow_Framework

OpenOffice.org Based Workflow Framework

The one feature that is now begging for attention from OpneOffice.org is the colloboration and workflow. The workflow system should leverage on the Xforms support in OpenOffice.org and combine it with other Open Source Products like Shark ( http://www.enhydra.org/workflow/shark/index.html ) and JaWe ( http://www.enhydra.org/workflow/jawe/index.html ) to create an integrated Xforms based workflow system. The product should have a centralized server component and a client component. The server component interfaces with Process repositories and Process Instance repositories and has Java based Administration and Definition tools. The client component could be a toolbar which sits as an addon into the office suite. The goal of this project is to provide document workflow from within OpenOffice.org.

2007年5月31日星期四

compatibility options

1. compatibility options in word8 filter
ww8par.cxx: rDoc.set(IDocumentSettingAccess::PARA_SPACE_MAX, pWDop->fDontUseHTMLAutoSpacing);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::PARA_SPACE_MAX_AT_PAGES, true );
ww8par.cxx: rDoc.set(IDocumentSettingAccess::TAB_COMPAT, true);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::USE_VIRTUAL_DEVICE, !pWDop->fUsePrinterMetrics);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::USE_HIRES_VIRTUAL_DEVICE, true);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::ADD_FLY_OFFSETS, true );
ww8par.cxx: rDoc.set(IDocumentSettingAccess::ADD_EXT_LEADING, !pWDop->fNoLeading);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::OLD_NUMBERING, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::OLD_LINE_SPACING, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::ADD_PARA_SPACING_TO_TABLE_CELLS, true);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::USE_FORMER_OBJECT_POS, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::CONSIDER_WRAP_ON_OBJECT_POSITION, true);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::USE_FORMER_TEXT_WRAPPING, false);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::TABLE_ROW_KEEP, true); //SetTableRowKeep( true );
ww8par.cxx: rDoc.set(IDocumentSettingAccess::IGNORE_TABS_AND_BLANKS_FOR_LINE_CALCULATION, true);
ww8par.cxx: rDoc.set(IDocumentSettingAccess::KERN_ASIAN_PUNCTUATION, rTypo.fKerningPunct);

2. in writer setting:
search IDocumentSettingAccess in sw/source/ui/config, got:
source/ui/config/optcomp.cxx
SwCompatibilityOptPage

search COMPATIBILITY_DEFAULT_NAME in go-oo.org, got:
svtools/inc/svtools/compatibility.hxx

search ConsiderWrappingStyle in user directory for oo, got:
registry/data/org/openoffice/Office/Compatibility.xcu:

2007年5月30日星期三

text grid bug2 2007-05-30

1. when switch page mode, the page area is change now

2. when import the old document, the page mode is not right

2007年5月25日星期五

text grid bug fixed

1. type are changes when switch page mode
sw/source/core/layout/atrfrm.cxx

2. Modify SwDoc::SetDefaultPageMode
sw/source/core/doc/docdesc.cxx