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

document VclContainer a bit

Change-Id: Ib00a0ab1c2e382547041137c11f8955140b8113d
üst 0557453a
......@@ -21,15 +21,6 @@ class VCL_DLLPUBLIC VclContainer : public Window
{
public:
VclContainer(Window *pParent, WinBits nStyle = WB_HIDE);
virtual Size GetOptimalSize() const;
virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize);
virtual void SetPosPixel(const Point& rAllocPos);
virtual void SetSizePixel(const Size& rAllocation);
void markLayoutDirty()
{
m_bLayoutDirty = true;
}
//These take into account the external margins of the rWindow widget
//while GetOptimalSize/get_preferred_size and SetPosSizePixel are
......@@ -41,10 +32,24 @@ public:
//the rWindows alignment desires within that allocation
static void setLayoutAllocation(Window &rWindow, const Point &rPos, const Size &rSize);
void markLayoutDirty()
{
m_bLayoutDirty = true;
}
protected:
//these are the two that need to be implemented by
//containers, figure out how much space you want...
virtual Size calculateRequisition() const = 0;
//..and decide what to do when set to this size
virtual void setAllocation(const Size &rAllocation) = 0;
virtual sal_uInt16 getDefaultAccessibleRole() const;
public:
//you don't want to override these
virtual Size GetOptimalSize() const;
virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize);
virtual void SetPosPixel(const Point& rAllocPos);
virtual void SetSizePixel(const Size& rAllocation);
private:
bool m_bLayoutDirty;
};
......
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