You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/01/03 15:45:33 UTC

[Bug 75048] XStyleLoader - user defined number formats are not imported

https://issues.apache.org/ooo/show_bug.cgi?id=75048

Tan Li <li...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |litan.test@gmail.com

--- Comment #8 from Tan Li <li...@gmail.com> ---
Hi,
Standard currency format for style "MyCellStyle" could be transferred
correctly, which is same as standard number format could be. But neither user
defined number/currency format could be transfered. When right click
"MyCellStyle" and "modify", this will call
"pTabViewShell->MakeNumberInfoItem(...)", but number format properties is lost.
And ScStyleSheetPool::Make(...) create StyleSheet is always without setting
format. So it should be lost by SfxItemSet copy during move "MyCellStyle"
between document. As "rNewSheet.GetItemSet().Set(pHisSheet->GetItemSet())" in
SfxObjectShell::Insert. SvxNumberInfoItem is for number format, its nWhich is
10086, and need further knowledge of SfxItemSet, SfxItemPool, and SfxPoolItem
to fix this issue.
stack as below,
      > sfx.dll!SfxObjectShell::Insert(SfxObjectShell & rSource={...}, unsigned
short nSourceIdx1=0, unsigned short nSourceIdx2=3, unsigned short
__formal=65535, unsigned short & nIdx1=0, unsigned short & nIdx2=1, unsigned
short __formal=65535, unsigned short __formal=65535)  Line 605    C++
    sc.dll!ScDocShell::Insert(SfxObjectShell & rSource={...}, unsigned short
nSourceIdx1=0, unsigned short nSourceIdx2=3, unsigned short nSourceIdx3=65535,
unsigned short & nIdx1=0, unsigned short & nIdx2=1, unsigned short &
nIdx3=65535, unsigned short & rIdxDeleted=65535)  Line 354 + 0x2c bytes    C++
     sfx.dll!SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *
pSourceBox=0x0b0ba0cc, SvLBoxEntry * pSource=0x0b0af098, SvLBoxEntry *
pTarget=0x0b0a7690, SvLBoxEntry * & pNewParent=0x00000000, unsigned long &
rIdx=4294967295, unsigned char bCopy=0)  Line 722 + 0x79 bytes    C++

-- 
You are receiving this mail because:
You are on the CC list for the bug.