diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-06 16:57:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-07 14:06:17 +0000 |
commit | 69b76536a033cefed8e024557742a9988b949d62 (patch) | |
tree | 37101b6593cdb5e39591b19adeccbdbd4fa4b42b /sc/source/ui/inc/namemgrtable.hxx | |
parent | b42ea2ad00895ef63a60f82e9159f4e21e946120 (diff) |
adapt code to use insertnamedialog .ui
Change-Id: I1449b69a4291f1b3cb76f549cb8f1d50e9bc6924
Diffstat (limited to 'sc/source/ui/inc/namemgrtable.hxx')
-rw-r--r-- | sc/source/ui/inc/namemgrtable.hxx | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/sc/source/ui/inc/namemgrtable.hxx b/sc/source/ui/inc/namemgrtable.hxx index f4c37c89ce59..d82ce5cd0f1e 100644 --- a/sc/source/ui/inc/namemgrtable.hxx +++ b/sc/source/ui/inc/namemgrtable.hxx @@ -26,8 +26,7 @@ * instead of those above. */ -#include <svtools/headbar.hxx> -#include <svtools/svtabbx.hxx> +#include <svx/simptabl.hxx> #include <vcl/ctrl.hxx> #include "scresid.hxx" @@ -46,24 +45,13 @@ struct ScRangeNameLine rtl::OUString aScope; }; -/** Implements the Control behind the table - * It controls the size of the table - */ -class ScRangeManagerCtrl : public Control -{ -public: - ScRangeManagerCtrl(Window* pParent, const ScResId& rResId): - Control( pParent, rResId) {} -}; - //Implements the table for the manage names dialog //TODO: cache the lines for performance improvements //otherwise handling of a large set of range names might get extremely slow //Need some sort of a filter to handle several range names -class SC_DLLPUBLIC ScRangeManagerTable : public SvTabListBox +class SC_DLLPUBLIC ScRangeManagerTable : public SvxSimpleTable { private: - HeaderBar maHeaderBar; rtl::OUString maGlobalString; // should be const because we should not modify it here @@ -79,10 +67,14 @@ private: void CheckForFormulaString(); const ScRangeData* findRangeData(const ScRangeNameLine& rLine); + void setColWidths(); + public: - ScRangeManagerTable( Window* pParent, boost::ptr_map<rtl::OUString, ScRangeName>& aTabRangeNames, const ScAddress& rPos ); + ScRangeManagerTable( SvxSimpleTableContainer& rParent, boost::ptr_map<rtl::OUString, ScRangeName>& aTabRangeNames, const ScAddress& rPos ); virtual ~ScRangeManagerTable(); + virtual void Resize(); + void addEntry( const ScRangeNameLine& rLine, bool bSetCurEntry = true ); void DeleteSelectedEntries(); void SetEntry( const ScRangeNameLine& rLine ); |