[ooo-build-commit] .: sc/inc sc/sdi sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Sep 28 08:10:11 PDT 2010
sc/inc/sc.hrc | 9 +---
sc/sdi/pivotsh.sdi | 1
sc/sdi/scalc.sdi | 24 -----------
sc/source/ui/docshell/dbdocfun.cxx | 30 --------------
sc/source/ui/inc/dbfunc.hxx | 8 +--
sc/source/ui/inc/viewdata.hxx | 4 -
sc/source/ui/miscdlgs/makefile.mk | 2
sc/source/ui/src/popup.src | 78 -------------------------------------
sc/source/ui/view/dbfunc3.cxx | 26 ------------
sc/source/ui/view/pivotsh.cxx | 44 --------------------
sc/source/ui/view/viewdata.cxx | 16 -------
11 files changed, 7 insertions(+), 235 deletions(-)
New commits:
commit 2126737afee2d35f5d8cfca1064a37eed7850fee
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Tue Sep 28 11:07:45 2010 -0400
Remove datapilot autoformat feature.
This reverts commit 1cd57db36c14e98190311ceed238c01f2dd60eea.
The current datapilot autoformat feature was done by "duct-taping"
two separate features together which don't mix well and cause stability
issues. This feature needs to be re-implemented the right way in the
future.
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index 87f02b5..df6ba2e 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -1662,15 +1662,12 @@
#define SC_OOO_BUILD_START (SC_DIALOGS_END)
-// Autoformat for DataPilot
-#define SID_PIVOT_AFMT (SC_OOO_BUILD_START + 1)
-
// Toggle sheet grid
-#define FID_TAB_TOGGLE_GRID (SC_OOO_BUILD_START + 2)
+#define FID_TAB_TOGGLE_GRID (SC_OOO_BUILD_START + 1)
// Formula options page
-#define RID_SCPAGE_FORMULA (SC_OOO_BUILD_START + 3)
-#define HID_SCPAGE_FORMULA (SC_OOO_BUILD_START + 4)
+#define RID_SCPAGE_FORMULA (SC_OOO_BUILD_START + 2)
+#define HID_SCPAGE_FORMULA (SC_OOO_BUILD_START + 3)
#endif
diff --git a/sc/sdi/pivotsh.sdi b/sc/sdi/pivotsh.sdi
index 82671ae..4b2ddbe 100644
--- a/sc/sdi/pivotsh.sdi
+++ b/sc/sdi/pivotsh.sdi
@@ -31,7 +31,6 @@ interface Pivot
SID_PIVOT_RECALC [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_PIVOT_KILL [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_DP_FILTER [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
- SID_PIVOT_AFMT [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
}
shell ScPivotShell
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index 3685677..50ddc46 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -1872,30 +1872,6 @@ SfxVoidItem DeletePivotTable SID_PIVOT_KILL
GroupId = GID_DATA;
]
-SfxVoidItem AutoFormatPivotTable SID_PIVOT_AFMT
-()
-[
- /* flags: */
- AutoUpdate = FALSE,
- Cachable = Cachable,
- FastCall = FALSE,
- HasCoreId = FALSE,
- HasDialog = FALSE,
- ReadOnlyDoc = TRUE,
- Toggle = FALSE,
- Container = FALSE,
- RecordAbsolute = FALSE,
- RecordPerSet;
- Synchron;
-
- /* config: */
- AccelConfig = FALSE,
- MenuConfig = TRUE,
- StatusBarConfig = FALSE,
- ToolBoxConfig = FALSE,
- GroupId = GID_DATA;
-]
-
//--------------------------------------------------------------------------
SfxVoidItem DeletePrintArea SID_DELETE_PRINTAREA
()
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 318ee76..ca09bc8 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1413,36 +1413,6 @@ BOOL ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
delete pNewUndoDoc;
delete pUndoDPObj;
- if (pNewObj && pNewObj->GetAutoFormatIndex() != 65535)
- {
- ScViewData* pViewData = rDocShell.GetViewData();
- ScTabViewShell* pViewShell = pViewData->GetViewShell();
- pViewShell->GetDBData( TRUE, SC_DB_OLD );
- const ScMarkData& rMark1 = pViewData->GetMarkData();
- SCCOL nStartCol;
- SCROW nStartRow;
- SCTAB nStartTab;
- SCCOL nEndCol;
- SCROW nEndRow;
- SCTAB nEndTab;
-
- rDocShell.GetViewData()->GetSimpleArea( nStartCol,nStartRow,nStartTab,nEndCol,nEndRow,nEndTab );
- ScRange Outrange = pNewObj->GetOutRange();
- if (( (Outrange.aStart.Col() <= nStartCol) && (nStartCol <= Outrange.aEnd.Col() )&& (nStartTab == Outrange.aStart.Tab()))
- && ( (Outrange.aStart.Row() <= nStartRow) && (nStartRow <= Outrange.aEnd.Row() )) )
- {
-
- if ( !rMark1.IsMarked() && !rMark1.IsMultiMarked() )
- pViewShell->MarkDataArea( TRUE );
- //FIXME: Autoformat even when clicked from a non-dp cell.
- pViewData->MoveNextRow();
- sal_uInt16 nAutoFmtIndex = pNewObj->GetAutoFormatIndex();
- pViewShell->AutoFormat(nAutoFmtIndex);
- pViewShell->AutoFormatPivotTable(const_cast<ScDPObject*>(pNewObj), nAutoFmtIndex);
- pViewData->MovePrevRow();
- }
- }
-
if (bDone)
{
// notify API objects
diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx
index d517694..581c861 100644
--- a/sc/source/ui/inc/dbfunc.hxx
+++ b/sc/source/ui/inc/dbfunc.hxx
@@ -86,10 +86,10 @@ public:
bool MakePivotTable( const ScDPSaveData& rData, const ScRange& rDest, BOOL bNewTable,
const ScDPObject& rSource, BOOL bApi = FALSE );
void DeletePivotTable();
- ULONG RecalcPivotTable();
- void AutoFormatPivotTable(USHORT nIndex);
- void AutoFormatPivotTable(ScDPObject* pDPObj, USHORT nIndex);
-
+ // Wang Xu Ming -- 2009-6-17
+ // DataPilot Migration
+ ULONG RecalcPivotTable();
+ // End Comments
BOOL HasSelectionForDateGroup( ScDPNumGroupInfo& rOldInfo, sal_Int32& rParts );
BOOL HasSelectionForNumGroup( ScDPNumGroupInfo& rOldInfo );
void GroupDataPilot();
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index 8df8214..9b70b37 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -337,10 +337,6 @@ public:
ScMarkType GetSimpleArea( SCCOL& rStartCol, SCROW& rStartRow, SCTAB& rStartTab,
SCCOL& rEndCol, SCROW& rEndRow, SCTAB& rEndTab ) const;
ScMarkType GetSimpleArea( ScRange& rRange ) const;
-
- void MoveNextRow();
- void MovePrevRow();
-
/// May modify rNewMark using MarkToSimple().
ScMarkType GetSimpleArea( ScRange & rRange, ScMarkData & rNewMark ) const;
void GetMultiArea( ScRangeListRef& rRange ) const;
diff --git a/sc/source/ui/miscdlgs/makefile.mk b/sc/source/ui/miscdlgs/makefile.mk
index 8c56101..d349943 100644
--- a/sc/source/ui/miscdlgs/makefile.mk
+++ b/sc/source/ui/miscdlgs/makefile.mk
@@ -118,8 +118,6 @@ LIB1OBJFILES = \
$(SLO)$/warnbox.obj \
$(SLO)$/conflictsdlg.obj \
$(SLO)$/sharedocdlg.obj \
- $(SLO)$/scuiautofmt.obj \
- $(SLO)$/strindlg.obj \
$(SLO)$/protectiondlg.obj \
$(SLO)$/retypepassdlg.obj
diff --git a/sc/source/ui/src/popup.src b/sc/source/ui/src/popup.src
index 55fa9db..a4f96b4 100644
--- a/sc/source/ui/src/popup.src
+++ b/sc/source/ui/src/popup.src
@@ -225,84 +225,6 @@ Menu RID_POPUP_PIVOT
};
MenuItem
{
- Identifier = SID_PIVOT_AFMT ;
- HelpId = SID_PIVOT_AFMT ;
- Text [ en-US ] = "~AutoFormat..." ;
- Text [ de ] = "A~utoFormat" ;
- Text [ af ] = "OutoFormateer..." ;
- Text [ ar ] = "تÙسÙ٠تÙÙائÙ..." ;
- Text [ as-IN ] = "সà§à¦¬à§à¦à¦à§à§°à¦¿à§ ফৰমà§à¦ ..." ;
- Text [ be-BY ] = "ÐÑÑа-ÑаÑмаÑ..." ;
- Text [ bg ] = "ÐвÑоÑоÑмаÑ..." ;
- Text [ br ] = "EmVentrezhañ..." ;
- Text [ bs ] = "AutoFormat..." ;
- Text [ ca ] = "Formatació automà tica..." ;
- Text [ cs ] = "Automatický formát..." ;
- Text [ cy ] = "AwtoFformat..." ;
- Text [ da ] = "Autoformat..." ;
- Text [ el ] = "ÎÏ
ÏÏμαÏη μοÏÏοÏοίηÏη..." ;
- Text [ en-GB ] = "AutoFormat..." ;
- Text [ en-ZA ] = "AutoFormat..." ;
- Text [ eo ] = "AÅtomate Formati..." ;
- Text [ es ] = "Formateado automático..." ;
- Text [ et ] = "Automaatvormindus..." ;
- Text [ fa ] = "ÙاÙبâبÙØ¯Û Ø®Ùدکار..." ;
- Text [ fi ] = "Automaattinen muotoilu..." ;
- Text [ fr ] = "AutoFormat..." ;
- Text [ ga ] = "UathFhormáidigh..." ;
- Text [ gu ] = "àªàªªà«àªàªªàª¬àªàª§àª¾àª°àª£..." ;
- Text [ gu-IN ] = "àªàªªà«àªàªªàª¬àªàª§àª¾àª°àª£..." ;
- Text [ hi-IN ] = "सà¥à¤µà¤à¤¾à¤²à¤¿à¤¤ ढà¤à¤ सॠरà¤à¤¨à¤¾..." ;
- Text [ hr ] = "SamoOblikovanje..." ;
- Text [ hu ] = "Automatikus formázás..." ;
- Text [ it ] = "Formattazione automatica..." ;
- Text [ ja ] = "ãªã¼ããã©ã¼ããã..." ;
- Text [ ka ] = "ááá¢á-á¤áá ááá¢áá ááá..." ;
- Text [ km ] = "ááááááááá¶áâááááááááááááá·..." ;
- Text [ ko ] = "ìë ìì..." ;
- Text [ ku ] = "TeÅekirinaBixweber..." ;
- Text [ lt ] = "Automatinis formatavimas..." ;
- Text [ mk ] = "ÐвÑомаÑÑко ÑоÑмаÑиÑаÑе..." ;
- Text [ ml-IN ] = "à´¸àµà´µà´¯à´ à´°àµà´ªà´ªàµà´ªàµà´àµà´¤àµà´¤àµà´..." ;
- Text [ mr-IN ] = "सà¥à¤µà¤à¤¯à¤à¤²à¤¿à¤¤ रà¤à¤¨à¤¾..." ;
- Text [ nb ] = "Autoformatering..." ;
- Text [ nl ] = "AutoOpmaak..." ;
- Text [ nn ] = "Autoformatering..." ;
- Text [ nr ] = "Fometha ngokuzenzakalela..." ;
- Text [ ns ] = "Fomate ye e Itiragalelago..." ;
- Text [ or-IN ] = "ସàବଯà¬à¬à¬¾à¬³à¬¿à¬¤à¬«à¬°àମାà¬..." ;
- Text [ pa-IN ] = "ਸਵà©-ਫਾਰਮਿà¨..." ;
- Text [ pl ] = "Autoformatowanie..." ;
- Text [ pt ] = "Formatação automática..." ;
- Text [ pt-BR ] = "AutoFormatar..." ;
- Text [ ru ] = "ÐвÑоÑоÑмаÑ..." ;
- Text [ rw ] = "Nyamwihamiterere..." ;
- Text [ sh-YU ] = "Automatsko formatiranje..." ;
- Text [ sk ] = "Automatický formát..." ;
- Text [ sl ] = "Samooblikovanje..." ;
- Text [ sr-CS ] = "ÐÑÑомаÑÑко ÑоÑмаÑиÑаÑе..." ;
- Text [ ss ] = "Kutifomethekela..." ;
- Text [ st ] = "Fomate e iketsahallang..." ;
- Text [ sv ] = "Autoformat..." ;
- Text [ sw-TZ ] = "AutoFormat..." ;
- Text [ ta ] = "தானியà®à¯à® வà®à®¿à®µà®®à¯..." ;
- Text [ ta-IN ] = "தானியà®à¯à® வà®à®¿à®µà®®à¯..." ;
- Text [ te-IN ] = "à°¸à±à°µà°¯à°à°°à±à°ªà°²à°¾à°µà°£à±à°¯à°..." ;
- Text [ tg ] = "ÐвÑоÑоÑмаÑ..." ;
- Text [ th ] = "AutoFormat..." ;
- Text [ tr ] = "Otomatik Biçimlendirme..." ;
- Text [ ts ] = "Fomati yo tiendlekela hi yoxe..." ;
- Text [ uk ] = "ÐвÑоÑоÑмаÑ..." ;
- Text [ ur-IN ] = "Ø®ÙدکارطرÛÙÛ..." ;
- Text [ ve ] = "OthoFomathi..." ;
- Text [ vi ] = "Tá»± Äá»nh dạng..." ;
- Text [ xh ] = "Ulungiselelo Oluzenzekelayo..." ;
- Text [ zh-CN ] = "èªå¨æ ¼å¼..." ;
- Text [ zh-TW ] = "èªåæ ¼å¼..." ;
- Text [ zu ] = "Isakhiwo esizenzekelayo..." ;
- };
- MenuItem
- {
Identifier = SID_PIVOT_RECALC ;
HelpId = SID_PIVOT_RECALC ;
Text [ en-US ] = "~Refresh" ;
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index 5eb38a7..63d9f3b 100755
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -2369,29 +2369,3 @@ void ScDBFunc::RepeatDB( BOOL bRecord )
else // "Keine Operationen auszufuehren"
ErrorMessage(STR_MSSG_REPEATDB_0);
}
-
-void ScDBFunc::AutoFormatPivotTable(USHORT nIndex)
-{
- ScDocument* pDoc = GetViewData()->GetDocument();
-
- // old pivot not used any more
-
- ScDPObject* pDPObj = pDoc->GetDPAtCursor(
- GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() );
-
- if ( pDPObj )
- {
- pDPObj->SetAutoFormatIndex(nIndex);
- }
- else
- ErrorMessage(STR_PIVOT_NOTFOUND);
-
-}
-
-void ScDBFunc::AutoFormatPivotTable(ScDPObject* pDPObj, USHORT nIndex)
-{
- pDPObj->SetAutoFormatIndex(nIndex);
-}
-
-
-
diff --git a/sc/source/ui/view/pivotsh.cxx b/sc/source/ui/view/pivotsh.cxx
index a86697c..82f0c62 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;
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 96866dd..a93175d 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -768,22 +768,6 @@ void ScViewData::RefreshZoom()
aLogicMode.SetScaleY( GetZoomY() );
}
-void ScViewData::MoveNextRow()
-{
- ScRange aMarkRange;
- aMarkData.GetMarkArea(aMarkRange);
- aMarkRange.aStart.Set(aMarkRange.aStart.Col(), aMarkRange.aStart.Row() +1, aMarkRange.aStart.Tab());
- aMarkData.SetMarkArea(aMarkRange);
-}
-
-void ScViewData::MovePrevRow()
-{
- ScRange aMarkRange;
- aMarkData.GetMarkArea(aMarkRange);
- aMarkRange.aStart.Set(aMarkRange.aStart.Col(), aMarkRange.aStart.Row() -1, aMarkRange.aStart.Tab());
- aMarkData.SetMarkArea(aMarkRange);
-}
-
void ScViewData::SetPagebreakMode( BOOL bSet )
{
bPagebreak = bSet;
More information about the ooo-build-commit
mailing list