diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-07 00:50:36 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-07 00:50:36 -0500 |
commit | 72c1b6141d590fb4479925ed8bc88b79357c2bfc (patch) | |
tree | 8d3606a61b33e2e6736dfc06010c553fc8568d91 /sc/source/ui/docshell | |
parent | 9abbf7c181467e665e4b8da3561a31086b65ed08 (diff) |
ScAutoFormat no longer a child of ScSortedCollection.
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 94dd497dfd65..a211534b0c9f 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -3667,8 +3667,8 @@ sal_Bool ScDocFunc::ChangeIndent( const ScMarkData& rMark, sal_Bool bIncrement, return sal_True; } -sal_Bool ScDocFunc::AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark, - sal_uInt16 nFormatNo, sal_Bool bRecord, sal_Bool bApi ) +bool ScDocFunc::AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark, + sal_uInt16 nFormatNo, bool bRecord, bool bApi ) { ScDocShellModificator aModificator( rDocShell ); @@ -3694,11 +3694,11 @@ sal_Bool ScDocFunc::AutoFormat( const ScRange& rRange, const ScMarkData* pTabMar ScAutoFormat* pAutoFormat = ScGlobal::GetOrCreateAutoFormat(); ScEditableTester aTester( pDoc, nStartCol,nStartRow, nEndCol,nEndRow, aMark ); - if ( nFormatNo < pAutoFormat->GetCount() && aTester.IsEditable() ) + if ( nFormatNo < pAutoFormat->size() && aTester.IsEditable() ) { WaitObject aWait( rDocShell.GetActiveDialogParent() ); - sal_Bool bSize = (*pAutoFormat)[nFormatNo]->GetIncludeWidthHeight(); + bool bSize = pAutoFormat->findByIndex(nFormatNo)->GetIncludeWidthHeight(); SCTAB nTabCount = pDoc->GetTableCount(); ScDocument* pUndoDoc = NULL; |