Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3592db63
Kaydet (Commit)
3592db63
authored
Nis 24, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix unhelpful MI from a VclPtr type and Abstract factory type.
Change-Id: Ibd8a8e22ffe2cd01225e97588d65eae1cc0bffb8
üst
fc71bf23
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
53 deletions
+43
-53
insrc.cxx
cui/source/dialogs/insrc.cxx
+8
-13
newtabledlg.cxx
cui/source/dialogs/newtabledlg.cxx
+5
-10
splitcelldlg.cxx
cui/source/dialogs/splitcelldlg.cxx
+18
-16
dlgfact.cxx
cui/source/factory/dlgfact.cxx
+3
-3
insrc.hxx
cui/source/inc/insrc.hxx
+3
-3
newtabledlg.hxx
cui/source/inc/newtabledlg.hxx
+4
-4
splitcelldlg.hxx
cui/source/inc/splitcelldlg.hxx
+2
-4
No files found.
cui/source/dialogs/insrc.cxx
Dosyayı görüntüle @
3592db63
...
...
@@ -33,34 +33,29 @@ sal_uInt16 SvxInsRowColDlg::getInsertCount() const
}
SvxInsRowColDlg
::
SvxInsRowColDlg
(
vcl
::
Window
*
pParent
,
bool
bCol
,
const
OString
&
sHelpId
)
:
ModalDialog
(
pParent
,
"InsertRowColumnDialog"
,
"cui/ui/insertrowcolumn.ui"
)
:
m_pDialog
(
VclPtr
<
ModalDialog
>::
Create
(
pParent
,
"InsertRowColumnDialog"
,
"cui/ui/insertrowcolumn.ui"
)
)
,
aRow
(
CUI_RESSTR
(
RID_SVXSTR_ROW
))
,
aCol
(
CUI_RESSTR
(
RID_SVXSTR_COL
))
,
bColumn
(
bCol
)
{
get
(
m_pCountEdit
,
"insert_number"
);
get
(
m_pBeforeBtn
,
"insert_before"
);
get
(
m_pAfterBtn
,
"insert_after"
);
SetText
(
bColumn
?
aCol
:
aRow
);
SetHelpId
(
sHelpId
);
m_pDialog
->
get
(
m_pCountEdit
,
"insert_number"
);
m_pDialog
->
get
(
m_pBeforeBtn
,
"insert_before"
);
m_pDialog
->
get
(
m_pAfterBtn
,
"insert_after"
);
m_pDialog
->
SetText
(
bColumn
?
aCol
:
aRow
);
m_pDialog
->
SetHelpId
(
sHelpId
);
}
SvxInsRowColDlg
::~
SvxInsRowColDlg
()
{
disposeOnce
();
}
void
SvxInsRowColDlg
::
dispose
()
{
m_pCountEdit
.
clear
();
m_pBeforeBtn
.
clear
();
m_pAfterBtn
.
clear
();
ModalDialog
::
dispose
();
m_pDialog
.
disposeAndClear
();
}
short
SvxInsRowColDlg
::
Execute
(
void
)
{
return
ModalDialog
::
Execute
();
return
m_pDialog
->
Execute
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/dialogs/newtabledlg.cxx
Dosyayı görüntüle @
3592db63
...
...
@@ -22,27 +22,22 @@
#include "newtabledlg.hxx"
SvxNewTableDialog
::
SvxNewTableDialog
(
vcl
::
Window
*
pParent
)
:
ModalDialog
(
pParent
,
"NewTableDialog"
,
"cui/ui/newtabledialog.ui"
)
:
m_pDialog
(
VclPtr
<
ModalDialog
>::
Create
(
pParent
,
"NewTableDialog"
,
"cui/ui/newtabledialog.ui"
)
)
{
get
(
mpNumRows
,
"rows"
);
get
(
mpNumColumns
,
"columns"
);
m_pDialog
->
get
(
mpNumRows
,
"rows"
);
m_pDialog
->
get
(
mpNumColumns
,
"columns"
);
}
SvxNewTableDialog
::~
SvxNewTableDialog
()
{
disposeOnce
();
}
void
SvxNewTableDialog
::
dispose
()
{
mpNumColumns
.
clear
();
mpNumRows
.
clear
();
ModalDialog
::
dispose
();
m_pDialog
.
disposeAndClear
();
}
short
SvxNewTableDialog
::
Execute
(
void
)
{
return
ModalDialog
::
Execute
();
return
m_pDialog
->
Execute
();
}
sal_Int32
SvxNewTableDialog
::
getRows
()
const
...
...
cui/source/dialogs/splitcelldlg.cxx
Dosyayı görüntüle @
3592db63
...
...
@@ -24,16 +24,27 @@
#include "splitcelldlg.hxx"
#include "cuires.hrc"
namespace
{
class
NoApplyDialog
:
public
SvxStandardDialog
{
public
:
NoApplyDialog
(
vcl
::
Window
*
pParent
,
const
OUString
&
rId
,
const
OUString
&
rXML
)
:
SvxStandardDialog
(
pParent
,
rId
,
rXML
)
{
}
protected
:
virtual
void
Apply
()
SAL_OVERRIDE
{}
};
}
SvxSplitTableDlg
::
SvxSplitTableDlg
(
vcl
::
Window
*
pParent
,
bool
bIsTableVertical
,
long
nMaxVertical
,
long
nMaxHorizontal
)
:
SvxStandardDialog
(
pParent
,
"SplitCellsDialog"
,
"cui/ui/splitcellsdialog.ui"
)
:
m_pDialog
(
VclPtr
<
NoApplyDialog
>::
Create
(
pParent
,
"SplitCellsDialog"
,
"cui/ui/splitcellsdialog.ui"
)
)
,
mnMaxVertical
(
nMaxVertical
)
,
mnMaxHorizontal
(
nMaxHorizontal
)
{
get
(
m_pCountEdit
,
"countnf"
);
get
(
m_pHorzBox
,
"hori"
);
get
(
m_pVertBox
,
"vert"
);
get
(
m_pPropCB
,
"prop"
);
m_pDialog
->
get
(
m_pCountEdit
,
"countnf"
);
m_pDialog
->
get
(
m_pHorzBox
,
"hori"
);
m_pDialog
->
get
(
m_pVertBox
,
"vert"
);
m_pDialog
->
get
(
m_pPropCB
,
"prop"
);
m_pHorzBox
->
SetClickHdl
(
LINK
(
this
,
SvxSplitTableDlg
,
ClickHdl
));
m_pPropCB
->
SetClickHdl
(
LINK
(
this
,
SvxSplitTableDlg
,
ClickHdl
));
m_pVertBox
->
SetClickHdl
(
LINK
(
this
,
SvxSplitTableDlg
,
ClickHdl
));
...
...
@@ -54,17 +65,12 @@ SvxSplitTableDlg::SvxSplitTableDlg( vcl::Window *pParent, bool bIsTableVertical,
}
SvxSplitTableDlg
::~
SvxSplitTableDlg
()
{
disposeOnce
();
}
void
SvxSplitTableDlg
::
dispose
()
{
m_pCountEdit
.
clear
();
m_pHorzBox
.
clear
();
m_pVertBox
.
clear
();
m_pPropCB
.
clear
();
SvxStandardDialog
::
dispose
();
m_pDialog
.
disposeAndClear
();
}
IMPL_LINK
(
SvxSplitTableDlg
,
ClickHdl
,
Button
*
,
pButton
)
...
...
@@ -93,11 +99,7 @@ long SvxSplitTableDlg::GetCount() const
short
SvxSplitTableDlg
::
Execute
()
{
return
SvxStandardDialog
::
Execute
();
}
void
SvxSplitTableDlg
::
Apply
()
{
return
m_pDialog
->
Execute
();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/factory/dlgfact.cxx
Dosyayı görüntüle @
3592db63
...
...
@@ -1816,12 +1816,12 @@ SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxFormatCellsDialog( vc
SvxAbstractSplittTableDialog
*
AbstractDialogFactory_Impl
::
CreateSvxSplittTableDialog
(
vcl
::
Window
*
pParent
,
bool
bIsTableVertical
,
long
nMaxVertical
,
long
nMaxHorizontal
)
{
return
VclPtr
<
SvxSplitTableDlg
>::
Create
(
pParent
,
bIsTableVertical
,
nMaxVertical
,
nMaxHorizontal
);
return
new
SvxSplitTableDlg
(
pParent
,
bIsTableVertical
,
nMaxVertical
,
nMaxHorizontal
);
}
SvxAbstractNewTableDialog
*
AbstractDialogFactory_Impl
::
CreateSvxNewTableDialog
(
vcl
::
Window
*
pParent
)
{
return
VclPtr
<
SvxNewTableDialog
>::
Create
(
pParent
);
return
new
SvxNewTableDialog
(
pParent
);
}
VclAbstractDialog
*
AbstractDialogFactory_Impl
::
CreateOptionsDialog
(
...
...
@@ -1832,7 +1832,7 @@ VclAbstractDialog* AbstractDialogFactory_Impl::CreateOptionsDialog(
SvxAbstractInsRowColDlg
*
AbstractDialogFactory_Impl
::
CreateSvxInsRowColDlg
(
vcl
::
Window
*
pParent
,
bool
bCol
,
const
OString
&
sHelpId
)
{
return
VclPtr
<
SvxInsRowColDlg
>::
Create
(
pParent
,
bCol
,
sHelpId
);
return
new
SvxInsRowColDlg
(
pParent
,
bCol
,
sHelpId
);
}
AbstractPasswordToOpenModifyDialog
*
AbstractDialogFactory_Impl
::
CreatePasswordToOpenModifyDialog
(
...
...
cui/source/inc/insrc.hxx
Dosyayı görüntüle @
3592db63
...
...
@@ -29,8 +29,9 @@
#include <vcl/group.hxx>
#include <vcl/button.hxx>
class
SvxInsRowColDlg
:
public
SvxAbstractInsRowColDlg
,
public
ModalDialog
class
SvxInsRowColDlg
:
public
SvxAbstractInsRowColDlg
{
VclPtr
<
ModalDialog
>
m_pDialog
;
VclPtr
<
NumericField
>
m_pCountEdit
;
VclPtr
<
RadioButton
>
m_pBeforeBtn
;
...
...
@@ -39,12 +40,11 @@ class SvxInsRowColDlg : public SvxAbstractInsRowColDlg, public ModalDialog
OUString
aRow
;
OUString
aCol
;
bool
bColumn
;
bool
bColumn
;
public
:
SvxInsRowColDlg
(
vcl
::
Window
*
pParent
,
bool
bCol
,
const
OString
&
sHelpId
);
virtual
~
SvxInsRowColDlg
();
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
short
Execute
(
void
)
SAL_OVERRIDE
;
...
...
cui/source/inc/newtabledlg.hxx
Dosyayı görüntüle @
3592db63
...
...
@@ -26,16 +26,16 @@
#include <svx/stddlg.hxx>
#include <svx/svxdlg.hxx>
class
SvxNewTableDialog
:
public
SvxAbstractNewTableDialog
,
public
ModalDialog
class
SvxNewTableDialog
:
public
SvxAbstractNewTableDialog
{
private
:
VclPtr
<
NumericField
>
mpNumColumns
;
VclPtr
<
NumericField
>
mpNumRows
;
VclPtr
<
ModalDialog
>
m_pDialog
;
VclPtr
<
NumericField
>
mpNumColumns
;
VclPtr
<
NumericField
>
mpNumRows
;
public
:
SvxNewTableDialog
(
vcl
::
Window
*
pWindow
);
virtual
~
SvxNewTableDialog
();
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
short
Execute
(
void
)
SAL_OVERRIDE
;
...
...
cui/source/inc/splitcelldlg.hxx
Dosyayı görüntüle @
3592db63
...
...
@@ -26,8 +26,9 @@
#include <svx/stddlg.hxx>
#include <svx/svxdlg.hxx>
class
SvxSplitTableDlg
:
public
SvxAbstractSplittTableDialog
,
public
SvxStandardDialog
class
SvxSplitTableDlg
:
public
SvxAbstractSplittTableDialog
{
VclPtr
<
SvxStandardDialog
>
m_pDialog
;
VclPtr
<
NumericField
>
m_pCountEdit
;
VclPtr
<
RadioButton
>
m_pHorzBox
;
VclPtr
<
RadioButton
>
m_pVertBox
;
...
...
@@ -35,13 +36,10 @@ class SvxSplitTableDlg : public SvxAbstractSplittTableDialog, public SvxStandard
long
mnMaxVertical
;
long
mnMaxHorizontal
;
protected
:
virtual
void
Apply
()
SAL_OVERRIDE
;
public
:
SvxSplitTableDlg
(
vcl
::
Window
*
pParent
,
bool
bIsTableVertical
,
long
nMaxVertical
,
long
nMaxHorizontal
);
virtual
~
SvxSplitTableDlg
();
virtual
void
dispose
()
SAL_OVERRIDE
;
DECL_LINK
(
ClickHdl
,
Button
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment