diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /sc/source/core/data/attrib.cxx | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/attrib.cxx')
-rw-r--r-- | sc/source/core/data/attrib.cxx | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx index d6d3b4f125bc..d47a519b47da 100644 --- a/sc/source/core/data/attrib.cxx +++ b/sc/source/core/data/attrib.cxx @@ -41,7 +41,7 @@ using namespace com::sun::star; -//------------------------------------------------------------------------ + TYPEINIT1(ScMergeAttr, SfxPoolItem); TYPEINIT1_AUTOFACTORY(ScProtectionAttr, SfxPoolItem); @@ -53,7 +53,7 @@ TYPEINIT1(ScDoubleItem, SfxPoolItem); TYPEINIT1(ScPageScaleToItem, SfxPoolItem); TYPEINIT1(ScCondFormatItem, SfxPoolItem); -//------------------------------------------------------------------------ + // // General Help Function @@ -92,9 +92,9 @@ bool ScHasPriority( const ::editeng::SvxBorderLine* pThis, const ::editeng::SvxB // Item - Implementierungen // -//------------------------------------------------------------------------ + // Merge -//------------------------------------------------------------------------ + ScMergeAttr::ScMergeAttr(): SfxPoolItem(ATTR_MERGE), @@ -102,7 +102,7 @@ ScMergeAttr::ScMergeAttr(): nRowMerge(0) {} -//------------------------------------------------------------------------ + ScMergeAttr::ScMergeAttr( SCsCOL nCol, SCsROW nRow): SfxPoolItem(ATTR_MERGE), @@ -110,7 +110,7 @@ ScMergeAttr::ScMergeAttr( SCsCOL nCol, SCsROW nRow): nRowMerge(nRow) {} -//------------------------------------------------------------------------ + ScMergeAttr::ScMergeAttr(const ScMergeAttr& rItem): SfxPoolItem(ATTR_MERGE) @@ -123,7 +123,7 @@ ScMergeAttr::~ScMergeAttr() { } -//------------------------------------------------------------------------ + OUString ScMergeAttr::GetValueText() const { @@ -135,7 +135,7 @@ OUString ScMergeAttr::GetValueText() const return aRet; } -//------------------------------------------------------------------------ + bool ScMergeAttr::operator==( const SfxPoolItem& rItem ) const { @@ -145,14 +145,14 @@ bool ScMergeAttr::operator==( const SfxPoolItem& rItem ) const && (nRowMerge == ((ScMergeAttr&)rItem).nRowMerge); } -//------------------------------------------------------------------------ + SfxPoolItem* ScMergeAttr::Clone( SfxItemPool * ) const { return new ScMergeAttr(*this); } -//------------------------------------------------------------------------ + SfxPoolItem* ScMergeAttr::Create( SvStream& rStream, sal_uInt16 /* nVer */ ) const { @@ -163,16 +163,16 @@ SfxPoolItem* ScMergeAttr::Create( SvStream& rStream, sal_uInt16 /* nVer */ ) con return new ScMergeAttr(static_cast<SCCOL>(nCol),static_cast<SCROW>(nRow)); } -//------------------------------------------------------------------------ + // MergeFlag -//------------------------------------------------------------------------ + ScMergeFlagAttr::ScMergeFlagAttr(): SfxInt16Item(ATTR_MERGE_FLAG, 0) { } -//------------------------------------------------------------------------ + ScMergeFlagAttr::ScMergeFlagAttr(sal_Int16 nFlags): SfxInt16Item(ATTR_MERGE_FLAG, nFlags) @@ -193,9 +193,9 @@ bool ScMergeFlagAttr::HasPivotPopupButton() const return (GetValue() & SC_MF_BUTTON_POPUP) != 0; } -//------------------------------------------------------------------------ + // Protection -//------------------------------------------------------------------------ + ScProtectionAttr::ScProtectionAttr(): SfxPoolItem(ATTR_PROTECTION), @@ -206,7 +206,7 @@ ScProtectionAttr::ScProtectionAttr(): { } -//------------------------------------------------------------------------ + ScProtectionAttr::ScProtectionAttr( bool bProtect, bool bHFormula, bool bHCell, bool bHPrint): @@ -218,7 +218,7 @@ ScProtectionAttr::ScProtectionAttr( bool bProtect, bool bHFormula, { } -//------------------------------------------------------------------------ + ScProtectionAttr::ScProtectionAttr(const ScProtectionAttr& rItem): SfxPoolItem(ATTR_PROTECTION) @@ -233,7 +233,7 @@ ScProtectionAttr::~ScProtectionAttr() { } -//------------------------------------------------------------------------ + bool ScProtectionAttr::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const { @@ -305,7 +305,7 @@ bool ScProtectionAttr::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) return bRet; } -//------------------------------------------------------------------------ + OUString ScProtectionAttr::GetValueText() const { @@ -325,7 +325,7 @@ OUString ScProtectionAttr::GetValueText() const return aValue; } -//------------------------------------------------------------------------ + SfxItemPresentation ScProtectionAttr::GetPresentation ( @@ -374,7 +374,7 @@ SfxItemPresentation ScProtectionAttr::GetPresentation return ePres; } -//------------------------------------------------------------------------ + bool ScProtectionAttr::operator==( const SfxPoolItem& rItem ) const { @@ -386,14 +386,14 @@ bool ScProtectionAttr::operator==( const SfxPoolItem& rItem ) const && (bHidePrint == ((ScProtectionAttr&)rItem).bHidePrint); } -//------------------------------------------------------------------------ + SfxPoolItem* ScProtectionAttr::Clone( SfxItemPool * ) const { return new ScProtectionAttr(*this); } -//------------------------------------------------------------------------ + SfxPoolItem* ScProtectionAttr::Create( SvStream& rStream, sal_uInt16 /* n */ ) const { @@ -410,7 +410,7 @@ SfxPoolItem* ScProtectionAttr::Create( SvStream& rStream, sal_uInt16 /* n */ ) c return new ScProtectionAttr(bProtect,bHFormula,bHCell,bHPrint); } -//------------------------------------------------------------------------ + bool ScProtectionAttr::SetProtection( bool bProtect) { @@ -418,7 +418,7 @@ bool ScProtectionAttr::SetProtection( bool bProtect) return true; } -//------------------------------------------------------------------------ + bool ScProtectionAttr::SetHideFormula( bool bHFormula) { @@ -426,7 +426,7 @@ bool ScProtectionAttr::SetHideFormula( bool bHFormula) return true; } -//------------------------------------------------------------------------ + bool ScProtectionAttr::SetHideCell( bool bHCell) { @@ -434,7 +434,7 @@ bool ScProtectionAttr::SetHideCell( bool bHCell) return true; } -//------------------------------------------------------------------------ + bool ScProtectionAttr::SetHidePrint( bool bHPrint) { @@ -442,9 +442,9 @@ bool ScProtectionAttr::SetHidePrint( bool bHPrint) return true; } -// ----------------------------------------------------------------------- + // ScRangeItem - Tabellenbereich -// ----------------------------------------------------------------------- + bool ScRangeItem::operator==( const SfxPoolItem& rAttr ) const { @@ -453,14 +453,14 @@ bool ScRangeItem::operator==( const SfxPoolItem& rAttr ) const return ( aRange == ( (ScRangeItem&)rAttr ).aRange ); } -// ----------------------------------------------------------------------- + SfxPoolItem* ScRangeItem::Clone( SfxItemPool* ) const { return new ScRangeItem( *this ); } -//------------------------------------------------------------------------ + SfxItemPresentation ScRangeItem::GetPresentation ( @@ -495,9 +495,9 @@ SfxItemPresentation ScRangeItem::GetPresentation return ePres; } -// ----------------------------------------------------------------------- + // ScTableListItem - List from Tables (-numbers) -// ----------------------------------------------------------------------- + ScTableListItem::ScTableListItem( const ScTableListItem& rCpy ) : SfxPoolItem ( rCpy.Which() ), @@ -514,7 +514,7 @@ ScTableListItem::ScTableListItem( const ScTableListItem& rCpy ) pTabArr = NULL; } -// ----------------------------------------------------------------------- + ScTableListItem::~ScTableListItem() @@ -522,7 +522,7 @@ ScTableListItem::~ScTableListItem() delete [] pTabArr; } -// ----------------------------------------------------------------------- + ScTableListItem& ScTableListItem::operator=( const ScTableListItem& rCpy ) { @@ -542,7 +542,7 @@ ScTableListItem& ScTableListItem::operator=( const ScTableListItem& rCpy ) return *this; } -// ----------------------------------------------------------------------- + bool ScTableListItem::operator==( const SfxPoolItem& rAttr ) const { @@ -566,14 +566,14 @@ bool ScTableListItem::operator==( const SfxPoolItem& rAttr ) const return bEqual; } -// ----------------------------------------------------------------------- + SfxPoolItem* ScTableListItem::Clone( SfxItemPool* ) const { return new ScTableListItem( *this ); } -//------------------------------------------------------------------------ + SfxItemPresentation ScTableListItem::GetPresentation ( @@ -618,9 +618,9 @@ SfxItemPresentation ScTableListItem::GetPresentation } -// ----------------------------------------------------------------------- + // ScPageHFItem - Dates from the Head and Foot lines -// ----------------------------------------------------------------------- + ScPageHFItem::ScPageHFItem( sal_uInt16 nWhichP ) : SfxPoolItem ( nWhichP ), @@ -630,7 +630,7 @@ ScPageHFItem::ScPageHFItem( sal_uInt16 nWhichP ) { } -//------------------------------------------------------------------------ + ScPageHFItem::ScPageHFItem( const ScPageHFItem& rItem ) : SfxPoolItem ( rItem ), @@ -646,7 +646,7 @@ ScPageHFItem::ScPageHFItem( const ScPageHFItem& rItem ) pRightArea = rItem.pRightArea->Clone(); } -//------------------------------------------------------------------------ + ScPageHFItem::~ScPageHFItem() { @@ -655,7 +655,7 @@ ScPageHFItem::~ScPageHFItem() delete pRightArea; } -//------------------------------------------------------------------------ + bool ScPageHFItem::QueryValue( uno::Any& rVal, sal_uInt8 /* nMemberId */ ) const { @@ -715,14 +715,14 @@ bool ScPageHFItem::PutValue( const uno::Any& rVal, sal_uInt8 /* nMemberId */ ) return true; } -//------------------------------------------------------------------------ + OUString ScPageHFItem::GetValueText() const { return OUString("ScPageHFItem"); } -//------------------------------------------------------------------------ + bool ScPageHFItem::operator==( const SfxPoolItem& rItem ) const { @@ -735,14 +735,14 @@ bool ScPageHFItem::operator==( const SfxPoolItem& rItem ) const && ScGlobal::EETextObjEqual(pRightArea, r.pRightArea); } -//------------------------------------------------------------------------ + SfxPoolItem* ScPageHFItem::Clone( SfxItemPool* ) const { return new ScPageHFItem( *this ); } -//------------------------------------------------------------------------ + static void lcl_SetSpace( OUString& rStr, const ESelection& rSel ) { @@ -885,7 +885,7 @@ SfxPoolItem* ScPageHFItem::Create( SvStream& rStream, sal_uInt16 nVer ) const return pItem; } -//------------------------------------------------------------------------ + void ScPageHFItem::SetLeftArea( const EditTextObject& rNew ) @@ -894,7 +894,7 @@ void ScPageHFItem::SetLeftArea( const EditTextObject& rNew ) pLeftArea = rNew.Clone(); } -//------------------------------------------------------------------------ + void ScPageHFItem::SetCenterArea( const EditTextObject& rNew ) { @@ -902,7 +902,7 @@ void ScPageHFItem::SetCenterArea( const EditTextObject& rNew ) pCenterArea = rNew.Clone(); } -//------------------------------------------------------------------------ + void ScPageHFItem::SetRightArea( const EditTextObject& rNew ) { @@ -922,29 +922,29 @@ void ScPageHFItem::SetArea( EditTextObject *pNew, int nArea ) } } -//----------------------------------------------------------------------- + // ScViewObjectModeItem - Display Mode of View Objects -//----------------------------------------------------------------------- + ScViewObjectModeItem::ScViewObjectModeItem( sal_uInt16 nWhichP ) : SfxEnumItem( nWhichP, VOBJ_MODE_SHOW ) { } -//------------------------------------------------------------------------ + ScViewObjectModeItem::ScViewObjectModeItem( sal_uInt16 nWhichP, ScVObjMode eMode ) : SfxEnumItem( nWhichP, sal::static_int_cast<sal_uInt16>(eMode) ) { } -//------------------------------------------------------------------------ + ScViewObjectModeItem::~ScViewObjectModeItem() { } -//------------------------------------------------------------------------ + SfxItemPresentation ScViewObjectModeItem::GetPresentation ( @@ -994,7 +994,7 @@ SfxItemPresentation ScViewObjectModeItem::GetPresentation return ePres; } -//------------------------------------------------------------------------ + OUString ScViewObjectModeItem::GetValueText( sal_uInt16 nVal ) const { @@ -1003,28 +1003,28 @@ OUString ScViewObjectModeItem::GetValueText( sal_uInt16 nVal ) const return ScGlobal::GetRscString( STR_VOBJ_MODE_SHOW + (nVal % 2)); } -//------------------------------------------------------------------------ + sal_uInt16 ScViewObjectModeItem::GetValueCount() const { return 2; } -//------------------------------------------------------------------------ + SfxPoolItem* ScViewObjectModeItem::Clone( SfxItemPool* ) const { return new ScViewObjectModeItem( *this ); } -//------------------------------------------------------------------------ + sal_uInt16 ScViewObjectModeItem::GetVersion( sal_uInt16 /* nFileVersion */ ) const { return 1; } -//------------------------------------------------------------------------ + SfxPoolItem* ScViewObjectModeItem::Create( SvStream& rStream, @@ -1047,9 +1047,9 @@ SfxPoolItem* ScViewObjectModeItem::Create( } } -// ----------------------------------------------------------------------- + // double -// ----------------------------------------------------------------------- + ScDoubleItem::ScDoubleItem( sal_uInt16 nWhichP, double nVal ) : SfxPoolItem ( nWhichP ), @@ -1057,7 +1057,7 @@ ScDoubleItem::ScDoubleItem( sal_uInt16 nWhichP, double nVal ) { } -//------------------------------------------------------------------------ + ScDoubleItem::ScDoubleItem( const ScDoubleItem& rItem ) : SfxPoolItem ( rItem ) @@ -1065,14 +1065,14 @@ ScDoubleItem::ScDoubleItem( const ScDoubleItem& rItem ) nValue = rItem.nValue; } -//------------------------------------------------------------------------ + OUString ScDoubleItem::GetValueText() const { return OUString("ScDoubleItem"); } -//------------------------------------------------------------------------ + bool ScDoubleItem::operator==( const SfxPoolItem& rItem ) const { @@ -1081,14 +1081,14 @@ bool ScDoubleItem::operator==( const SfxPoolItem& rItem ) const return nValue == _rItem.nValue; } -//------------------------------------------------------------------------ + SfxPoolItem* ScDoubleItem::Clone( SfxItemPool* ) const { return new ScDoubleItem( *this ); } -//------------------------------------------------------------------------ + SfxPoolItem* ScDoubleItem::Create( SvStream& rStream, sal_uInt16 /* nVer */ ) const { @@ -1100,7 +1100,7 @@ SfxPoolItem* ScDoubleItem::Create( SvStream& rStream, sal_uInt16 /* nVer */ ) co return pItem; } -//------------------------------------------------------------------------ + ScDoubleItem::~ScDoubleItem() { |