Hi Niklas,

Thanks for your help in this matter. Since I'm new to setting properties, could you give me a little coding guidance here?
Here's how I'm getting a cell's direction:

           ScBaseCell* pCell;
           pDocument->GetCell( nCol, nRow, nTab, pCell );
const ScPatternAttr* pPattern = pDocument->GetPattern( nCol, nRow, nTab ); const SfxItemSet* pCondSet = pDocument->GetCondResult( nCol, nRow, nTab ); const SvxFrameDirectionItem pItem = (const SvxFrameDirectionItem&)pPattern->GetItem( ATTR_WRITINGDIR, pCondSet ); const SvxFrameDirection eCellDir = (SvxFrameDirection)pItem.GetValue();

Is this the way to get the text direction value if I want to change it ?

To change the value, I've been trying to use the function, for example:
           pItem.PutValue( FRMDIR_ENVIRONMENT, ATTR_WRITINGDIR );

but I'm getting the compiler error:
"cannot convert 'this' pointer from 'const SvxFrameDirectionItem' to 'SvxFrameDirectionItem &'"

How do change I the text direction  value?

Thanks once more for your help,
Alan


Niklas Nebel wrote:

for imported Excel files, one might go through the file after importing and apply "Right-to-left" attributes where needed.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to