Switch VclBuilder constructors to use VclPtr.
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
This commit is contained in:
parent
e7473c692c
commit
9f016bd694
@ -202,7 +202,7 @@ VCL_BUILDER_DECL_FACTORY(TreeListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
return new TreeListBox(pParent, nWinBits);
|
return VclPtr<TreeListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
TreeListBox::~TreeListBox ()
|
TreeListBox::~TreeListBox ()
|
||||||
|
@ -152,7 +152,7 @@ VCL_BUILDER_DECL_FACTORY(CheckBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
return new CheckBox(pParent, nWinBits);
|
return VclPtr<CheckBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox::~CheckBox()
|
CheckBox::~CheckBox()
|
||||||
|
@ -47,8 +47,6 @@ using namespace ::com::sun::star::resource;
|
|||||||
|
|
||||||
// ExtTreeListBox
|
// ExtTreeListBox
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ExtTreeListBox::ExtTreeListBox(vcl::Window* pParent, WinBits nStyle)
|
ExtTreeListBox::ExtTreeListBox(vcl::Window* pParent, WinBits nStyle)
|
||||||
: TreeListBox(pParent, nStyle)
|
: TreeListBox(pParent, nStyle)
|
||||||
{
|
{
|
||||||
@ -60,7 +58,7 @@ VCL_BUILDER_DECL_FACTORY(ExtTreeListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
return new ExtTreeListBox(pParent, nWinBits);
|
return VclPtr<ExtTreeListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ExtTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
|
bool ExtTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
|
||||||
|
@ -42,7 +42,7 @@ VCL_BUILDER_DECL_FACTORY(SeriesListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SeriesListBox(pParent, nWinStyle);
|
return VclPtr<SeriesListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SvTreeListEntry* SeriesListBox::CreateEntry() const
|
SvTreeListEntry* SeriesListBox::CreateEntry() const
|
||||||
|
@ -661,7 +661,7 @@ VCL_BUILDER_DECL_FACTORY(SfxAccCfgTabListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new SfxAccCfgTabListBox_Impl(pParent, nWinBits);
|
return VclPtr<SfxAccCfgTabListBox_Impl>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SfxAccCfgTabListBox_Impl::InitEntry(SvTreeListEntry* pEntry,
|
void SfxAccCfgTabListBox_Impl::InitEntry(SvTreeListEntry* pEntry,
|
||||||
|
@ -266,7 +266,7 @@ VCL_BUILDER_DECL_FACTORY(SfxConfigFunctionListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new SfxConfigFunctionListBox(pParent, nWinBits);
|
return VclPtr<SfxConfigFunctionListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
SfxConfigFunctionListBox::~SfxConfigFunctionListBox()
|
SfxConfigFunctionListBox::~SfxConfigFunctionListBox()
|
||||||
@ -408,7 +408,7 @@ VCL_BUILDER_DECL_FACTORY(SfxConfigGroupListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new SfxConfigGroupListBox(pParent, nWinBits);
|
return VclPtr<SfxConfigGroupListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
SfxConfigGroupListBox::~SfxConfigGroupListBox()
|
SfxConfigGroupListBox::~SfxConfigGroupListBox()
|
||||||
|
@ -161,7 +161,7 @@ VCL_BUILDER_DECL_FACTORY(MacroEventListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new MacroEventListBox(pParent, nWinBits);
|
return VclPtr<MacroEventListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size MacroEventListBox::GetOptimalSize() const
|
Size MacroEventListBox::GetOptimalSize() const
|
||||||
|
@ -95,7 +95,7 @@ VCL_BUILDER_DECL_FACTORY(SvxConfigFunctionListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new SvxConfigFunctionListBox(pParent, nWinBits);
|
return VclPtr<SvxConfigFunctionListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
SvxConfigFunctionListBox::~SvxConfigFunctionListBox()
|
SvxConfigFunctionListBox::~SvxConfigFunctionListBox()
|
||||||
@ -228,7 +228,7 @@ VCL_BUILDER_DECL_FACTORY(SvxConfigGroupListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new SvxConfigGroupListBox(pParent, nWinBits);
|
return VclPtr<SvxConfigGroupListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
SvxConfigGroupListBox::~SvxConfigGroupListBox()
|
SvxConfigGroupListBox::~SvxConfigGroupListBox()
|
||||||
|
@ -1222,7 +1222,7 @@ SentenceEditWindow_Impl::SentenceEditWindow_Impl(vcl::Window * pParent, WinBits
|
|||||||
VCL_BUILDER_DECL_FACTORY(SentenceEditWindow)
|
VCL_BUILDER_DECL_FACTORY(SentenceEditWindow)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new SentenceEditWindow_Impl(pParent, WB_BORDER|WB_VSCROLL|WB_IGNORETAB);
|
return VclPtr<SentenceEditWindow_Impl>::Create(pParent, WB_BORDER|WB_VSCROLL|WB_IGNORETAB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ VCL_BUILDER_DECL_FACTORY(ColorPreviewControl)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
|
|
||||||
return new ColorPreviewControl(pParent, nBits);
|
return VclPtr<ColorPreviewControl>::Create(pParent, nBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorPreviewControl::SetColor( const Color& rCol )
|
void ColorPreviewControl::SetColor( const Color& rCol )
|
||||||
@ -376,7 +376,7 @@ VCL_BUILDER_DECL_FACTORY(ColorFieldControl)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
|
|
||||||
return new ColorFieldControl(pParent, nBits);
|
return VclPtr<ColorFieldControl>::Create(pParent, nBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size ColorFieldControl::GetOptimalSize() const
|
Size ColorFieldControl::GetOptimalSize() const
|
||||||
@ -769,7 +769,7 @@ VCL_BUILDER_DECL_FACTORY(ColorSliderControl)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
|
|
||||||
return new ColorSliderControl(pParent, nBits);
|
return VclPtr<ColorSliderControl>::Create(pParent, nBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorSliderControl::UpdateBitmap()
|
void ColorSliderControl::UpdateBitmap()
|
||||||
|
@ -45,7 +45,7 @@ VCL_BUILDER_DECL_FACTORY(GraphicPreviewWindow)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new GraphicPreviewWindow(pParent, nWinBits);
|
return VclPtr<GraphicPreviewWindow>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size GraphicPreviewWindow::GetOptimalSize() const
|
Size GraphicPreviewWindow::GetOptimalSize() const
|
||||||
|
@ -90,7 +90,7 @@ VCL_BUILDER_DECL_FACTORY(SvxHlmarkTreeLBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvxHlmarkTreeLBox(pParent, nWinStyle);
|
return VclPtr<SvxHlmarkTreeLBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size SvxHlmarkTreeLBox::GetOptimalSize() const
|
Size SvxHlmarkTreeLBox::GetOptimalSize() const
|
||||||
|
@ -931,7 +931,7 @@ void ColorConfigCtrl_Impl::dispose()
|
|||||||
VCL_BUILDER_DECL_FACTORY(ColorConfigCtrl)
|
VCL_BUILDER_DECL_FACTORY(ColorConfigCtrl)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new ColorConfigCtrl_Impl(pParent);
|
return VclPtr<ColorConfigCtrl_Impl>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorConfigCtrl_Impl::Update ()
|
void ColorConfigCtrl_Impl::Update ()
|
||||||
|
@ -2463,7 +2463,7 @@ VCL_BUILDER_DECL_FACTORY(AutoCompleteMultiListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new OfaAutoCompleteTabPage::AutoCompleteMultiListBox(pParent, nWinBits);
|
return VclPtr<OfaAutoCompleteTabPage::AutoCompleteMultiListBox>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
// class OfaSmartTagOptionsTabPage ---------------------------------------------
|
// class OfaSmartTagOptionsTabPage ---------------------------------------------
|
||||||
|
@ -219,7 +219,7 @@ BackgroundPreviewImpl::BackgroundPreviewImpl(vcl::Window* pParent)
|
|||||||
VCL_BUILDER_DECL_FACTORY(BackgroundPreview)
|
VCL_BUILDER_DECL_FACTORY(BackgroundPreview)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new BackgroundPreviewImpl(pParent);
|
return VclPtr<BackgroundPreviewImpl>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BackgroundPreviewImpl::setBmp(bool bBmp)
|
void BackgroundPreviewImpl::setBmp(bool bBmp)
|
||||||
|
@ -796,7 +796,7 @@ VCL_BUILDER_DECL_FACTORY(SvxCropExample)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvxCropExample(pParent, nWinStyle);
|
return VclPtr<SvxCropExample>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxCropExample::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
|
void SvxCropExample::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
|
||||||
|
@ -37,7 +37,7 @@ OConnectionURLEdit::OConnectionURLEdit(vcl::Window* _pParent, WinBits _nBits,boo
|
|||||||
VCL_BUILDER_DECL_FACTORY(ConnectionURLEdit)
|
VCL_BUILDER_DECL_FACTORY(ConnectionURLEdit)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new OConnectionURLEdit(pParent, WB_BORDER, false);
|
return VclPtr<OConnectionURLEdit>::Create(pParent, WB_BORDER, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
OConnectionURLEdit::~OConnectionURLEdit()
|
OConnectionURLEdit::~OConnectionURLEdit()
|
||||||
|
@ -81,7 +81,7 @@ VCL_BUILDER_DECL_FACTORY(OTableTreeListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new OTableTreeListBox(pParent, nWinStyle);
|
return VclPtr<OTableTreeListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OTableTreeListBox::implSetDefaultImages()
|
void OTableTreeListBox::implSetDefaultImages()
|
||||||
|
@ -106,7 +106,7 @@ namespace dbaui
|
|||||||
VCL_BUILDER_DECL_FACTORY(DbaIndexFieldsControl)
|
VCL_BUILDER_DECL_FACTORY(DbaIndexFieldsControl)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new IndexFieldsControl (pParent, WB_BORDER | WB_NOTABSTOP);
|
return VclPtr<IndexFieldsControl>::Create(pParent, WB_BORDER | WB_NOTABSTOP);
|
||||||
}
|
}
|
||||||
|
|
||||||
IndexFieldsControl::~IndexFieldsControl()
|
IndexFieldsControl::~IndexFieldsControl()
|
||||||
|
@ -199,7 +199,7 @@ void ExtBoxWithBtns_Impl::InitFromDialog(ExtMgrDialog *pParentDialog)
|
|||||||
VCL_BUILDER_DECL_FACTORY(ExtBoxWithBtns)
|
VCL_BUILDER_DECL_FACTORY(ExtBoxWithBtns)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new ExtBoxWithBtns_Impl(pParent);
|
return VclPtr<ExtBoxWithBtns_Impl>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -833,7 +833,7 @@ Size ExtensionBox_Impl::GetOptimalSize() const
|
|||||||
VCL_BUILDER_DECL_FACTORY(ExtensionBox)
|
VCL_BUILDER_DECL_FACTORY(ExtensionBox)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new ExtensionBox_Impl(pParent);
|
return VclPtr<ExtensionBox_Impl>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
long ExtensionBox_Impl::PointToPos( const Point& rPos )
|
long ExtensionBox_Impl::PointToPos( const Point& rPos )
|
||||||
|
@ -132,7 +132,7 @@ VCL_BUILDER_DECL_FACTORY(LicenseView)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new LicenseView(pParent, nWinStyle | WB_VSCROLL);
|
return VclPtr<LicenseView>::Create(pParent, nWinStyle | WB_VSCROLL);
|
||||||
}
|
}
|
||||||
|
|
||||||
LicenseView::~LicenseView()
|
LicenseView::~LicenseView()
|
||||||
|
@ -311,10 +311,9 @@ namespace pcr
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new TabOrderListBox(pParent, nWinStyle);
|
return VclPtr<TabOrderListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TabOrderListBox::~TabOrderListBox()
|
TabOrderListBox::~TabOrderListBox()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ VCL_BUILDER_DECL_FACTORY(ScanPreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new ScanPreview(pParent, nWinStyle);
|
return VclPtr<ScanPreview>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SaneDlg::SaneDlg( vcl::Window* pParent, Sane& rSane, bool bScanEnabled ) :
|
SaneDlg::SaneDlg( vcl::Window* pParent, Sane& rSane, bool bScanEnabled ) :
|
||||||
|
@ -489,7 +489,7 @@ RefEdit::RefEdit( vcl::Window* _pParent,IControlReferenceHandler* pParent,
|
|||||||
VCL_BUILDER_DECL_FACTORY(RefEdit)
|
VCL_BUILDER_DECL_FACTORY(RefEdit)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new RefEdit(pParent, NULL, WB_BORDER);
|
return VclPtr<RefEdit>::Create(pParent, nullptr, WB_BORDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
RefEdit::~RefEdit()
|
RefEdit::~RefEdit()
|
||||||
|
@ -10,24 +10,25 @@
|
|||||||
#ifndef INCLUDED_VCL_BUILDER_FACTORY_HXX
|
#ifndef INCLUDED_VCL_BUILDER_FACTORY_HXX
|
||||||
#define INCLUDED_VCL_BUILDER_FACTORY_HXX
|
#define INCLUDED_VCL_BUILDER_FACTORY_HXX
|
||||||
|
|
||||||
|
#include <vcl/vclptr.hxx>
|
||||||
#include <vcl/builder.hxx>
|
#include <vcl/builder.hxx>
|
||||||
|
|
||||||
#define VCL_BUILDER_DECL_FACTORY(typeName) \
|
#define VCL_BUILDER_DECL_FACTORY(typeName) \
|
||||||
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL \
|
extern "C" SAL_DLLPUBLIC_EXPORT VclPtr<vcl::Window> SAL_CALL \
|
||||||
make##typeName(vcl::Window *pParent, VclBuilder::stringmap &rMap)
|
make##typeName(vcl::Window *pParent, VclBuilder::stringmap &rMap)
|
||||||
|
|
||||||
#define VCL_BUILDER_FACTORY(typeName) \
|
#define VCL_BUILDER_FACTORY(typeName) \
|
||||||
VCL_BUILDER_DECL_FACTORY(typeName) \
|
VCL_BUILDER_DECL_FACTORY(typeName) \
|
||||||
{ \
|
{ \
|
||||||
(void)rMap; \
|
(void)rMap; \
|
||||||
return new typeName(pParent); \
|
return VclPtr<typeName>::Create(pParent); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VCL_BUILDER_FACTORY_ARGS(typeName,arg1) \
|
#define VCL_BUILDER_FACTORY_ARGS(typeName,arg1) \
|
||||||
VCL_BUILDER_DECL_FACTORY(typeName) \
|
VCL_BUILDER_DECL_FACTORY(typeName) \
|
||||||
{ \
|
{ \
|
||||||
(void)rMap; \
|
(void)rMap; \
|
||||||
return new typeName(pParent,arg1); \
|
return VclPtr<typeName>::Create(pParent,arg1); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,7 +49,7 @@ ScDoubleField::ScDoubleField( vcl::Window* pParent, WinBits nStyle ) :
|
|||||||
VCL_BUILDER_DECL_FACTORY(ScDoubleField)
|
VCL_BUILDER_DECL_FACTORY(ScDoubleField)
|
||||||
{
|
{
|
||||||
VclBuilder::ensureDefaultWidthChars(rMap);
|
VclBuilder::ensureDefaultWidthChars(rMap);
|
||||||
return new ScDoubleField(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
|
return VclPtr<ScDoubleField>::Create(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScDoubleField::GetValue( double& rfValue ) const
|
bool ScDoubleField::GetValue( double& rfValue ) const
|
||||||
|
@ -151,7 +151,7 @@ VCL_BUILDER_DECL_FACTORY(ScCondFormatList)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new ScCondFormatList(pParent, nWinBits);
|
return VclPtr<ScCondFormatList>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size ScCondFormatList::GetOptimalSize() const
|
Size ScCondFormatList::GetOptimalSize() const
|
||||||
|
@ -163,7 +163,7 @@ VCL_BUILDER_DECL_FACTORY(ScDPFunctionListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new ScDPFunctionListBox(pParent, nWinStyle);
|
return VclPtr<ScDPFunctionListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScDPFunctionListBox::SetSelection( sal_uInt16 nFuncMask )
|
void ScDPFunctionListBox::SetSelection( sal_uInt16 nFuncMask )
|
||||||
|
@ -940,7 +940,7 @@ bool ScValidationDlg::RemoveRefDlg( bool bRestoreModal /* = true */ )
|
|||||||
VCL_BUILDER_DECL_FACTORY(ScRefButtonEx)
|
VCL_BUILDER_DECL_FACTORY(ScRefButtonEx)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new ScTPValidationValue::ScRefButtonEx(pParent, 0);
|
return VclPtr<ScTPValidationValue::ScRefButtonEx>::Create(pParent, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScTPValidationValue::ScRefButtonEx::Click()
|
void ScTPValidationValue::ScRefButtonEx::Click()
|
||||||
|
@ -166,7 +166,7 @@ VCL_BUILDER_DECL_FACTORY(ScTabBgColorValueSet)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new ScTabBgColorDlg::ScTabBgColorValueSet(pParent, nWinBits);
|
return VclPtr<ScTabBgColorDlg::ScTabBgColorValueSet>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScTabBgColorDlg::ScTabBgColorValueSet::KeyInput( const KeyEvent& rKEvt )
|
void ScTabBgColorDlg::ScTabBgColorValueSet::KeyInput( const KeyEvent& rKEvt )
|
||||||
|
@ -139,7 +139,7 @@ void ScEditWindow::dispose()
|
|||||||
VCL_BUILDER_DECL_FACTORY(ScEditWindow)
|
VCL_BUILDER_DECL_FACTORY(ScEditWindow)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new ScEditWindow (pParent, WB_BORDER|WB_TABSTOP, Left);
|
return VclPtr<ScEditWindow>::Create(pParent, WB_BORDER|WB_TABSTOP, Left);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScEditWindow::SetNumType(SvxNumType eNumType)
|
void ScEditWindow::SetNumType(SvxNumType eNumType)
|
||||||
|
@ -35,7 +35,7 @@ VCL_BUILDER_DECL_FACTORY(SdHtmlAttrPreview)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
|
|
||||||
return new SdHtmlAttrPreview(pParent, nWinStyle);
|
return VclPtr<SdHtmlAttrPreview>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SdHtmlAttrPreview::~SdHtmlAttrPreview()
|
SdHtmlAttrPreview::~SdHtmlAttrPreview()
|
||||||
|
@ -115,7 +115,7 @@ VCL_BUILDER_DECL_FACTORY(ClientBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new ClientBox(pParent, nWinStyle);
|
return VclPtr<ClientBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size ClientBox::GetOptimalSize() const
|
Size ClientBox::GetOptimalSize() const
|
||||||
|
@ -55,7 +55,7 @@ VCL_BUILDER_DECL_FACTORY(SdPageListControl)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SdPageListControl(pParent, nWinStyle);
|
return VclPtr<SdPageListControl>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
IMPL_LINK_NOARG(SdPageListControl, CheckButtonClickHdl)
|
IMPL_LINK_NOARG(SdPageListControl, CheckButtonClickHdl)
|
||||||
|
@ -81,7 +81,7 @@ VCL_BUILDER_DECL_FACTORY(FadeEffectLB)
|
|||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nBits |= WB_DROPDOWN;
|
nBits |= WB_DROPDOWN;
|
||||||
|
|
||||||
return new FadeEffectLB(pParent, nBits);
|
return VclPtr<FadeEffectLB>::Create(pParent, nBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FadeEffectLB::applySelected( SdPage* pSlide ) const
|
void FadeEffectLB::applySelected( SdPage* pSlide ) const
|
||||||
|
@ -70,7 +70,7 @@ VCL_BUILDER_DECL_FACTORY(SdDocPreviewWin)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
|
|
||||||
return new SdDocPreviewWin(pParent, nWinStyle);
|
return VclPtr<SdDocPreviewWin>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SdDocPreviewWin::SdDocPreviewWin( vcl::Window* pParent, const WinBits nStyle )
|
SdDocPreviewWin::SdDocPreviewWin( vcl::Window* pParent, const WinBits nStyle )
|
||||||
|
@ -104,7 +104,7 @@ VCL_BUILDER_DECL_FACTORY(SdPageObjsTLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SdPageObjsTLB(pParent, nWinStyle);
|
return VclPtr<SdPageObjsTLB>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SdPageObjsTLB::SdPageObjsTransferable::~SdPageObjsTransferable()
|
SdPageObjsTLB::SdPageObjsTransferable::~SdPageObjsTransferable()
|
||||||
|
@ -372,7 +372,7 @@ VCL_BUILDER_DECL_FACTORY(TableValueSet)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new TableValueSet(pParent, nWinStyle);
|
return VclPtr<TableValueSet>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TableDesignWidget::updateControls()
|
void TableDesignWidget::updateControls()
|
||||||
|
@ -297,7 +297,7 @@ VCL_BUILDER_DECL_FACTORY(ContentListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new ContentListBox_Impl(pParent, nWinStyle);
|
return VclPtr<ContentListBox_Impl>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
ContentListBox_Impl::~ContentListBox_Impl()
|
ContentListBox_Impl::~ContentListBox_Impl()
|
||||||
@ -490,7 +490,7 @@ VCL_BUILDER_DECL_FACTORY(IndexBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
IndexBox_Impl* pListBox = new IndexBox_Impl(pParent, nWinBits);
|
VclPtrInstance<IndexBox_Impl> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -875,7 +875,7 @@ VCL_BUILDER_DECL_FACTORY(SearchBox)
|
|||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE|WB_DROPDOWN;
|
WinBits nWinBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE|WB_DROPDOWN;
|
||||||
SearchBox_Impl* pComboBox = new SearchBox_Impl(pParent, nWinBits);
|
VclPtrInstance<SearchBox_Impl> pComboBox(pParent, nWinBits);
|
||||||
pComboBox->EnableAutoSize(true);
|
pComboBox->EnableAutoSize(true);
|
||||||
return pComboBox;
|
return pComboBox;
|
||||||
}
|
}
|
||||||
@ -910,7 +910,7 @@ VCL_BUILDER_DECL_FACTORY(SearchResultsBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
SearchResultsBox_Impl* pListBox = new SearchResultsBox_Impl(pParent, nWinBits);
|
VclPtrInstance<SearchResultsBox_Impl> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -1177,7 +1177,7 @@ VCL_BUILDER_DECL_FACTORY(BookmarksBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
BookmarksBox_Impl* pListBox = new BookmarksBox_Impl(pParent, nWinBits);
|
VclPtrInstance<BookmarksBox_Impl> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ TemplateRemoteView::TemplateRemoteView (vcl::Window *pParent, WinBits nWinStyle,
|
|||||||
VCL_BUILDER_DECL_FACTORY(TemplateRemoteView)
|
VCL_BUILDER_DECL_FACTORY(TemplateRemoteView)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new TemplateRemoteView(pParent, WB_VSCROLL, false);
|
return VclPtr<TemplateRemoteView>::Create(pParent, WB_VSCROLL, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TemplateRemoteView::showRootRegion()
|
void TemplateRemoteView::showRootRegion()
|
||||||
|
@ -119,7 +119,7 @@ void SfxPreviewWin_Impl::Paint( vcl::RenderContext& /*rRenderContext*/, const Re
|
|||||||
VCL_BUILDER_DECL_FACTORY(SfxPreviewWin)
|
VCL_BUILDER_DECL_FACTORY(SfxPreviewWin)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new SfxPreviewWin_Impl(pParent, 0);
|
return VclPtr<SfxPreviewWin_Impl>::Create(pParent, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SfxNewFileDialog_Impl
|
class SfxNewFileDialog_Impl
|
||||||
|
@ -264,7 +264,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowFont)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
|
|
||||||
return new SmShowFont(pParent, nWinStyle);
|
return VclPtr<SmShowFont>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size SmShowFont::GetOptimalSize() const
|
Size SmShowFont::GetOptimalSize() const
|
||||||
@ -1405,7 +1405,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowSymbol)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
|
|
||||||
return new SmShowSymbol(pParent, nWinStyle);
|
return VclPtr<SmShowSymbol>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SmShowSymbol::Resize()
|
void SmShowSymbol::Resize()
|
||||||
@ -1699,7 +1699,7 @@ VCL_BUILDER_DECL_FACTORY(SmShowChar)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
|
|
||||||
return new SmShowChar(pParent, nWinStyle);
|
return VclPtr<SmShowChar>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SmShowChar::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRect)
|
void SmShowChar::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRect)
|
||||||
|
@ -1130,11 +1130,9 @@ VCL_BUILDER_DECL_FACTORY(SvtFileView)
|
|||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nBits |= WB_DROPDOWN;
|
nBits |= WB_DROPDOWN;
|
||||||
|
|
||||||
return new SvtFileView(pParent, nBits, true, true);
|
return VclPtr<SvtFileView>::Create(pParent, nBits, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Size SvtFileView::GetOptimalSize() const
|
Size SvtFileView::GetOptimalSize() const
|
||||||
{
|
{
|
||||||
return LogicToPixel(Size(208, 50), MAP_APPFONT);
|
return LogicToPixel(Size(208, 50), MAP_APPFONT);
|
||||||
|
@ -104,7 +104,7 @@ VCL_BUILDER_DECL_FACTORY(SvTabListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvTabListBox(pParent, nWinStyle);
|
return VclPtr<SvTabListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SvTabListBox::~SvTabListBox()
|
SvTabListBox::~SvTabListBox()
|
||||||
|
@ -440,7 +440,7 @@ VCL_BUILDER_DECL_FACTORY(SvTreeListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvTreeListBox(pParent, nWinStyle);
|
return VclPtr<SvTreeListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvTreeListBox::Clear()
|
void SvTreeListBox::Clear()
|
||||||
|
@ -110,7 +110,7 @@ VCL_BUILDER_DECL_FACTORY(ColorListBox)
|
|||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nWinBits |= WB_DROPDOWN;
|
nWinBits |= WB_DROPDOWN;
|
||||||
ColorListBox *pListBox = new ColorListBox(pParent, nWinBits);
|
VclPtrInstance<ColorListBox> pListBox(pParent, nWinBits);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
@ -742,7 +742,7 @@ VCL_BUILDER_DECL_FACTORY(LineListBox)
|
|||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nWinBits |= WB_DROPDOWN;
|
nWinBits |= WB_DROPDOWN;
|
||||||
LineListBox *pListBox = new LineListBox(pParent, nWinBits);
|
VclPtrInstance<LineListBox> pListBox(pParent, nWinBits);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
@ -945,7 +945,7 @@ VCL_BUILDER_DECL_FACTORY(FontNameBox)
|
|||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nWinBits |= WB_DROPDOWN;
|
nWinBits |= WB_DROPDOWN;
|
||||||
FontNameBox *pListBox = new FontNameBox(pParent, nWinBits);
|
VclPtrInstance<FontNameBox> pListBox(pParent, nWinBits);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
@ -1333,7 +1333,7 @@ VCL_BUILDER_DECL_FACTORY(FontStyleBox)
|
|||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nWinBits |= WB_DROPDOWN;
|
nWinBits |= WB_DROPDOWN;
|
||||||
FontStyleBox *pListBox = new FontStyleBox(pParent, nWinBits);
|
VclPtrInstance<FontStyleBox> pListBox(pParent, nWinBits);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
@ -1529,7 +1529,7 @@ VCL_BUILDER_DECL_FACTORY(FontSizeBox)
|
|||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP;
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nWinBits |= WB_DROPDOWN;
|
nWinBits |= WB_DROPDOWN;
|
||||||
FontSizeBox* pListBox = new FontSizeBox(pParent, nWinBits);
|
VclPtrInstance<FontSizeBox> pListBox(pParent, nWinBits);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
|
@ -868,7 +868,7 @@ VCL_BUILDER_DECL_FACTORY(SvtURLBox)
|
|||||||
(void)rMap;
|
(void)rMap;
|
||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|
|
||||||
WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL;
|
WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL;
|
||||||
SvtURLBox* pListBox = new SvtURLBox(pParent, nWinBits, INetProtocol::NotValid, false);
|
VclPtrInstance<SvtURLBox> pListBox(pParent, nWinBits, INetProtocol::NotValid, false);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ namespace svt
|
|||||||
(void)rMap;
|
(void)rMap;
|
||||||
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|
|
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|
|
||||||
WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL;
|
WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL;
|
||||||
OFileURLControl* pListBox = new OFileURLControl(pParent, nWinBits);
|
VclPtrInstance<OFileURLControl> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ VCL_BUILDER_DECL_FACTORY(ValueSet)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new ValueSet(pParent, nWinBits);
|
return VclPtr<ValueSet>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
ValueSet::ValueSet( vcl::Window* pParent, const ResId& rResId, bool bDisableTransientChildren ) :
|
ValueSet::ValueSet( vcl::Window* pParent, const ResId& rResId, bool bDisableTransientChildren ) :
|
||||||
|
@ -37,7 +37,7 @@ VCL_BUILDER_DECL_FACTORY(SvxCheckListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvxCheckListBox(pParent, nWinStyle);
|
return VclPtr<SvxCheckListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxCheckListBox::SetNormalStaticImage(const Image& rNormalStaticImage)
|
void SvxCheckListBox::SetNormalStaticImage(const Image& rNormalStaticImage)
|
||||||
|
@ -52,7 +52,7 @@ VCL_BUILDER_DECL_FACTORY(SvxXConnectionPreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvxXConnectionPreview(pParent, nWinStyle);
|
return VclPtr<SvxXConnectionPreview>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
SvxXConnectionPreview::~SvxXConnectionPreview()
|
SvxXConnectionPreview::~SvxXConnectionPreview()
|
||||||
|
@ -1141,7 +1141,7 @@ VCL_BUILDER_DECL_FACTORY(ColorLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
ColorLB *pListBox = new ColorLB(pParent, nWinBits);
|
VclPtrInstance<ColorLB> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -1193,7 +1193,7 @@ VCL_BUILDER_DECL_FACTORY(HatchingLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
HatchingLB *pListBox = new HatchingLB(pParent, nWinStyle);
|
VclPtrInstance<HatchingLB> pListBox(pParent, nWinStyle);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -1286,7 +1286,7 @@ VCL_BUILDER_DECL_FACTORY(GradientLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
GradientLB *pListBox = new GradientLB(pParent, nWinStyle);
|
VclPtrInstance<GradientLB> pListBox(pParent, nWinStyle);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -1402,7 +1402,7 @@ VCL_BUILDER_DECL_FACTORY(BitmapLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
BitmapLB *pListBox = new BitmapLB(pParent, nWinStyle);
|
VclPtrInstance<BitmapLB> pListBox(pParent, nWinStyle);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -1575,7 +1575,7 @@ VCL_BUILDER_DECL_FACTORY(LineLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
LineLB *pListBox = new LineLB(pParent, nWinBits);
|
VclPtrInstance<LineLB> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
@ -1673,7 +1673,7 @@ VCL_BUILDER_DECL_FACTORY(LineEndLB)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
LineEndLB *pListBox = new LineEndLB(pParent, nWinBits);
|
VclPtrInstance<LineEndLB> pListBox(pParent, nWinBits);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
@ -496,8 +496,7 @@ VCL_BUILDER_DECL_FACTORY(SvxFontPrevWindow)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
SvxFontPrevWindow *pWindow = new SvxFontPrevWindow(pParent, nWinStyle);
|
return VclPtr<SvxFontPrevWindow>::Create(pParent, nWinStyle);
|
||||||
return pWindow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SvxFontPrevWindow::~SvxFontPrevWindow()
|
SvxFontPrevWindow::~SvxFontPrevWindow()
|
||||||
|
@ -95,7 +95,7 @@ VCL_BUILDER_DECL_FACTORY(SvxFontListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvxFontListBox(pParent, nWinStyle);
|
return VclPtr<SvxFontListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxFontListBox::InsertFontEntry( const OUString& rString, const vcl::Font& rFont, const Color* pColor )
|
void SvxFontListBox::InsertFontEntry( const OUString& rString, const vcl::Font& rFont, const Color* pColor )
|
||||||
|
@ -45,7 +45,7 @@ FrameDirectionListBox::FrameDirectionListBox( vcl::Window* pParent, WinBits nBit
|
|||||||
VCL_BUILDER_DECL_FACTORY(FrameDirectionListBox)
|
VCL_BUILDER_DECL_FACTORY(FrameDirectionListBox)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
FrameDirectionListBox* pListBox = new FrameDirectionListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP);
|
VclPtrInstance<FrameDirectionListBox> pListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
@ -799,7 +799,7 @@ FrameSelector::~FrameSelector()
|
|||||||
VCL_BUILDER_DECL_FACTORY(SvxFrameSelector)
|
VCL_BUILDER_DECL_FACTORY(SvxFrameSelector)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new FrameSelector(pParent);
|
return VclPtr<FrameSelector>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrameSelector::Initialize( FrameSelFlags nFlags )
|
void FrameSelector::Initialize( FrameSelFlags nFlags )
|
||||||
|
@ -80,7 +80,7 @@ VCL_BUILDER_DECL_FACTORY(GraphCtrl)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new GraphCtrl(pParent, nWinStyle);
|
return VclPtr<GraphCtrl>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
GraphCtrl::~GraphCtrl()
|
GraphCtrl::~GraphCtrl()
|
||||||
|
@ -111,7 +111,7 @@ VCL_BUILDER_DECL_FACTORY(SvxLanguageBox)
|
|||||||
nBits |= WB_DROPDOWN;
|
nBits |= WB_DROPDOWN;
|
||||||
else
|
else
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
SvxLanguageBox *pLanguageBox = new SvxLanguageBox(pParent, nBits);
|
VclPtrInstance<SvxLanguageBox> pLanguageBox(pParent, nBits);
|
||||||
pLanguageBox->EnableAutoSize(true);
|
pLanguageBox->EnableAutoSize(true);
|
||||||
return pLanguageBox;
|
return pLanguageBox;
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ VCL_BUILDER_DECL_FACTORY(SvxLanguageComboBox)
|
|||||||
nBits |= WB_DROPDOWN;
|
nBits |= WB_DROPDOWN;
|
||||||
else
|
else
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
SvxLanguageComboBox *pLanguageBox = new SvxLanguageComboBox(pParent, nBits);
|
VclPtrInstance<SvxLanguageComboBox> pLanguageBox(pParent, nBits);
|
||||||
pLanguageBox->EnableAutoSize(true);
|
pLanguageBox->EnableAutoSize(true);
|
||||||
return pLanguageBox;
|
return pLanguageBox;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ VCL_BUILDER_DECL_FACTORY(SvxXMeasurePreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SvxXMeasurePreview(pParent, nWinStyle);
|
return VclPtr<SvxXMeasurePreview>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size SvxXMeasurePreview::GetOptimalSize() const
|
Size SvxXMeasurePreview::GetOptimalSize() const
|
||||||
|
@ -18,9 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svx/relfld.hxx"
|
#include "svx/relfld.hxx"
|
||||||
#include "vcl/builder.hxx"
|
#include "vcl/builderfactory.hxx"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SvxRelativeField::SvxRelativeField(
|
SvxRelativeField::SvxRelativeField(
|
||||||
vcl::Window *const pParent, WinBits const nBits, FieldUnit const eUnit)
|
vcl::Window *const pParent, WinBits const nBits, FieldUnit const eUnit)
|
||||||
@ -39,17 +37,16 @@ SvxRelativeField::SvxRelativeField(
|
|||||||
SetMax( 9999 );
|
SetMax( 9999 );
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL
|
VCL_BUILDER_DECL_FACTORY(SvxRelativeField)
|
||||||
makeSvxRelativeField(vcl::Window *const pParent, VclBuilder::stringmap & rMap)
|
|
||||||
{
|
{
|
||||||
OString const custom(VclBuilder::extractCustomProperty(rMap));
|
OString const custom(VclBuilder::extractCustomProperty(rMap));
|
||||||
FieldUnit const eUnit(VclBuilder::detectUnit(custom));
|
FieldUnit const eUnit(VclBuilder::detectUnit(custom));
|
||||||
SvxRelativeField *const pRet = new SvxRelativeField(pParent,
|
return VclPtr<SvxRelativeField>::Create(pParent,
|
||||||
WB_BORDER | WB_SPIN | WB_REPEAT | WB_LEFT | WB_GROUP, eUnit);
|
WB_BORDER | WB_SPIN | WB_REPEAT |
|
||||||
return pRet;
|
WB_LEFT | WB_GROUP,
|
||||||
|
eUnit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SvxRelativeField::Modify()
|
void SvxRelativeField::Modify()
|
||||||
{
|
{
|
||||||
MetricField::Modify();
|
MetricField::Modify();
|
||||||
|
@ -48,15 +48,12 @@ VCL_BUILDER_DECL_FACTORY(SvxTextEncodingBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
SvxTextEncodingBox *pListBox = new SvxTextEncodingBox(pParent, nWinBits);
|
VclPtrInstance<SvxTextEncodingBox> pListBox(pParent, nWinBits);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
|
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SvxTextEncodingBox::~SvxTextEncodingBox()
|
SvxTextEncodingBox::~SvxTextEncodingBox()
|
||||||
{
|
{
|
||||||
disposeOnce();
|
disposeOnce();
|
||||||
@ -68,8 +65,6 @@ void SvxTextEncodingBox::dispose()
|
|||||||
ListBox::dispose();
|
ListBox::dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sal_Int32 SvxTextEncodingBox::EncodingToPos_Impl( rtl_TextEncoding nEnc ) const
|
sal_Int32 SvxTextEncodingBox::EncodingToPos_Impl( rtl_TextEncoding nEnc ) const
|
||||||
{
|
{
|
||||||
sal_Int32 nCount = GetEntryCount();
|
sal_Int32 nCount = GetEntryCount();
|
||||||
|
@ -54,7 +54,7 @@ VCL_BUILDER_DECL_FACTORY(GalleryPreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
return new GalleryPreview(pParent, nWinBits);
|
return VclPtr<GalleryPreview>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size GalleryPreview::GetOptimalSize() const
|
Size GalleryPreview::GetOptimalSize() const
|
||||||
|
@ -37,7 +37,7 @@ VCL_BUILDER_DECL_FACTORY(SvxColorValueSet)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinBits |= WB_BORDER;
|
nWinBits |= WB_BORDER;
|
||||||
|
|
||||||
return new SvxColorValueSet(pParent, nWinBits);
|
return VclPtr<SvxColorValueSet>::Create(pParent, nWinBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt32 SvxColorValueSet::getMaxRowCount()
|
sal_uInt32 SvxColorValueSet::getMaxRowCount()
|
||||||
|
@ -394,7 +394,7 @@ VCL_BUILDER_DECL_FACTORY(SwCaptionPreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
return new SwCaptionPreview(pParent, nBits);
|
return VclPtr<SwCaptionPreview>::Create(pParent, nBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwCaptionPreview::Init()
|
void SwCaptionPreview::Init()
|
||||||
@ -940,7 +940,7 @@ VCL_BUILDER_DECL_FACTORY(CaptionComboBox)
|
|||||||
bool bDropdown = VclBuilder::extractDropdown(rMap);
|
bool bDropdown = VclBuilder::extractDropdown(rMap);
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
nBits |= WB_DROPDOWN;
|
nBits |= WB_DROPDOWN;
|
||||||
CaptionComboBox* pComboBox = new CaptionComboBox(pParent, nBits);
|
VclPtrInstance<CaptionComboBox> pComboBox(pParent, nBits);
|
||||||
pComboBox->EnableAutoSize(true);
|
pComboBox->EnableAutoSize(true);
|
||||||
return pComboBox;
|
return pComboBox;
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ SwAddressControl_Impl::SwAddressControl_Impl(vcl::Window* pParent, WinBits nBits
|
|||||||
VCL_BUILDER_DECL_FACTORY(SwAddressControlImpl)
|
VCL_BUILDER_DECL_FACTORY(SwAddressControlImpl)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new SwAddressControl_Impl(pParent, WB_BORDER | WB_DIALOGCONTROL);
|
return VclPtr<SwAddressControl_Impl>::Create(pParent, WB_BORDER | WB_DIALOGCONTROL);
|
||||||
}
|
}
|
||||||
|
|
||||||
SwAddressControl_Impl::~SwAddressControl_Impl()
|
SwAddressControl_Impl::~SwAddressControl_Impl()
|
||||||
|
@ -1292,7 +1292,7 @@ VCL_BUILDER_DECL_FACTORY(DDListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new DDListBox(pParent, nWinStyle);
|
return VclPtr<DDListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DDListBox::SetAddressDialog(SwCustomizeAddressBlockDialog *pParent)
|
void DDListBox::SetAddressDialog(SwCustomizeAddressBlockDialog *pParent)
|
||||||
@ -1354,7 +1354,7 @@ VCL_BUILDER_DECL_FACTORY(AddressMultiLineEdit)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new AddressMultiLineEdit(pParent, nWinStyle);
|
return VclPtr<AddressMultiLineEdit>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddressMultiLineEdit::SetAddressDialog(SwCustomizeAddressBlockDialog *pParent)
|
void AddressMultiLineEdit::SetAddressDialog(SwCustomizeAddressBlockDialog *pParent)
|
||||||
|
@ -34,7 +34,7 @@ VCL_BUILDER_DECL_FACTORY(SwFldRefTreeListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SwFldRefTreeListBox(pParent, nWinStyle);
|
return VclPtr<SwFldRefTreeListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwFldRefTreeListBox::RequestHelp( const HelpEvent& rHEvt )
|
void SwFldRefTreeListBox::RequestHelp( const HelpEvent& rHEvt )
|
||||||
|
@ -1276,9 +1276,8 @@ VCL_BUILDER_DECL_FACTORY(SelectionListBox)
|
|||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
|
|
||||||
SelectionListBox* pListBox = new SelectionListBox(pParent, nBits|WB_SIMPLEMODE);
|
VclPtrInstance<SelectionListBox> pListBox(pParent, nBits|WB_SIMPLEMODE);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
|
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1765,7 +1765,7 @@ VCL_BUILDER_DECL_FACTORY(SwIdxTreeListBox)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SwIdxTreeListBox(pParent, nWinStyle);
|
return VclPtr<SwIdxTreeListBox>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwIdxTreeListBox::RequestHelp( const HelpEvent& rHEvt )
|
void SwIdxTreeListBox::RequestHelp( const HelpEvent& rHEvt )
|
||||||
|
@ -539,7 +539,7 @@ VCL_BUILDER_DECL_FACTORY(AutoFmtPreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new AutoFmtPreview(pParent, nWinStyle);
|
return VclPtr<AutoFmtPreview>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AutoFmtPreview::Resize()
|
void AutoFmtPreview::Resize()
|
||||||
|
@ -65,7 +65,7 @@ void ReturnActionEdit::KeyInput( const KeyEvent& rEvt)
|
|||||||
VCL_BUILDER_DECL_FACTORY(ReturnActionEdit)
|
VCL_BUILDER_DECL_FACTORY(ReturnActionEdit)
|
||||||
{
|
{
|
||||||
VclBuilder::ensureDefaultWidthChars(rMap);
|
VclBuilder::ensureDefaultWidthChars(rMap);
|
||||||
return new ReturnActionEdit(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
|
return VclPtr<ReturnActionEdit>::Create(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@ -186,7 +186,7 @@ VCL_BUILDER_DECL_FACTORY(SwDBTreeList)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nStyle |= WB_BORDER;
|
nStyle |= WB_BORDER;
|
||||||
return new SwDBTreeList(pParent, nStyle);
|
return VclPtr<SwDBTreeList>::Create(pParent, nStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
Size SwDBTreeList::GetOptimalSize() const
|
Size SwDBTreeList::GetOptimalSize() const
|
||||||
|
@ -213,7 +213,7 @@ VCL_BUILDER_DECL_FACTORY(SwAddressPreview)
|
|||||||
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
OString sBorder = VclBuilder::extractCustomProperty(rMap);
|
||||||
if (!sBorder.isEmpty())
|
if (!sBorder.isEmpty())
|
||||||
nWinStyle |= WB_BORDER;
|
nWinStyle |= WB_BORDER;
|
||||||
return new SwAddressPreview(pParent, nWinStyle);
|
return VclPtr<SwAddressPreview>::Create(pParent, nWinStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwAddressPreview::positionScrollBar()
|
void SwAddressPreview::positionScrollBar()
|
||||||
|
@ -58,7 +58,7 @@ bool SwNumberingTypeListBox::set_property(const OString &rKey, const OString &rV
|
|||||||
VCL_BUILDER_DECL_FACTORY(SwNumberingTypeListBox)
|
VCL_BUILDER_DECL_FACTORY(SwNumberingTypeListBox)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
SwNumberingTypeListBox *pListBox = new SwNumberingTypeListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP);
|
VclPtrInstance<SwNumberingTypeListBox> pListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP);
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
return pListBox;
|
return pListBox;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ ConditionEdit::ConditionEdit(vcl::Window* pParent, WinBits nStyle)
|
|||||||
VCL_BUILDER_DECL_FACTORY(ConditionEdit)
|
VCL_BUILDER_DECL_FACTORY(ConditionEdit)
|
||||||
{
|
{
|
||||||
VclBuilder::ensureDefaultWidthChars(rMap);
|
VclBuilder::ensureDefaultWidthChars(rMap);
|
||||||
return new ConditionEdit(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
|
return VclPtr<ConditionEdit>::Create(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Drop possible, respectively format known?
|
// Drop possible, respectively format known?
|
||||||
|
@ -80,7 +80,7 @@ VCL_BUILDER_DECL_FACTORY(NumFormatListBox)
|
|||||||
else
|
else
|
||||||
nBits |= WB_BORDER;
|
nBits |= WB_BORDER;
|
||||||
|
|
||||||
NumFormatListBox* pListBox = new NumFormatListBox(pParent, nBits|WB_SIMPLEMODE);
|
VclPtrInstance<NumFormatListBox> pListBox(pParent, nBits|WB_SIMPLEMODE);
|
||||||
|
|
||||||
if (bDropdown)
|
if (bDropdown)
|
||||||
pListBox->EnableAutoSize(true);
|
pListBox->EnableAutoSize(true);
|
||||||
|
@ -1757,7 +1757,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString &
|
|||||||
customMakeWidget pFunction = reinterpret_cast<customMakeWidget>(osl_getFunctionSymbol((oslModule) RTLD_DEFAULT, sFunction.pData));
|
customMakeWidget pFunction = reinterpret_cast<customMakeWidget>(osl_getFunctionSymbol((oslModule) RTLD_DEFAULT, sFunction.pData));
|
||||||
#endif
|
#endif
|
||||||
if (pFunction)
|
if (pFunction)
|
||||||
xWindow = VclPtr<vcl::Window>(pFunction(pParent, rMap), SAL_NO_ACQUIRE);
|
xWindow = pFunction(pParent, rMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SAL_WARN_IF(!xWindow, "vcl.layout", "probably need to implement " << name.getStr() << " or add a make" << name.getStr() << " function");
|
SAL_WARN_IF(!xWindow, "vcl.layout", "probably need to implement " << name.getStr() << " or add a make" << name.getStr() << " function");
|
||||||
|
@ -55,13 +55,13 @@ using namespace com::sun::star::beans;
|
|||||||
VCL_BUILDER_DECL_FACTORY(PrintPreviewWindow)
|
VCL_BUILDER_DECL_FACTORY(PrintPreviewWindow)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new PrintDialog::PrintPreviewWindow(pParent);
|
return VclPtr<PrintDialog::PrintPreviewWindow>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
VCL_BUILDER_DECL_FACTORY(ShowNupOrderWindow)
|
VCL_BUILDER_DECL_FACTORY(ShowNupOrderWindow)
|
||||||
{
|
{
|
||||||
(void)rMap;
|
(void)rMap;
|
||||||
return new PrintDialog::ShowNupOrderWindow(pParent);
|
return VclPtr<PrintDialog::ShowNupOrderWindow>::Create(pParent);
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintDialog::PrintPreviewWindow::PrintPreviewWindow( vcl::Window* i_pParent )
|
PrintDialog::PrintPreviewWindow::PrintPreviewWindow( vcl::Window* i_pParent )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user