have my own stab at fixing the leaking SmDocShell

i.e. alternatives to
5dd1cd72f4
ef66cc105e
f9e981ba0e
d3cf684146

Change-Id: Ib094f5ac1455a9770c99aeac5eb1af118bdab829
This commit is contained in:
Caolán McNamara 2013-07-25 12:37:09 +01:00
parent a645a14cf4
commit cad9697049
2 changed files with 6 additions and 0 deletions

View file

@ -100,6 +100,7 @@ class SmElementsControl : public Control
public:
SmElementsControl(Window *pParent, const ResId& rResId);
virtual ~SmElementsControl();
void setElementSetId(sal_uInt16 aSetId);

View file

@ -178,6 +178,11 @@ SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId) :
maFormat.SetBaseSize(PixelToLogic(Size(0, 24)));
}
SmElementsControl::~SmElementsControl()
{
mpDocShell->DoClose();
}
void SmElementsControl::setVerticalMode(bool bVerticalMode)
{
mbVerticalMode = bVerticalMode;