On 05/04/2011 20:33, Bartosz wrote: > I'm working on feature to display/edit nonprintable characters at the end of > line (http://openoffice.org/bugzilla/show_bug.cgi?id=20878). > > I have almost finished my work, and I think the results are promising. > I created screenshot to show how it is works in practice (see > ooo_with_fix2.png). > The nonprintable characters is displayed till the end of right page margins. > > Do you think this general behaviour is good? > For my collegues it was most frutrating thing in OO.o when they began work > with OO.o. > > This path works only with "Align Left", and should be disabled on other align > (right, centered and maybe on Justified).
it looks like a step in the right direction :) > Do you know where is stored current align of the paragraph? > This information is crucial for my further work. the SwTxtNode has a SwAttrSet member mpAttrSet. this contains all formatting properties that apply to the entire paragraph. the properties are implemented as SfxPoolItems. the alignment property WhichId is RES_PARATR_ADJUST. it is implemented in class SvxAdjustItem (editeng/inc/editeng/adjitem.hxx) so you should get it from pTxtNode->GetAttr(RES_PARATR_ADJUST, true) grep says that SwTxtMargin::CtorInitTxtMargin() does something with SvxAdjustItem... > If I finish this work, is it possible to add this patch to OpenOffice.org ? yes. provided it survives a review by od :) > Thanks in advance > Bartosz-- -- "I think there's a reasonable case to be made for the proposition that I, personally, am Spock with a beard." -- Paul Krugman -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help
