diff options
Diffstat (limited to 'sc/source/ui/unoobj/dapiuno.cxx')
-rwxr-xr-x | sc/source/ui/unoobj/dapiuno.cxx | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index c7bf89671161..2812e68314f7 100755 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1,7 +1,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 @@ -221,7 +221,7 @@ GeneralFunction ScDataPilotConversion::FirstFunc( USHORT nBits ) USHORT ScDataPilotConversion::FunctionBit( GeneralFunction eFunc ) { - USHORT nRet = PIVOT_FUNC_NONE; // 0 + USHORT nRet = PIVOT_FUNC_NONE; // 0 switch (eFunc) { case GeneralFunction_SUM: nRet = PIVOT_FUNC_SUM; break; @@ -274,7 +274,7 @@ ScDPObject* lcl_GetDPObject( ScDocShell* pDocShell, SCTAB nTab, const String& rN } } } - return NULL; // nicht gefunden + return NULL; // nicht gefunden } String lcl_CreatePivotName( ScDocShell* pDocShell ) @@ -286,7 +286,7 @@ String lcl_CreatePivotName( ScDocShell* pDocShell ) if ( pColl ) return pColl->CreateNewName(); } - return String(); // sollte nicht vorkommen + return String(); // sollte nicht vorkommen } sal_Int32 lcl_GetObjectIndex( ScDPObject* pDPObj, const ScFieldIdentifier& rFieldId ) @@ -323,12 +323,12 @@ ScDataPilotTablesObj::~ScDataPilotTablesObj() void ScDataPilotTablesObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) { - //! Referenz-Update + //! Referenz-Update if ( rHint.ISA( SfxSimpleHint ) && ((const SfxSimpleHint&)rHint).GetId() == SFX_HINT_DYING ) { - pDocShell = NULL; // ungueltig geworden + pDocShell = NULL; // ungueltig geworden } } @@ -342,9 +342,9 @@ ScDataPilotTableObj* ScDataPilotTablesObj::GetObjectByIndex_Impl( sal_Int32 nInd ScDPCollection* pColl = pDoc->GetDPCollection(); if ( pColl ) { - // count tables on this sheet - // api only handles sheet data at this time - //! allow all data sources!!! + // count tables on this sheet + // api only handles sheet data at this time + //! allow all data sources!!! sal_Int32 nFound = 0; USHORT nCount = pColl->GetCount(); for (USHORT i=0; i<nCount; i++) @@ -468,7 +468,7 @@ void SAL_CALL ScDataPilotTablesObj::removeByName( const OUString& aName ) if (pDPObj && pDocShell) { ScDBDocFunc aFunc(*pDocShell); - aFunc.DataPilotUpdate( pDPObj, NULL, TRUE, TRUE ); // remove - incl. undo etc. + aFunc.DataPilotUpdate( pDPObj, NULL, TRUE, TRUE ); // remove - incl. undo etc. } else throw RuntimeException(); // no other exceptions specified @@ -493,9 +493,9 @@ sal_Int32 SAL_CALL ScDataPilotTablesObj::getCount() throw(RuntimeException) ScDPCollection* pColl = pDoc->GetDPCollection(); if ( pColl ) { - // count tables on this sheet - // api only handles sheet data at this time - //! allow all data sources!!! + // count tables on this sheet + // api only handles sheet data at this time + //! allow all data sources!!! USHORT nFound = 0; USHORT nCount = pColl->GetCount(); @@ -556,9 +556,9 @@ Sequence<OUString> SAL_CALL ScDataPilotTablesObj::getElementNames() ScDPCollection* pColl = pDoc->GetDPCollection(); if ( pColl ) { - // count tables on this sheet - // api only handles sheet data at this time - //! allow all data sources!!! + // count tables on this sheet + // api only handles sheet data at this time + //! allow all data sources!!! USHORT nFound = 0; USHORT nCount = pColl->GetCount(); @@ -600,8 +600,8 @@ sal_Bool SAL_CALL ScDataPilotTablesObj::hasByName( const OUString& aName ) USHORT nCount = pColl->GetCount(); for (USHORT i=0; i<nCount; i++) { - // api only handles sheet data at this time - //! allow all data sources!!! + // api only handles sheet data at this time + //! allow all data sources!!! ScDPObject* pDPObj = (*pColl)[i]; if ( pDPObj->GetOutRange().aStart.Tab() == nTab && @@ -684,12 +684,12 @@ Sequence<sal_Int8> SAL_CALL ScDataPilotDescriptorBase::getImplementationId() void ScDataPilotDescriptorBase::Notify( SfxBroadcaster&, const SfxHint& rHint ) { - //! Referenz-Update? + //! Referenz-Update? if ( rHint.ISA( SfxSimpleHint ) && ((const SfxSimpleHint&)rHint).GetId() == SFX_HINT_DYING ) { - pDocShell = NULL; // ungueltig geworden + pDocShell = NULL; // ungueltig geworden } } @@ -1220,13 +1220,13 @@ void SAL_CALL ScDataPilotTableObj::setName( const OUString& aNewName ) ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); if (pDPObj) { - //! test for existing names !!! + //! test for existing names !!! String aString(aNewName); - pDPObj->SetName( aString ); //! Undo - DBDocFunc ??? + pDPObj->SetName( aString ); //! Undo - DBDocFunc ??? aName = aString; - // DataPilotUpdate would do too much (output table is not changed) + // DataPilotUpdate would do too much (output table is not changed) GetDocShell()->SetDocumentModified(); } } @@ -1248,9 +1248,9 @@ void SAL_CALL ScDataPilotTableObj::setTag( const OUString& aNewTag ) if (pDPObj) { String aString(aNewTag); - pDPObj->SetTag( aString ); //! Undo - DBDocFunc ??? + pDPObj->SetTag( aString ); //! Undo - DBDocFunc ??? - // DataPilotUpdate would do too much (output table is not changed) + // DataPilotUpdate would do too much (output table is not changed) GetDocShell()->SetDocumentModified(); } } @@ -1265,11 +1265,11 @@ CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRange() throw(RuntimeExc if (pDPObj) { ScRange aRange(pDPObj->GetOutRange()); - aRet.Sheet = aRange.aStart.Tab(); + aRet.Sheet = aRange.aStart.Tab(); aRet.StartColumn = aRange.aStart.Col(); - aRet.StartRow = aRange.aStart.Row(); - aRet.EndColumn = aRange.aEnd.Col(); - aRet.EndRow = aRange.aEnd.Row(); + aRet.StartRow = aRange.aStart.Row(); + aRet.EndColumn = aRange.aEnd.Col(); + aRet.EndRow = aRange.aEnd.Row(); } return aRet; } @@ -1283,10 +1283,10 @@ void SAL_CALL ScDataPilotTableObj::refresh() throw(RuntimeException) RefreshDPObject( pDPObj, NULL, GetDocShell(), TRUE, TRUE ); //if (pDPObj) //{ - // ScDPObject* pNew = new ScDPObject(*pDPObj); - // ScDBDocFunc aFunc(*GetDocShell()); - // aFunc.DataPilotUpdate( pDPObj, pNew, TRUE, TRUE ); - // delete pNew; // DataPilotUpdate copies settings from "new" object + // ScDPObject* pNew = new ScDPObject(*pDPObj); + // ScDBDocFunc aFunc(*GetDocShell()); + // aFunc.DataPilotUpdate( pDPObj, pNew, TRUE, TRUE ); + // delete pNew; // DataPilotUpdate copies settings from "new" object //} } @@ -1850,12 +1850,12 @@ OUString SAL_CALL ScDataPilotFieldObj::getName() throw(RuntimeException) if( pDim->IsDataLayout() ) aName = OUString( RTL_CONSTASCII_USTRINGPARAM( SC_DATALAYOUT_NAME ) ); else - { + { const rtl::OUString* pLayoutName = pDim->GetLayoutName(); - if (pLayoutName) - aName = *pLayoutName; - else - aName = pDim->GetName(); + if (pLayoutName) + aName = *pLayoutName; + else + aName = pDim->GetName(); } } return aName; } @@ -1904,7 +1904,7 @@ void SAL_CALL ScDataPilotFieldObj::setPropertyValue( const OUString& aPropertyNa } else if ( aNameString.EqualsAscii( SC_UNONAME_ORIENT ) ) { - //! test for correct enum type? + //! test for correct enum type? DataPilotFieldOrientation eOrient = (DataPilotFieldOrientation) ScUnoHelpFunctions::GetEnumFromAny( aValue ); setOrientation( eOrient ); |