On Thu, 2009-05-21 at 09:28 +0300, Alan Yaniger wrote:
> Hi list-members,
> 
> 
> I ended up using the following:

I'd guess it depends really on what the purpose is for ?, e.g. there's
already some code around there that uses the UI rtl/ltr setting of
Application::GetSettings().GetLayoutRTL(). So if it was for, say
scrollbars on left/right of the postits, that would seem to be the right
setting to use, i.e. should be the same as the general UI direction I'd
assume.

There's also the getting the direction of the page style currently been
shown in the UI, e.g. something like

if (SwWrtShell *pIsShell = mpView->GetWrtShellPtr())
{
    const SwPageDesc& rDesc =
pIsShell->GetPageDesc( pIsShell->GetCurPageDesc() );
    const SvxFrameDirectionItem& rFrameDir =
rDesc.GetMaster().GetFrmDir();
    ... = rFrameDir.GetValue()
}

Otherwise it might be the direction of the text at the point that the
postit is anchored to, e.g. something like...

SwPosition aPos(...)
nDirection = pDoc->GetTextDirection(aPos);

C.


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

Reply via email to