summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-24 00:01:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-24 20:51:11 +0000
commit9428c58408248dd6463e67b7fab7af8dd7dcd519 (patch)
tree80169573c8bff9e8d3c038b60dd97e143b8c467e /sc
parent0e26ed476aacf1c70b82a1806a1281fe98b9e724 (diff)
add a crude GetOptimalSize to ScCsvTableBox
Change-Id: I06357e9e69a0d9f4b8edb4db4ba1b788f96d73a9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/csvtablebox.cxx6
-rw-r--r--sc/source/ui/inc/csvtablebox.hxx1
2 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/csvtablebox.cxx b/sc/source/ui/dbgui/csvtablebox.cxx
index d404118d4b23..9b3738b3480c 100644
--- a/sc/source/ui/dbgui/csvtablebox.cxx
+++ b/sc/source/ui/dbgui/csvtablebox.cxx
@@ -57,6 +57,12 @@ ScCsvTableBox::ScCsvTableBox( Window* pParent, const ResId& rResId ) :
}
+Size ScCsvTableBox::GetOptimalSize() const
+{
+ Size aDefault(LogicToPixel(Size(243, 82), MapMode(MAP_APPFONT)));
+ return aDefault;
+}
+
// common table box handling --------------------------------------------------
void ScCsvTableBox::SetSeparatorsMode()
diff --git a/sc/source/ui/inc/csvtablebox.hxx b/sc/source/ui/inc/csvtablebox.hxx
index 976d9d01ecad..fe4c0808aee3 100644
--- a/sc/source/ui/inc/csvtablebox.hxx
+++ b/sc/source/ui/inc/csvtablebox.hxx
@@ -126,6 +126,7 @@ public:
protected:
virtual void Resize();
virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual Size GetOptimalSize() const;
private:
SC_DLLPRIVATE DECL_LINK( CsvCmdHdl, ScCsvControl* );