diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-02 11:30:28 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-04 02:17:25 +0200 |
commit | 7d295975c51f198a0e6933f6e4c7d85dfa9e3c8f (patch) | |
tree | 6a7f945af0be9fbc77f3a8532e5be768301def5d /sc/source/ui/attrdlg | |
parent | 871111155e302ecaf245003bcd8357e294f8b268 (diff) |
add the cond format manager
Change-Id: I2c21b048c24333e4d04434ff92b9d9da2efe9558
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 25 | ||||
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.hxx | 11 |
2 files changed, 35 insertions, 1 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index 01c3b0839bf5..4dd5292133dd 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -81,6 +81,7 @@ #include "tpdefaults.hxx" #include "colorformat.hxx" #include "condformatdlg.hxx" +#include "condformatmgr.hxx" // ause #include "editutil.hxx" @@ -90,6 +91,7 @@ IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl); IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl); IMPL_ABSTDLG_BASE(AbstractScColRowLabelDlg_Impl); IMPL_ABSTDLG_BASE(AbstractScCondFormatDlg_Impl); +IMPL_ABSTDLG_BASE(AbstractScCondFormatManagerDlg_Impl); IMPL_ABSTDLG_BASE(AbstractScDataBarSettingsDlg_Impl); IMPL_ABSTDLG_BASE(AbstractScDataPilotDatabaseDlg_Impl); IMPL_ABSTDLG_BASE(AbstractScDataPilotSourceTypeDlg_Impl); @@ -460,7 +462,10 @@ ScConditionalFormat* AbstractScCondFormatDlg_Impl::GetConditionalFormat() return pDlg->GetConditionalFormat(); } - +ScConditionalFormatList* AbstractScCondFormatManagerDlg_Impl::GetConditionalFormatList() +{ + return pDlg->GetConditionalFormatList(); +} long AbstractScMetricInputDlg_Impl::GetInputValue( FieldUnit eUnit ) const @@ -794,6 +799,24 @@ AbstractScCondFormatDlg* ScAbstractDialogFactory_Impl::CreateScCondFormatDlg(Win return NULL; } +AbstractScCondFormatManagerDlg* ScAbstractDialogFactory_Impl::CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList, + const ScRangeList& rList, const ScAddress& rPos, int nId ) +{ + ScCondFormatManagerDlg* pDlg = NULL; + switch( nId ) + { + case RID_SCDLG_COND_FORMAT_MANAGER: + pDlg = new ScCondFormatManagerDlg( pParent, pDoc, pFormatList, rList, rPos ); + break; + default: + break; + } + if(pDlg) + return new AbstractScCondFormatManagerDlg_Impl( pDlg ); + + return NULL; +} + AbstractScDataBarSettingsDlg* ScAbstractDialogFactory_Impl::CreateScDataBarSetttingsDlg(Window* pParent, ScDocument* pDoc, int nId) { ScDataBarSettingsDlg* pDlg = NULL; diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index 4728f1c079da..fcf000d7fa39 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -66,6 +66,7 @@ class SfxTabDialog; class ScTextImportOptionsDlg; class ScDataBarSettingsDlg; class ScCondFormatDlg; +class ScCondFormatManagerDlg; #define DECL_ABSTDLG_BASE(Class,DialogClass) \ DialogClass* pDlg; \ @@ -144,6 +145,13 @@ class AbstractScCondFormatDlg_Impl : public AbstractScCondFormatDlg virtual ScConditionalFormat* GetConditionalFormat(); }; +class AbstractScCondFormatManagerDlg_Impl : public AbstractScCondFormatManagerDlg +{ + DECL_ABSTDLG_BASE(AbstractScCondFormatManagerDlg_Impl, ScCondFormatManagerDlg) + + virtual ScConditionalFormatList* GetConditionalFormatList(); +}; + class AbstractScDataBarSettingsDlg_Impl : public AbstractScDataBarSettingsDlg { DECL_ABSTDLG_BASE(AbstractScDataBarSettingsDlg_Impl, ScDataBarSettingsDlg) @@ -430,6 +438,9 @@ public: virtual AbstractScCondFormatDlg* CreateScCondFormatDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormat* pFormat, const ScRangeList& rRange, const ScAddress& rPos, int nId ); //add for ScDataBarSettingsDlg + virtual AbstractScCondFormatManagerDlg* CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList, + const ScRangeList& rList, const ScAddress& rPos, int nId ); + virtual AbstractScDataBarSettingsDlg* CreateScDataBarSetttingsDlg (Window* pParent, ScDocument* pDoc, int nId ); //add for ScDataBarSettingsDlg virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId ); //add for ScDataPilotDatabaseDlg |