add a crude GetOptimalSize to ScCsvTableBox

Change-Id: I06357e9e69a0d9f4b8edb4db4ba1b788f96d73a9
This commit is contained in:
Caolán McNamara 2013-02-24 00:01:03 +00:00
parent 0e26ed476a
commit 9428c58408
2 changed files with 7 additions and 0 deletions

View file

@ -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()

View file

@ -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* );