summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/pivotsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/pivotsh.cxx')
-rw-r--r--sc/source/ui/view/pivotsh.cxx44
1 files changed, 0 insertions, 44 deletions
diff --git a/sc/source/ui/view/pivotsh.cxx b/sc/source/ui/view/pivotsh.cxx
index a946b18f7855..a65f86ffed2c 100644
--- a/sc/source/ui/view/pivotsh.cxx
+++ b/sc/source/ui/view/pivotsh.cxx
@@ -53,12 +53,6 @@
#include "uiitems.hxx"
//CHINA001 #include "pfiltdlg.hxx"
#include "scabstdlg.hxx" //CHINA001
-
-#include "autoform.hxx"
-#include "scuiautofmt.hxx"
-#include "editable.hxx"
-
-
//------------------------------------------------------------------------
#define ScPivotShell
@@ -105,45 +99,7 @@ void ScPivotShell::Execute( SfxRequest& rReq )
case SID_PIVOT_RECALC:
pViewShell->RecalcPivotTable();
break;
- case SID_PIVOT_AFMT:
- {
- ScViewData* pViewData = pViewShell->GetViewData();
-
- pViewShell->GetDBData( TRUE, SC_DB_OLD );
- const ScMarkData& rMark1 = pViewData->GetMarkData();
- if ( !rMark1.IsMarked() && !rMark1.IsMultiMarked() )
- pViewShell->MarkDataArea( TRUE );
- Window* pDlgParent = pViewShell->GetDialogParent();
-
- pViewData->MoveNextRow();
-
- ScGlobal::ClearAutoFormat();
- ScAutoFormatData* pNewEntry = pViewShell->CreateAutoFormatData();
- ScAutoFormatDlg* pDlg = new ScAutoFormatDlg(
- pDlgParent, ScGlobal::GetAutoFormat(), pNewEntry, pViewData->GetDocument() );
-
- if ( pDlg->Execute() == RET_OK )
- {
- ScEditableTester aTester( pViewShell );
- if ( !aTester.IsEditable() )
- {
- pViewShell->ErrorMessage(aTester.GetMessageId());
- }
- else
- {
- /* AutoFormat and Store the index */
- pViewShell->AutoFormat( pDlg->GetIndex() );
- pViewShell->AutoFormatPivotTable( pDlg->GetIndex() );
- }
- }
- delete pDlg;
- delete pNewEntry;
-
- //pViewShell->DeletePivotTable();
- //pViewShell->RecalcPivotTable();
- }
- break;
case SID_PIVOT_KILL:
pViewShell->DeletePivotTable();
break;