Kaydet (Commit) 9428c584 authored tarafından Caolán McNamara's avatar Caolán McNamara

add a crude GetOptimalSize to ScCsvTableBox

Change-Id: I06357e9e69a0d9f4b8edb4db4ba1b788f96d73a9
üst 0e26ed47
...@@ -57,6 +57,12 @@ ScCsvTableBox::ScCsvTableBox( Window* pParent, const ResId& rResId ) : ...@@ -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 -------------------------------------------------- // common table box handling --------------------------------------------------
void ScCsvTableBox::SetSeparatorsMode() void ScCsvTableBox::SetSeparatorsMode()
......
...@@ -126,6 +126,7 @@ public: ...@@ -126,6 +126,7 @@ public:
protected: protected:
virtual void Resize(); virtual void Resize();
virtual void DataChanged( const DataChangedEvent& rDCEvt ); virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual Size GetOptimalSize() const;
private: private:
SC_DLLPRIVATE DECL_LINK( CsvCmdHdl, ScCsvControl* ); SC_DLLPRIVATE DECL_LINK( CsvCmdHdl, ScCsvControl* );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment