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
5be108ee
Kaydet (Commit)
5be108ee
authored
Nis 16, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
starmath: convert new to ::Create to get initial ref-counting right.
Change-Id: I4382f4a9cf74f87766c76412698b4031574b6107
üst
16f7f589
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
20 deletions
+20
-20
dialog.hxx
starmath/inc/dialog.hxx
+1
-1
test_starmath.cxx
starmath/qa/cppunit/test_starmath.cxx
+2
-2
ElementsDockingWindow.cxx
starmath/source/ElementsDockingWindow.cxx
+4
-4
dialog.cxx
starmath/source/dialog.cxx
+4
-4
document.cxx
starmath/source/document.cxx
+1
-1
edit.cxx
starmath/source/edit.cxx
+3
-3
toolbox.cxx
starmath/source/toolbox.cxx
+2
-2
view.cxx
starmath/source/view.cxx
+3
-3
No files found.
starmath/inc/dialog.hxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -68,7 +68,7 @@ class SmPrintOptionsTabPage : public SfxTabPage
virtual
void
Reset
(
const
SfxItemSet
*
rSet
)
SAL_OVERRIDE
;
public
:
static
SfxTabPage
*
Create
(
vcl
::
Window
*
pWindow
,
const
SfxItemSet
&
rSet
);
static
VclPtr
<
SfxTabPage
>
Create
(
vcl
::
Window
*
pWindow
,
const
SfxItemSet
&
rSet
);
SmPrintOptionsTabPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
);
virtual
~
SmPrintOptionsTabPage
();
...
...
starmath/qa/cppunit/test_starmath.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -85,9 +85,9 @@ void Test::setUp()
m_pDispatcher
=
new
SfxDispatcher
(
pViewFrame
);
m_aBindings
.
SetDispatcher
(
m_pDispatcher
);
m_aBindings
.
EnterRegistrations
();
m_pSmCmdBoxWindow
=
new
SmCmdBoxWindow
(
&
m_aBindings
,
NULL
,
NULL
);
m_pSmCmdBoxWindow
.
reset
(
VclPtr
<
SmCmdBoxWindow
>::
Create
(
&
m_aBindings
,
nullptr
,
nullptr
)
);
m_aBindings
.
LeaveRegistrations
();
m_pEditWindow
=
new
SmEditWindow
(
*
m_pSmCmdBoxWindow
);
m_pEditWindow
=
VclPtr
<
SmEditWindow
>::
Create
(
*
m_pSmCmdBoxWindow
);
m_pViewShell
=
m_pEditWindow
->
GetView
();
CPPUNIT_ASSERT_MESSAGE
(
"Should have a SmViewShell"
,
m_pViewShell
);
}
...
...
starmath/source/ElementsDockingWindow.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -223,7 +223,7 @@ SmElementsControl::SmElementsControl(vcl::Window *pParent)
,
maCurrentSetId
(
0
)
,
mpCurrentElement
(
NULL
)
,
mbVerticalMode
(
true
)
,
mxScroll
(
new
ScrollBar
(
this
,
WB_VERT
))
,
mxScroll
(
VclPtr
<
ScrollBar
>::
Create
(
this
,
WB_VERT
))
{
SetMapMode
(
MapMode
(
MAP_100TH_MM
)
);
SetDrawMode
(
DRAWMODE_DEFAULT
);
...
...
@@ -652,7 +652,7 @@ SmElementsDockingWindow::SmElementsDockingWindow(SfxBindings* pInputBindings, Sf
SfxDockingWindow
(
pInputBindings
,
pChildWindow
,
pParent
,
"DockingElements"
,
"modules/smath/ui/dockingelements.ui"
)
{
mpElementsControl
=
new
SmElementsControl
(
get
<
vcl
::
Window
>
(
"box"
));
mpElementsControl
=
VclPtr
<
SmElementsControl
>::
Create
(
get
<
vcl
::
Window
>
(
"box"
));
mpElementsControl
->
set_hexpand
(
true
);
mpElementsControl
->
set_vexpand
(
true
);
mpElementsControl
->
Show
();
...
...
@@ -768,8 +768,8 @@ SmElementsDockingWindowWrapper::SmElementsDockingWindowWrapper(
SfxBindings
*
pBindings
,
SfxChildWinInfo
*
pInfo
)
:
SfxChildWindow
(
pParentWindow
,
nId
)
{
SmElementsDockingWindow
*
pDialog
=
new
SmElementsDockingWindow
(
pBindings
,
this
,
pParentWindow
);
pWindow
=
pDialog
;
VclPtrInstance
<
SmElementsDockingWindow
>
pDialog
(
pBindings
,
this
,
pParentWindow
);
pWindow
.
reset
(
pDialog
)
;
pDialog
->
setDeferredProperties
();
pDialog
->
SetPosSizePixel
(
Point
(
0
,
0
),
Size
(
300
,
0
));
pDialog
->
Show
();
...
...
starmath/source/dialog.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -239,9 +239,9 @@ void SmPrintOptionsTabPage::Reset(const SfxItemSet* rSet)
}
SfxTabPage
*
SmPrintOptionsTabPage
::
Create
(
vcl
::
Window
*
pWindow
,
const
SfxItemSet
&
rSet
)
VclPtr
<
SfxTabPage
>
SmPrintOptionsTabPage
::
Create
(
vcl
::
Window
*
pWindow
,
const
SfxItemSet
&
rSet
)
{
return
(
new
SmPrintOptionsTabPage
(
pWindow
,
rSet
)
);
return
VclPtr
<
SmPrintOptionsTabPage
>::
Create
(
pWindow
,
rSet
).
get
(
);
}
/**************************************************************************/
...
...
@@ -1294,8 +1294,8 @@ void SmShowSymbolSetWindow::setScrollbar(ScrollBar *pVScrollBar)
SmShowSymbolSet
::
SmShowSymbolSet
(
vcl
::
Window
*
pParent
)
:
VclHBox
(
pParent
,
false
,
6
)
,
aSymbolWindow
(
new
SmShowSymbolSetWindow
(
this
,
WB_TABSTOP
))
,
aVScrollBar
(
new
ScrollBar
(
this
,
WinBits
(
WB_VSCROLL
)))
,
aSymbolWindow
(
VclPtr
<
SmShowSymbolSetWindow
>::
Create
(
this
,
WB_TABSTOP
))
,
aVScrollBar
(
VclPtr
<
ScrollBar
>::
Create
(
this
,
WinBits
(
WB_VSCROLL
)))
{
aSymbolWindow
->
set_hexpand
(
true
);
aSymbolWindow
->
set_vexpand
(
true
);
...
...
starmath/source/document.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -595,7 +595,7 @@ Printer* SmDocShell::GetPrt()
SmModule
*
pp
=
SM_MOD
();
pp
->
GetConfig
()
->
ConfigToItemSet
(
*
pOptions
);
pPrinter
=
new
SfxPrinter
(
pOptions
);
pPrinter
=
VclPtr
<
SfxPrinter
>::
Create
(
pOptions
);
pPrinter
->
SetMapMode
(
MapMode
(
MAP_100TH_MM
)
);
}
return
pPrinter
;
...
...
starmath/source/edit.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -551,11 +551,11 @@ void SmEditWindow::CreateEditView()
pEditEngine
->
InsertView
(
pEditView
);
if
(
!
pVScrollBar
)
pVScrollBar
=
new
ScrollBar
(
this
,
WinBits
(
WB_VSCROLL
));
pVScrollBar
=
VclPtr
<
ScrollBar
>::
Create
(
this
,
WinBits
(
WB_VSCROLL
));
if
(
!
pHScrollBar
)
pHScrollBar
=
new
ScrollBar
(
this
,
WinBits
(
WB_HSCROLL
));
pHScrollBar
=
VclPtr
<
ScrollBar
>::
Create
(
this
,
WinBits
(
WB_HSCROLL
));
if
(
!
pScrollBox
)
pScrollBox
=
new
ScrollBarBox
(
this
);
pScrollBox
=
VclPtr
<
ScrollBarBox
>::
Create
(
this
);
pVScrollBar
->
SetScrollHdl
(
LINK
(
this
,
SmEditWindow
,
ScrollHdl
));
pHScrollBar
->
SetScrollHdl
(
LINK
(
this
,
SmEditWindow
,
ScrollHdl
));
pVScrollBar
->
EnableDrag
(
true
);
...
...
starmath/source/toolbox.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -127,7 +127,7 @@ SmToolBoxWindow::SmToolBoxWindow(SfxBindings *pTmpBindings,
sal_uInt16
i
;
for
(
i
=
0
;
i
<
NUM_TBX_CATEGORIES
;
++
i
)
{
ToolBox
*
pBox
=
new
Tool
Box
(
get
<
vcl
::
Window
>
(
"box"
),
SmResId
(
TOOLBOX_CAT_A
+
i
));
VclPtrInstance
<
ToolBox
>
p
Box
(
get
<
vcl
::
Window
>
(
"box"
),
SmResId
(
TOOLBOX_CAT_A
+
i
));
vToolBoxCategories
[
i
]
=
pBox
;
pBox
->
SetSelectHdl
(
LINK
(
this
,
SmToolBoxWindow
,
CmdSelectHdl
));
}
...
...
@@ -361,7 +361,7 @@ SmToolBoxWrapper::SmToolBoxWrapper(vcl::Window *pParentWindow,
{
eChildAlignment
=
SfxChildAlignment
::
NOALIGNMENT
;
pWindow
=
new
SmToolBoxWindow
(
pBindings
,
this
,
pParentWindow
);
pWindow
.
reset
(
VclPtr
<
SmToolBoxWindow
>::
Create
(
pBindings
,
this
,
pParentWindow
)
);
static_cast
<
SfxFloatingWindow
*>
(
pWindow
.
get
())
->
Initialize
(
pInfo
);
}
...
...
starmath/source/view.cxx
Dosyayı görüntüle @
5be108ee
...
...
@@ -712,7 +712,7 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const
SmCmdBoxWindow
::
SmCmdBoxWindow
(
SfxBindings
*
pBindings_
,
SfxChildWindow
*
pChildWindow
,
vcl
::
Window
*
pParent
)
:
SfxDockingWindow
(
pBindings_
,
pChildWindow
,
pParent
,
WB_MOVEABLE
|
WB_CLOSEABLE
|
WB_SIZEABLE
|
WB_DOCKABLE
),
aEdit
(
new
SmEditWindow
(
*
this
)),
aEdit
(
VclPtr
<
SmEditWindow
>::
Create
(
*
this
)),
aController
(
*
(
aEdit
.
get
()),
SID_TEXT
,
*
pBindings_
),
bExiting
(
false
)
{
...
...
@@ -902,7 +902,7 @@ SmCmdBoxWrapper::SmCmdBoxWrapper(vcl::Window *pParentWindow, sal_uInt16 nId,
SfxChildWinInfo
*
pInfo
)
:
SfxChildWindow
(
pParentWindow
,
nId
)
{
pWindow
=
new
SmCmdBoxWindow
(
pBindings
,
this
,
pParentWindow
);
pWindow
.
reset
(
VclPtr
<
SmCmdBoxWindow
>::
Create
(
pBindings
,
this
,
pParentWindow
)
);
// make window docked to the bottom initially (after first start)
eChildAlignment
=
SfxChildAlignment
::
BOTTOM
;
...
...
@@ -1953,7 +1953,7 @@ void SmViewShell::GetState(SfxItemSet &rSet)
SmViewShell
::
SmViewShell
(
SfxViewFrame
*
pFrame_
,
SfxViewShell
*
)
:
SfxViewShell
(
pFrame_
,
SFX_VIEW_HAS_PRINTOPTIONS
|
SFX_VIEW_CAN_PRINT
)
,
pImpl
(
new
SmViewShell_Impl
)
,
aGraphic
(
new
SmGraphicWindow
(
this
))
,
aGraphic
(
VclPtr
<
SmGraphicWindow
>::
Create
(
this
))
,
aGraphicController
(
*
aGraphic
.
get
(),
SID_GAPHIC_SM
,
pFrame_
->
GetBindings
())
,
bPasteState
(
false
)
,
bInsertIntoEditWindow
(
false
)
...
...
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