Lines 2108-2120
void ScInputHandler::EnterHandler( BYTE nBlockMode )
Link Here
|
2108 |
USHORT nParCnt = pEngine->GetParagraphCount(); |
2108 |
USHORT nParCnt = pEngine->GetParagraphCount(); |
2109 |
if ( nParCnt == 0 ) |
2109 |
if ( nParCnt == 0 ) |
2110 |
nParCnt = 1; |
2110 |
nParCnt = 1; |
|
|
2111 |
|
2112 |
bool bUniformAttribs = true; |
2113 |
SfxItemSet aPara1Attribs = pEngine->GetAttribs(0, 0, pEngine->GetTextLen(0)); |
2114 |
for (USHORT nPara = 1; nPara < nParCnt; ++nPara) |
2115 |
{ |
2116 |
SfxItemSet aPara2Attribs = pEngine->GetAttribs(nPara, 0, pEngine->GetTextLen(nPara)); |
2117 |
if (!(aPara1Attribs == aPara2Attribs)) |
2118 |
{ |
2119 |
// paragraph format different from that of the 1st paragraph. |
2120 |
bUniformAttribs = false; |
2121 |
break; |
2122 |
} |
2123 |
} |
2124 |
|
2111 |
ESelection aSel( 0, 0, nParCnt-1, pEngine->GetTextLen(nParCnt-1) ); |
2125 |
ESelection aSel( 0, 0, nParCnt-1, pEngine->GetTextLen(nParCnt-1) ); |
2112 |
SfxItemSet aOldAttribs = pEngine->GetAttribs( aSel ); |
2126 |
SfxItemSet aOldAttribs = pEngine->GetAttribs( aSel ); |
2113 |
const SfxPoolItem* pItem = NULL; |
2127 |
const SfxPoolItem* pItem = NULL; |
2114 |
|
2128 |
|
2115 |
// find common (cell) attributes before RemoveAdjust |
2129 |
// find common (cell) attributes before RemoveAdjust |
2116 |
|
2130 |
|
2117 |
if ( pActiveViewSh ) |
2131 |
if ( pActiveViewSh && bUniformAttribs ) |
2118 |
{ |
2132 |
{ |
2119 |
SfxItemSet* pCommonAttrs = NULL; |
2133 |
SfxItemSet* pCommonAttrs = NULL; |
2120 |
for (USHORT nId = EE_CHAR_START; nId <= EE_CHAR_END; nId++) |
2134 |
for (USHORT nId = EE_CHAR_START; nId <= EE_CHAR_END; nId++) |