summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/condformatdlg.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/inc/condformatdlg.hxx')
-rw-r--r--sc/source/ui/inc/condformatdlg.hxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/sc/source/ui/inc/condformatdlg.hxx b/sc/source/ui/inc/condformatdlg.hxx
index 6f6d2c0c7d04..7bd9c84a549c 100644
--- a/sc/source/ui/inc/condformatdlg.hxx
+++ b/sc/source/ui/inc/condformatdlg.hxx
@@ -65,12 +65,14 @@ private:
ScDocument* mpDoc;
ScAddress maPos;
ScRangeList maRanges;
- ScCondFormatDlg* mpDialogParent;
+ VclPtr<ScCondFormatDlg> mpDialogParent;
void DoScroll(long nDiff);
public:
ScCondFormatList(vcl::Window* pParent, WinBits nStyle);
+ virtual ~ScCondFormatList();
+ virtual void dispose() SAL_OVERRIDE;
void init(ScDocument* pDoc, ScCondFormatDlg* pDialogParent, const ScConditionalFormat* pFormat,
const ScRangeList& rRanges, const ScAddress& rPos,
@@ -95,18 +97,18 @@ public:
class ScCondFormatDlg : public ScAnyRefModalDlg
{
private:
- PushButton* mpBtnAdd;
- PushButton* mpBtnRemove;
- FixedText* mpFtRange;
- formula::RefEdit* mpEdRange;
- formula::RefButton* mpRbRange;
+ VclPtr<PushButton> mpBtnAdd;
+ VclPtr<PushButton> mpBtnRemove;
+ VclPtr<FixedText> mpFtRange;
+ VclPtr<formula::RefEdit> mpEdRange;
+ VclPtr<formula::RefButton> mpRbRange;
- ScCondFormatList* mpCondFormList;
+ VclPtr<ScCondFormatList> mpCondFormList;
ScAddress maPos;
ScDocument* mpDoc;
- formula::RefEdit* mpLastEdit;
+ VclPtr<formula::RefEdit> mpLastEdit;
DECL_LINK( EdRangeModifyHdl, Edit* );
protected:
@@ -117,6 +119,7 @@ public:
SC_DLLPUBLIC ScCondFormatDlg(vcl::Window* pWindow, ScDocument* pDoc, const ScConditionalFormat* pFormat,
const ScRangeList& rRange, const ScAddress& rPos, condformat::dialog::ScCondFormatDialogType eType);
virtual ~ScCondFormatDlg();
+ virtual void dispose() SAL_OVERRIDE;
SC_DLLPUBLIC ScConditionalFormat* GetConditionalFormat() const;