Kaydet (Commit) a7ef614f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods

Change-Id: I262a9e75ec20fad15b550b84989fd7acc118c53a
üst 79d1033f
......@@ -393,25 +393,7 @@ void applyTheme(SfxStyleSheetBasePool* pPool, const OUString& sFontSetName, cons
}
}
} // end anonymous namespace
namespace sw { namespace sidebar {
VclPtr<vcl::Window> ThemePanel::Create (vcl::Window* pParent,
const css::uno::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings)
{
if (pParent == NULL)
throw css::lang::IllegalArgumentException("no parent Window given to PagePropertyPanel::Create", NULL, 0);
if (!rxFrame.is())
throw css::lang::IllegalArgumentException("no XFrame given to PagePropertyPanel::Create", NULL, 1);
if (pBindings == NULL)
throw css::lang::IllegalArgumentException("no SfxBindings given to PagePropertyPanel::Create", NULL, 2);
return VclPtr<ThemePanel>::Create(pParent, rxFrame, pBindings);
}
BitmapEx ThemePanel::GenerateColorPreview(const svx::ColorSet& rColorSet)
BitmapEx GenerateColorPreview(const svx::ColorSet& rColorSet)
{
ScopedVclPtrInstance<VirtualDevice> pVirtualDev(*Application::GetDefaultDevice());
sal_Int32 nScaleFactor = pVirtualDev->GetDPIScaleFactor();
......@@ -441,6 +423,24 @@ BitmapEx ThemePanel::GenerateColorPreview(const svx::ColorSet& rColorSet)
return pVirtualDev->GetBitmapEx(Point(), aSize);
}
} // end anonymous namespace
namespace sw { namespace sidebar {
VclPtr<vcl::Window> ThemePanel::Create (vcl::Window* pParent,
const css::uno::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings)
{
if (pParent == NULL)
throw css::lang::IllegalArgumentException("no parent Window given to PagePropertyPanel::Create", NULL, 0);
if (!rxFrame.is())
throw css::lang::IllegalArgumentException("no XFrame given to PagePropertyPanel::Create", NULL, 1);
if (pBindings == NULL)
throw css::lang::IllegalArgumentException("no SfxBindings given to PagePropertyPanel::Create", NULL, 2);
return VclPtr<ThemePanel>::Create(pParent, rxFrame, pBindings);
}
ThemePanel::ThemePanel(vcl::Window* pParent,
const css::uno::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings)
......
......@@ -64,8 +64,6 @@ private:
virtual void dispose() SAL_OVERRIDE;
BitmapEx GenerateColorPreview(const svx::ColorSet& rColorSet);
SfxBindings* mpBindings;
VclPtr<ListBox> mpListBoxFonts;
......
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