Hi list-members,

I ended up using the following:


   SwDocShell* aShell = mpView->GetDocShell();

SwDocStyleSheetPool* pMyPool = (SwDocStyleSheetPool*)(aShell->GetStyleSheetPool()); SwStyleSheetIterator* styleIter = new SwStyleSheetIterator(pMyPool, SFX_STYLE_FAMILY_PAGE );
   SfxStyleSheetBase* pDefaultStyle = styleIter->First();
   if (pDefaultStyle)
{ SfxItemSet aAttrSet = pDefaultStyle->GetItemSet(); meAttrDir = (SvxFrameDirection)((const SvxFrameDirectionItem&) aAttrSet.Get( RES_FRAMEDIR )).GetValue(); meAdj = (SvxAdjust)((const SvxAdjustItem&) aAttrSet.Get( RES_PARATR_ADJUST )).GetAdjust();
   }

Alan


Alan Yaniger wrote:

Hi list-members,


How do I get the default text direction for the document from the SwMargin code in sw/source/ui/docvw/postit.cxx?


Thanks,

Alan



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to