summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/condformatmgr.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-06 12:28:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-06 13:36:24 +0100
commit5918209d281927b714850157b2d1415fa8765c6f (patch)
tree0db9de67e6750e5cd8fcf8bc0a0408aabe324f62 /sc/source/ui/inc/condformatmgr.hxx
parentc45c6e4116b30a90dd69c7d9dda1eac6c0597c7f (diff)
Resolves: fdo#73675 tweak conversion to use SvSimpleTable
Change-Id: Ibfa5c806581c450a0b0407cb07751e06dd3a787e
Diffstat (limited to 'sc/source/ui/inc/condformatmgr.hxx')
-rw-r--r--sc/source/ui/inc/condformatmgr.hxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/sc/source/ui/inc/condformatmgr.hxx b/sc/source/ui/inc/condformatmgr.hxx
index 488f6c66810d..381eb65ffbe7 100644
--- a/sc/source/ui/inc/condformatmgr.hxx
+++ b/sc/source/ui/inc/condformatmgr.hxx
@@ -17,7 +17,7 @@
#include <svtools/svtabbx.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
-#include <svtools/headbar.hxx>
+#include <svtools/simptabl.hxx>
#include "conditio.hxx"
@@ -25,26 +25,24 @@
class ScDocument;
-class ScCondFormatManagerWindow : public SvTabListBox
+class ScCondFormatManagerWindow : public SvSimpleTable
{
private:
void Init();
OUString createEntryString(const ScConditionalFormat& rFormat);
+ void setColSizes();
- HeaderBar maHeaderBar;
ScDocument* mpDoc;
ScConditionalFormatList* mpFormatList;
std::map<SvTreeListEntry*, sal_Int32> maMapLBoxEntryToCondIndex;
- DECL_LINK( HeaderEndDragHdl, void* );
-
public:
- ScCondFormatManagerWindow( Window* pParent, ScDocument* pDoc, ScConditionalFormatList* pFormatList);
- void ChangeSize(Size aSize);
+ ScCondFormatManagerWindow(SvSimpleTableContainer& rParent, ScDocument* pDoc, ScConditionalFormatList* pFormatList);
void DeleteSelection();
ScConditionalFormat* GetSelection();
void Update();
+ virtual void Resize() SAL_OVERRIDE;
};
class ScCondFormatManagerDlg : public ModalDialog
@@ -64,8 +62,6 @@ private:
PushButton *m_pBtnRemove;
PushButton *m_pBtnEdit;
ScConditionalFormatList* mpFormatList;
- Window *m_pContainer;
- VclVBox *m_pGrid;
ScCondFormatManagerWindow *m_pCtrlManager;
ScDocument* mpDoc;
@@ -75,8 +71,6 @@ private:
DECL_LINK(EditBtnHdl, void*);
DECL_LINK(AddBtnHdl, void*);
- virtual void Resize();
-
bool mbModified;
};