summaryrefslogtreecommitdiff
path: root/sc/source/core/data/attrib.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:04:43 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:04:43 +0200
commitb4e4583b94e78d6e81ab07894cfc0e99cefa33c1 (patch)
tree26e22c8ab20d2c38bc88dfcc041c8143e0609557 /sc/source/core/data/attrib.cxx
parent69bb367315288b644439dc46d34743a2575a3527 (diff)
recreated tag libreoffice-3.3.1.1 which had these commits:
commit 8964ceb596c66db5e9677de1ad99f9747342b87b (tag: refs/tags/libreoffice-3.3.1.1) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Feb 8 18:07:42 2011 +0100 Version 3.3.1.1, tag libreoffice-3.3.1.1 (3.3.1-rc1) commit 737b6a92adca9a8285370918671b93b56a028537 Author: Jan Holesovsky <kendy@suse.cz> Date: Mon Feb 7 21:23:21 2011 +0100 Branch libreoffice-3-3-1 This is 'libreoffice-3-3-1' - the stable branch for the 3.3.1 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master. commit d4d6a678bf169eebee2fe4d71c8ec66de6898d6e Author: Jani Monoses <jani.monoses@canonical.com> Date: Thu Jan 27 15:33:06 2011 +0200 Remove unused declaration Signed-off-by: Michael Meeks <michael.meeks@novell.com> sc/source/core/tool/token.cxx | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 96bee1507119ca0525845022019d90f0694996aa Author: Kohei Yoshida <kyoshida@novell.com> Date: Thu Jan 20 23:44:52 2011 -0500 Fixed incorrect page number in page preview mode. (fdo#33155) When the window is large enough to show several 'Page X' strings, the page number was not properly incremented. This commit fixes it. sc/source/ui/view/gridwin4.cxx | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) commit ed46df1fcb5869818f5f74e0c7a5b19c65102e83 Author: Kohei Yoshida <kyoshida@novell.com> Date: Wed Jan 19 00:24:24 2011 -0500 Fixed incorrect import of cell attributes from Excel documents. When a cell with non-default formatting attribute starts with non-first row in a column, the filter would incorrectly apply the same format to all the cells above it if they didn't have any formats. This commit fixes it. sc/source/filter/excel/xistyle.cxx | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit af63319fcdeea3f9b5018eab83ef5a9e64905446 Author: Kohei Yoshida <kyoshida@novell.com> Date: Thu Jan 13 11:18:07 2011 -0500 Reverting the merge commit 0fe55349b05fae496a86a3fa958d184f0453916c. I created a patch between before and after the merge commit, and reverse-applied it. This is because if you revert a merge commit in git you are denying all future merges from that branch. I wasn't sure if we really wanted that. Signed-off-by: Petr Mladek <pmladek@suse.cz> sc/inc/document.hxx | 22 +------ sc/inc/drwlayer.hxx | 2 +- sc/inc/table.hxx | 16 +----- sc/source/core/data/document.cxx | 7 +-- sc/source/core/data/drwlayer.cxx | 6 +- sc/source/core/data/table1.cxx | 38 ++++-------- sc/source/core/data/table2.cxx | 91 ++++++------------------------ sc/source/core/data/table3.cxx | 71 +---------------------- sc/source/filter/xml/xmlrowi.cxx | 17 +---- sc/source/ui/docshell/externalrefmgr.cxx | 7 +- sc/source/ui/view/dbfunc.cxx | 5 +- sc/source/ui/view/tabvwshe.cxx | 4 +- 12 files changed, 52 insertions(+), 234 deletions(-) commit 5ada5635cff38af87830b091b36159cf80e4cf5d Author: Kohei Yoshida <kyoshida@novell.com> Date: Thu Jan 13 11:04:14 2011 -0500 Revert "This is also part of the merge." This reverts commit 0fe55349b05fae496a86a3fa958d184f0453916c. Signed-off-by: Petr Mladek <pmladek@suse.cz> sc/source/core/data/table3.cxx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit c900e3db767518b7a60eaf24bdf298c94315f685 Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 23:05:56 2011 +0100 Please, ignore the previous message; it was for the libreoffice-3-3-0 branch This is 'libreoffice-3-3' - the stable branch for the 3.3.x releases. Only safe changes, reviewed by anoter person are allowed. If you want to build something cool, unstable, and risky, use master. commit 15d298ba7c4e89b043b3077e17747ba027a62c43 Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:39:06 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
split repo tag: calc_libreoffice-3.3.1.1 split repo tag: calc_libreoffice-3.3.1.2
Diffstat (limited to 'sc/source/core/data/attrib.cxx')
-rw-r--r--sc/source/core/data/attrib.cxx136
1 files changed, 68 insertions, 68 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index 7924b4e2612f..6e11a8dfdfc7 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,30 +54,30 @@
#include "sc.hrc"
#include "globstr.hrc"
-#include "textuno.hxx" // ScHeaderFooterContentObj
+#include "textuno.hxx" // ScHeaderFooterContentObj
using namespace com::sun::star;
//------------------------------------------------------------------------
-TYPEINIT1(ScMergeAttr, SfxPoolItem);
+TYPEINIT1(ScMergeAttr, SfxPoolItem);
TYPEINIT1_AUTOFACTORY(ScProtectionAttr, SfxPoolItem);
-TYPEINIT1(ScRangeItem, SfxPoolItem);
-TYPEINIT1(ScTableListItem, SfxPoolItem);
-TYPEINIT1(ScPageHFItem, SfxPoolItem);
+TYPEINIT1(ScRangeItem, SfxPoolItem);
+TYPEINIT1(ScTableListItem, SfxPoolItem);
+TYPEINIT1(ScPageHFItem, SfxPoolItem);
TYPEINIT1(ScViewObjectModeItem, SfxEnumItem);
-TYPEINIT1(ScDoubleItem, SfxPoolItem);
+TYPEINIT1(ScDoubleItem, SfxPoolItem);
TYPEINIT1(ScPageScaleToItem, SfxPoolItem);
//------------------------------------------------------------------------
//
-// allgemeine Hilfsfunktionen
+// allgemeine Hilfsfunktionen
//
BOOL ScHasPriority( const SvxBorderLine* pThis, const SvxBorderLine* pOther )
{
-// DBG_ASSERT( pThis || pOther, "LineAttr == 0" );
+// DBG_ASSERT( pThis || pOther, "LineAttr == 0" );
if (!pThis)
return FALSE;
@@ -99,14 +99,14 @@ BOOL ScHasPriority( const SvxBorderLine* pThis, const SvxBorderLine* pOther )
return FALSE;
else
{
- return TRUE; //! ???
+ return TRUE; //! ???
}
}
}
//
-// Item - Implementierungen
+// Item - Implementierungen
//
//------------------------------------------------------------------------
@@ -173,8 +173,8 @@ SfxPoolItem* ScMergeAttr::Clone( SfxItemPool * ) const
SfxPoolItem* ScMergeAttr::Create( SvStream& rStream, USHORT /* nVer */ ) const
{
- INT16 nCol;
- INT16 nRow;
+ INT16 nCol;
+ INT16 nRow;
rStream >> nCol;
rStream >> nRow;
return new ScMergeAttr(static_cast<SCCOL>(nCol),static_cast<SCROW>(nRow));
@@ -232,8 +232,8 @@ ScProtectionAttr::ScProtectionAttr(const ScProtectionAttr& rItem):
{
bProtection = rItem.bProtection;
bHideFormula = rItem.bHideFormula;
- bHideCell = rItem.bHideCell;
- bHidePrint = rItem.bHidePrint;
+ bHideCell = rItem.bHideCell;
+ bHidePrint = rItem.bHidePrint;
}
ScProtectionAttr::~ScProtectionAttr()
@@ -321,11 +321,11 @@ String ScProtectionAttr::GetValueText() const
String aStrNo ( ScGlobal::GetRscString(STR_NO) );
sal_Unicode cDelim = ',';
- aValue = '(';
- aValue += (bProtection ? aStrYes : aStrNo); aValue += cDelim;
- aValue += (bHideFormula ? aStrYes : aStrNo); aValue += cDelim;
- aValue += (bHideCell ? aStrYes : aStrNo); aValue += cDelim;
- aValue += (bHidePrint ? aStrYes : aStrNo);
+ aValue = '(';
+ aValue += (bProtection ? aStrYes : aStrNo); aValue += cDelim;
+ aValue += (bHideFormula ? aStrYes : aStrNo); aValue += cDelim;
+ aValue += (bHideCell ? aStrYes : aStrNo); aValue += cDelim;
+ aValue += (bHidePrint ? aStrYes : aStrNo);
aValue += ')';
return aValue;
@@ -342,9 +342,9 @@ SfxItemPresentation ScProtectionAttr::GetPresentation
const IntlWrapper* /* pIntl */
) const
{
- String aStrYes ( ScGlobal::GetRscString(STR_YES) );
- String aStrNo ( ScGlobal::GetRscString(STR_NO) );
- String aStrSep = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM( ": " ));
+ String aStrYes ( ScGlobal::GetRscString(STR_YES) );
+ String aStrNo ( ScGlobal::GetRscString(STR_NO) );
+ String aStrSep = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM( ": " ));
String aStrDelim = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM( ", " ));
switch ( ePres )
@@ -359,12 +359,12 @@ SfxItemPresentation ScProtectionAttr::GetPresentation
case SFX_ITEM_PRESENTATION_COMPLETE:
rText = ScGlobal::GetRscString(STR_PROTECTION); rText += aStrSep;
- rText += (bProtection ? aStrYes : aStrNo); rText += aStrDelim;
- rText += ScGlobal::GetRscString(STR_FORMULAS); rText += aStrSep;
- rText += (!bHideFormula ? aStrYes : aStrNo); rText += aStrDelim;
- rText += ScGlobal::GetRscString(STR_HIDE); rText += aStrSep;
- rText += (bHideCell ? aStrYes : aStrNo); rText += aStrDelim;
- rText += ScGlobal::GetRscString(STR_PRINT); rText += aStrSep;
+ rText += (bProtection ? aStrYes : aStrNo); rText += aStrDelim;
+ rText += ScGlobal::GetRscString(STR_FORMULAS); rText += aStrSep;
+ rText += (!bHideFormula ? aStrYes : aStrNo); rText += aStrDelim;
+ rText += ScGlobal::GetRscString(STR_HIDE); rText += aStrSep;
+ rText += (bHideCell ? aStrYes : aStrNo); rText += aStrDelim;
+ rText += ScGlobal::GetRscString(STR_PRINT); rText += aStrSep;
rText += (!bHidePrint ? aStrYes : aStrNo);
break;
@@ -444,7 +444,7 @@ BOOL ScProtectionAttr::SetHidePrint( BOOL bHPrint)
}
// -----------------------------------------------------------------------
-// ScRangeItem - Tabellenbereich
+// ScRangeItem - Tabellenbereich
// -----------------------------------------------------------------------
int ScRangeItem::operator==( const SfxPoolItem& rAttr ) const
@@ -468,7 +468,7 @@ SfxItemPresentation ScRangeItem::GetPresentation
SfxItemPresentation ePres,
SfxMapUnit /* eCoreUnit */,
SfxMapUnit /* ePresUnit */,
- String& rText,
+ String& rText,
const IntlWrapper* /* pIntl */
) const
{
@@ -479,7 +479,7 @@ SfxItemPresentation ScRangeItem::GetPresentation
case SFX_ITEM_PRESENTATION_COMPLETE:
rText = ScGlobal::GetRscString(STR_AREA);
rText.AppendAscii(RTL_CONSTASCII_STRINGPARAM( ": " ));
-// break;// Durchfallen !!!
+// break;// Durchfallen !!!
case SFX_ITEM_PRESENTATION_NAMELESS:
{
@@ -500,12 +500,12 @@ SfxItemPresentation ScRangeItem::GetPresentation
}
// -----------------------------------------------------------------------
-// ScTableListItem - Liste von Tabellen(-nummern)
+// ScTableListItem - Liste von Tabellen(-nummern)
// -----------------------------------------------------------------------
ScTableListItem::ScTableListItem( const ScTableListItem& rCpy )
- : SfxPoolItem ( rCpy.Which() ),
- nCount ( rCpy.nCount )
+ : SfxPoolItem ( rCpy.Which() ),
+ nCount ( rCpy.nCount )
{
if ( nCount > 0 )
{
@@ -552,12 +552,12 @@ int ScTableListItem::operator==( const SfxPoolItem& rAttr ) const
{
DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" );
- ScTableListItem& rCmp = (ScTableListItem&)rAttr;
- BOOL bEqual = (nCount == rCmp.nCount);
+ ScTableListItem& rCmp = (ScTableListItem&)rAttr;
+ BOOL bEqual = (nCount == rCmp.nCount);
if ( nCount > 0 )
{
- USHORT i=0;
+ USHORT i=0;
bEqual = ( pTabArr && rCmp.pTabArr );
@@ -582,9 +582,9 @@ SfxPoolItem* ScTableListItem::Clone( SfxItemPool* ) const
SfxItemPresentation ScTableListItem::GetPresentation
(
SfxItemPresentation ePres,
- SfxMapUnit /* eCoreUnit */,
- SfxMapUnit /* ePresUnit */,
- String& rText,
+ SfxMapUnit /* eCoreUnit */,
+ SfxMapUnit /* ePresUnit */,
+ String& rText,
const IntlWrapper* /* pIntl */
) const
{
@@ -630,19 +630,19 @@ SfxItemPresentation ScTableListItem::GetPresentation
ScPageHFItem::ScPageHFItem( USHORT nWhichP )
: SfxPoolItem ( nWhichP ),
- pLeftArea ( NULL ),
+ pLeftArea ( NULL ),
pCenterArea ( NULL ),
- pRightArea ( NULL )
+ pRightArea ( NULL )
{
}
//------------------------------------------------------------------------
ScPageHFItem::ScPageHFItem( const ScPageHFItem& rItem )
- : SfxPoolItem ( rItem ),
- pLeftArea ( NULL ),
+ : SfxPoolItem ( rItem ),
+ pLeftArea ( NULL ),
pCenterArea ( NULL ),
- pRightArea ( NULL )
+ pRightArea ( NULL )
{
if ( rItem.pLeftArea )
pLeftArea = rItem.pLeftArea->Clone();
@@ -734,7 +734,7 @@ int ScPageHFItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
- const ScPageHFItem& r = (const ScPageHFItem&)rItem;
+ const ScPageHFItem& r = (const ScPageHFItem&)rItem;
return ScGlobal::EETextObjEqual(pLeftArea, r.pLeftArea)
&& ScGlobal::EETextObjEqual(pCenterArea, r.pCenterArea)
@@ -808,13 +808,13 @@ BOOL lcl_ConvertFields(EditEngine& rEng, const String* pCommands)
return bChange;
}
-#define SC_FIELD_COUNT 6
+#define SC_FIELD_COUNT 6
SfxPoolItem* ScPageHFItem::Create( SvStream& rStream, USHORT nVer ) const
{
- EditTextObject* pLeft = EditTextObject::Create(rStream);
+ EditTextObject* pLeft = EditTextObject::Create(rStream);
EditTextObject* pCenter = EditTextObject::Create(rStream);
- EditTextObject* pRight = EditTextObject::Create(rStream);
+ EditTextObject* pRight = EditTextObject::Create(rStream);
DBG_ASSERT( pLeft && pCenter && pRight, "Error reading ScPageHFItem" );
@@ -822,9 +822,9 @@ SfxPoolItem* ScPageHFItem::Create( SvStream& rStream, USHORT nVer ) const
pCenter == NULL || pCenter->GetParagraphCount() == 0 ||
pRight == NULL || pRight->GetParagraphCount() == 0 )
{
- // If successfully loaded, each object contains at least one paragraph.
- // Excel import in 5.1 created broken TextObjects (#67442#) that are
- // corrected here to avoid saving wrong files again (#90487#).
+ // If successfully loaded, each object contains at least one paragraph.
+ // Excel import in 5.1 created broken TextObjects (#67442#) that are
+ // corrected here to avoid saving wrong files again (#90487#).
ScEditEngineDefaulter aEngine( EditEngine::CreatePool(), TRUE );
if ( pLeft == NULL || pLeft->GetParagraphCount() == 0 )
@@ -844,7 +844,7 @@ SfxPoolItem* ScPageHFItem::Create( SvStream& rStream, USHORT nVer ) const
}
}
- if ( nVer < 1 ) // alte Feldbefehle umsetzen
+ if ( nVer < 1 ) // alte Feldbefehle umsetzen
{
USHORT i;
const String& rDel = ScGlobal::GetRscString( STR_HFCMD_DELIMITER );
@@ -881,11 +881,11 @@ SfxPoolItem* ScPageHFItem::Create( SvStream& rStream, USHORT nVer ) const
}
}
else if ( nVer < 2 )
- { // nichts tun, SvxFileField nicht gegen SvxExtFileField austauschen
+ { // nichts tun, SvxFileField nicht gegen SvxExtFileField austauschen
}
ScPageHFItem* pItem = new ScPageHFItem( Which() );
- pItem->SetArea( pLeft, SC_HF_LEFTAREA );
+ pItem->SetArea( pLeft, SC_HF_LEFTAREA );
pItem->SetArea( pCenter, SC_HF_CENTERAREA );
pItem->SetArea( pRight, SC_HF_RIGHTAREA );
@@ -921,16 +921,16 @@ void ScPageHFItem::SetArea( EditTextObject *pNew, int nArea )
{
switch ( nArea )
{
- case SC_HF_LEFTAREA: delete pLeftArea; pLeftArea = pNew; break;
+ case SC_HF_LEFTAREA: delete pLeftArea; pLeftArea = pNew; break;
case SC_HF_CENTERAREA: delete pCenterArea; pCenterArea = pNew; break;
- case SC_HF_RIGHTAREA: delete pRightArea; pRightArea = pNew; break;
+ case SC_HF_RIGHTAREA: delete pRightArea; pRightArea = pNew; break;
default:
DBG_ERROR( "New Area?" );
}
}
//-----------------------------------------------------------------------
-// ScViewObjectModeItem - Darstellungsmodus von ViewObjekten
+// ScViewObjectModeItem - Darstellungsmodus von ViewObjekten
//-----------------------------------------------------------------------
ScViewObjectModeItem::ScViewObjectModeItem( USHORT nWhichP )
@@ -958,11 +958,11 @@ SfxItemPresentation ScViewObjectModeItem::GetPresentation
SfxItemPresentation ePres,
SfxMapUnit /* eCoreUnit */,
SfxMapUnit /* ePresUnit */,
- String& rText,
+ String& rText,
const IntlWrapper* /* pIntl */
-) const
+) const
{
- String aDel = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(": "));
+ String aDel = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(": "));
rText.Erase();
switch ( ePres )
@@ -989,7 +989,7 @@ SfxItemPresentation ScViewObjectModeItem::GetPresentation
ePres = SFX_ITEM_PRESENTATION_NAMELESS;//das geht immer!
break;
}
-// break; // DURCHFALLEN!!!
+// break; // DURCHFALLEN!!!
case SFX_ITEM_PRESENTATION_NAMELESS:
rText += ScGlobal::GetRscString(STR_VOBJ_MODE_SHOW+GetValue());
@@ -1037,8 +1037,8 @@ USHORT ScViewObjectModeItem::GetVersion( USHORT /* nFileVersion */ ) const
//------------------------------------------------------------------------
SfxPoolItem* ScViewObjectModeItem::Create(
- SvStream& rStream,
- USHORT nVersion ) const
+ SvStream& rStream,
+ USHORT nVersion ) const
{
if ( nVersion == 0 )
{
@@ -1058,19 +1058,19 @@ SfxPoolItem* ScViewObjectModeItem::Create(
}
// -----------------------------------------------------------------------
-// double
+// double
// -----------------------------------------------------------------------
ScDoubleItem::ScDoubleItem( USHORT nWhichP, double nVal )
: SfxPoolItem ( nWhichP ),
- nValue ( nVal )
+ nValue ( nVal )
{
}
//------------------------------------------------------------------------
ScDoubleItem::ScDoubleItem( const ScDoubleItem& rItem )
- : SfxPoolItem ( rItem )
+ : SfxPoolItem ( rItem )
{
nValue = rItem.nValue;
}