summaryrefslogtreecommitdiff
path: root/include/sfx2/sidebar/Panel.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/sfx2/sidebar/Panel.hxx')
-rw-r--r--include/sfx2/sidebar/Panel.hxx48
1 files changed, 31 insertions, 17 deletions
diff --git a/include/sfx2/sidebar/Panel.hxx b/include/sfx2/sidebar/Panel.hxx
index 1df3802c2f48..c934f3e58169 100644
--- a/include/sfx2/sidebar/Panel.hxx
+++ b/include/sfx2/sidebar/Panel.hxx
@@ -24,13 +24,25 @@
#include <vector>
-namespace com::sun::star::frame { class XFrame; }
-namespace com::sun::star::ui { class XSidebarPanel; }
-namespace com::sun::star::ui { class XUIElement; }
-namespace com::sun::star::awt { class XWindow; }
-
-namespace sfx2::sidebar {
+namespace com::sun::star::frame
+{
+class XFrame;
+}
+namespace com::sun::star::ui
+{
+class XSidebarPanel;
+}
+namespace com::sun::star::ui
+{
+class XUIElement;
+}
+namespace com::sun::star::awt
+{
+class XWindow;
+}
+namespace sfx2::sidebar
+{
class PanelDescriptor;
class PanelTitleBar;
class Context;
@@ -50,15 +62,18 @@ public:
virtual ~Panel() override;
virtual void dispose() override;
- VclPtr<PanelTitleBar> const & GetTitleBar() const;
- bool IsTitleBarOptional() const { return mbIsTitleBarOptional;}
- void SetUIElement (const css::uno::Reference<css::ui::XUIElement>& rxElement);
- const css::uno::Reference<css::ui::XSidebarPanel>& GetPanelComponent() const { return mxPanelComponent;}
+ VclPtr<PanelTitleBar> const& GetTitleBar() const;
+ bool IsTitleBarOptional() const { return mbIsTitleBarOptional; }
+ void SetUIElement(const css::uno::Reference<css::ui::XUIElement>& rxElement);
+ const css::uno::Reference<css::ui::XSidebarPanel>& GetPanelComponent() const
+ {
+ return mxPanelComponent;
+ }
css::uno::Reference<css::awt::XWindow> GetElementWindow();
- void SetExpanded (const bool bIsExpanded);
- bool IsExpanded() const { return mbIsExpanded;}
- bool HasIdPredicate (const OUString& rsId) const;
- const OUString& GetId() const { return msPanelId;}
+ void SetExpanded(const bool bIsExpanded);
+ bool IsExpanded() const { return mbIsExpanded; }
+ bool HasIdPredicate(const OUString& rsId) const;
+ const OUString& GetId() const { return msPanelId; }
void TriggerDeckLayouting() { maDeckLayoutTrigger(); }
/// Set whether a panel should be present but invisible / inactive
@@ -66,7 +81,7 @@ public:
bool IsLurking() const { return mbLurking; }
virtual void Resize() override;
- virtual void DataChanged (const DataChangedEvent& rEvent) override;
+ virtual void DataChanged(const DataChangedEvent& rEvent) override;
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
virtual void DumpAsPropertyTree(tools::JsonWriter&) override;
@@ -81,9 +96,8 @@ private:
const std::function<Context()> maContextAccess;
const css::uno::Reference<css::frame::XFrame>& mxFrame;
VclPtr<PanelTitleBar> mpTitleBar;
-
};
-typedef std::vector<VclPtr<Panel> > SharedPanelContainer;
+typedef std::vector<VclPtr<Panel>> SharedPanelContainer;
} // end of namespace sfx2::sidebar