Make archiving hooks protected in layout classes.

Furthermore,
* remove a stray blank line in Layout.cpp
* make BLayoutItem::SetLayout() private, as it should have been
This commit is contained in:
Alex Wilson
2011-12-01 20:45:50 -07:00
parent f98f5ca48b
commit d56e7bd64d
12 changed files with 50 additions and 40 deletions
+3 -2
View File
@@ -36,8 +36,6 @@ public:
static BArchivable* Instantiate(BMessage* archive);
virtual status_t Archive(BMessage* archive,
bool deep = true) const;
virtual status_t AllArchived(BMessage* into) const;
virtual status_t AllUnarchived(const BMessage* from);
virtual void SetText(const char* text);
const char* Text() const;
@@ -92,6 +90,9 @@ public:
BLayoutItem* CreateTextViewLayoutItem();
protected:
virtual status_t AllArchived(BMessage* into) const;
virtual status_t AllUnarchived(const BMessage* from);
virtual void LayoutInvalidated(bool descendants);
virtual void DoLayout();