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
f1879e20
Kaydet (Commit)
f1879e20
authored
Nis 16, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make CreatePrinterOptionsPage returns a VclPtr<>.
Change-Id: Iaa7814573b48b6c9ed10426b992c944393b23332
üst
5be108ee
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
36 additions
and
31 deletions
+36
-31
viewsh.hxx
include/sfx2/viewsh.hxx
+2
-2
prevwsh.hxx
sc/source/ui/inc/prevwsh.hxx
+1
-1
tabvwsh.hxx
sc/source/ui/inc/tabvwsh.hxx
+1
-1
prevwsh.cxx
sc/source/ui/view/prevwsh.cxx
+5
-4
tabvwsh4.cxx
sc/source/ui/view/tabvwsh4.cxx
+4
-3
printer.cxx
sfx2/source/view/printer.cxx
+1
-1
viewprn.cxx
sfx2/source/view/viewprn.cxx
+2
-2
view.hxx
starmath/inc/view.hxx
+2
-2
view.cxx
starmath/source/view.cxx
+2
-2
pview.hxx
sw/source/uibase/inc/pview.hxx
+1
-1
view.hxx
sw/source/uibase/inc/view.hxx
+4
-4
pview.cxx
sw/source/uibase/uiview/pview.cxx
+2
-2
viewfunc.hxx
sw/source/uibase/uiview/viewfunc.hxx
+1
-1
viewprt.cxx
sw/source/uibase/uiview/viewprt.cxx
+8
-5
No files found.
include/sfx2/viewsh.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -38,6 +38,7 @@
#include <vcl/jobset.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <vcl/vclptr.hxx>
#include <sfx2/tabdlg.hxx>
class
SfxBaseController
;
class
Size
;
...
...
@@ -52,7 +53,6 @@ class SfxMedium;
class
SfxModule
;
class
SfxViewFrame
;
class
SfxItemPool
;
class
SfxTabPage
;
class
SfxFrameSetDescriptor
;
class
Printer
;
class
SfxPrinter
;
...
...
@@ -229,7 +229,7 @@ public:
virtual
SfxPrinter
*
GetPrinter
(
bool
bCreate
=
false
);
virtual
sal_uInt16
SetPrinter
(
SfxPrinter
*
pNewPrinter
,
SfxPrinterChangeFlags
nDiffFlags
=
SFX_PRINTER_ALL
,
bool
bIsAPI
=
false
);
virtual
bool
HasPrintOptionsPage
()
const
;
virtual
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
);
virtual
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
);
JobSetup
GetJobSetup
()
const
;
Printer
*
GetActivePrinter
()
const
;
...
...
sc/source/ui/inc/prevwsh.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -109,7 +109,7 @@ public:
virtual
SfxPrinter
*
GetPrinter
(
bool
bCreate
=
false
)
SAL_OVERRIDE
;
virtual
sal_uInt16
SetPrinter
(
SfxPrinter
*
pNewPrinter
,
SfxPrinterChangeFlags
nDiffFlags
=
SFX_PRINTER_ALL
,
bool
bIsAPI
=
false
)
SAL_OVERRIDE
;
virtual
bool
HasPrintOptionsPage
()
const
SAL_OVERRIDE
;
virtual
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
virtual
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
void
AddAccessibilityObject
(
SfxListener
&
rObject
);
void
RemoveAccessibilityObject
(
SfxListener
&
rObject
);
...
...
sc/source/ui/inc/tabvwsh.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -348,7 +348,7 @@ public:
SfxPrinterChangeFlags
nDiffFlags
=
SFX_PRINTER_ALL
,
bool
bIsApi
=
false
)
SAL_OVERRIDE
;
virtual
bool
HasPrintOptionsPage
()
const
SAL_OVERRIDE
;
virtual
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
virtual
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
void
ConnectObject
(
SdrOle2Obj
*
pObj
);
bool
ActivateObject
(
SdrOle2Obj
*
pObj
,
long
nVerb
);
...
...
sc/source/ui/view/prevwsh.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -531,14 +531,15 @@ bool ScPreviewShell::HasPrintOptionsPage() const
return
true
;
}
SfxTabPage
*
ScPreviewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
VclPtr
<
SfxTabPage
>
ScPreviewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
{
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"ScAbstractFactory create fail!"
);
::
CreateTabPage
ScTpPrintOptionsCreate
=
pFact
->
GetTabPageCreatorFunc
(
RID_SCPAGE_PRINT
);
::
CreateTabPage
ScTpPrintOptionsCreate
=
pFact
->
GetTabPageCreatorFunc
(
RID_SCPAGE_PRINT
);
if
(
ScTpPrintOptionsCreate
)
return
(
*
ScTpPrintOptionsCreate
)(
pParent
,
&
rOptions
);
return
0
;
return
VclPtr
<
SfxTabPage
>
((
*
ScTpPrintOptionsCreate
)(
pParent
,
&
rOptions
)
SAL_NO_ACQUIRE
);
return
VclPtr
<
SfxTabPage
>
();
}
void
ScPreviewShell
::
Activate
(
bool
bMDI
)
...
...
sc/source/ui/view/tabvwsh4.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -1063,14 +1063,15 @@ bool ScTabViewShell::HasPrintOptionsPage() const
return
true
;
}
SfxTabPage
*
ScTabViewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
VclPtr
<
SfxTabPage
>
ScTabViewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
{
ScAbstractDialogFactory
*
pFact
=
ScAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"ScAbstractFactory create fail!"
);
::
CreateTabPage
ScTpPrintOptionsCreate
=
pFact
->
GetTabPageCreatorFunc
(
RID_SCPAGE_PRINT
);
if
(
ScTpPrintOptionsCreate
)
return
(
*
ScTpPrintOptionsCreate
)(
pParent
,
&
rOptions
);
return
0
;
return
VclPtr
<
SfxTabPage
>
((
*
ScTpPrintOptionsCreate
)(
pParent
,
&
rOptions
),
SAL_NO_ACQUIRE
);
return
VclPtr
<
SfxTabPage
>
();
}
void
ScTabViewShell
::
StopEditShell
()
...
...
sfx2/source/view/printer.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -221,7 +221,7 @@ SfxPrintOptionsDialog::SfxPrintOptionsDialog(vcl::Window *pParent,
VclContainer
*
pVBox
=
get_content_area
();
// Insert TabPage
pPage
=
pViewSh
->
CreatePrintOptionsPage
(
pVBox
,
*
pOptions
);
pPage
.
reset
(
pViewSh
->
CreatePrintOptionsPage
(
pVBox
,
*
pOptions
)
);
DBG_ASSERT
(
pPage
,
"CreatePrintOptions != SFX_VIEW_HAS_PRINTOPTIONS"
);
if
(
pPage
)
{
...
...
sfx2/source/view/viewprn.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -891,13 +891,13 @@ sal_uInt16 SfxViewShell::SetPrinter( SfxPrinter* /*pNewPrinter*/, SfxPrinterChan
return
0
;
}
SfxTabPage
*
SfxViewShell
::
CreatePrintOptionsPage
VclPtr
<
SfxTabPage
>
SfxViewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
/*pParent*/
,
const
SfxItemSet
&
/*rOptions*/
)
{
return
0
;
return
VclPtr
<
SfxTabPage
>
()
;
}
bool
SfxViewShell
::
HasPrintOptionsPage
()
const
...
...
starmath/inc/view.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -270,8 +270,8 @@ protected:
void
InsertFrom
(
SfxMedium
&
rMedium
);
virtual
bool
HasPrintOptionsPage
()
const
SAL_OVERRIDE
;
virtual
SfxTabPage
*
CreatePrintOptionsPage
(
::
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
virtual
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
::
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
virtual
void
Deactivate
(
bool
IsMDIActivate
)
SAL_OVERRIDE
;
virtual
void
Activate
(
bool
IsMDIActivate
)
SAL_OVERRIDE
;
virtual
void
AdjustPosSizePixel
(
const
Point
&
rPos
,
const
Size
&
rSize
)
SAL_OVERRIDE
;
...
...
starmath/source/view.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -1362,8 +1362,8 @@ bool SmViewShell::HasPrintOptionsPage() const
return
true
;
}
SfxTabPage
*
SmViewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
VclPtr
<
SfxTabPage
>
SmViewShell
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
{
return
SmPrintOptionsTabPage
::
Create
(
pParent
,
rOptions
);
}
...
...
sw/source/uibase/inc/pview.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -192,7 +192,7 @@ class SW_DLLPUBLIC SwPagePreview: public SfxViewShell
SAL_DLLPRIVATE
virtual
SfxPrinter
*
GetPrinter
(
bool
bCreate
=
false
)
SAL_OVERRIDE
;
SAL_DLLPRIVATE
virtual
sal_uInt16
SetPrinter
(
SfxPrinter
*
pNewPrinter
,
SfxPrinterChangeFlags
nDiffFlags
=
SFX_PRINTER_ALL
,
bool
bIsAPI
=
false
)
SAL_OVERRIDE
;
SAL_DLLPRIVATE
virtual
bool
HasPrintOptionsPage
()
const
SAL_OVERRIDE
;
SAL_DLLPRIVATE
virtual
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
SAL_DLLPRIVATE
virtual
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
SAL_OVERRIDE
;
SAL_DLLPRIVATE
void
CalcAndSetBorderPixel
(
SvBorder
&
rToFill
,
bool
bInner
);
...
...
sw/source/uibase/inc/view.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -663,7 +663,7 @@ public:
// methods for printing
SAL_DLLPRIVATE
virtual
SfxPrinter
*
GetPrinter
(
bool
bCreate
=
false
)
SAL_OVERRIDE
;
SAL_DLLPRIVATE
virtual
bool
HasPrintOptionsPage
()
const
SAL_OVERRIDE
;
SAL_DLLPRIVATE
virtual
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
SAL_DLLPRIVATE
virtual
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
SAL_OVERRIDE
;
};
...
...
@@ -682,9 +682,9 @@ inline const SwDocShell *SwView::GetDocShell() const
return
const_cast
<
SwView
*>
(
this
)
->
GetDocShell
();
}
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
,
bool
bPreview
);
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
,
bool
bPreview
);
#endif
...
...
sw/source/uibase/uiview/pview.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -1709,8 +1709,8 @@ bool SwPagePreview::HasPrintOptionsPage() const
return
true
;
}
SfxTabPage
*
SwPagePreview
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
VclPtr
<
SfxTabPage
>
SwPagePreview
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
)
{
return
::
CreatePrintOptionsPage
(
pParent
,
rOptions
,
!
bNormalPrint
);
}
...
...
sw/source/uibase/uiview/viewfunc.hxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -33,7 +33,7 @@ namespace vcl { class Window; }
// The following functions are available in viewprt.cxx
void
SetPrinter
(
IDocumentDeviceAccess
*
,
SfxPrinter
*
,
bool
bWeb
);
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
,
const
SfxItemSet
&
);
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
,
const
SfxItemSet
&
);
void
SetAppPrintOptions
(
SwViewShell
*
pSh
,
bool
bWeb
);
// The following functions are available in viewport.cxx
...
...
sw/source/uibase/uiview/viewprt.cxx
Dosyayı görüntüle @
f1879e20
...
...
@@ -147,8 +147,8 @@ bool SwView::HasPrintOptionsPage() const
// TabPage for application-specific print options
SfxTabPage
*
SwView
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
VclPtr
<
SfxTabPage
>
SwView
::
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
{
return
::
CreatePrintOptionsPage
(
pParent
,
rSet
,
false
);
}
...
...
@@ -245,8 +245,9 @@ void SwView::ExecutePrint(SfxRequest& rReq)
// Create page printer/additions for SwView and SwPagePreview
SfxTabPage
*
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
,
bool
bPreview
)
VclPtr
<
SfxTabPage
>
CreatePrintOptionsPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rOptions
,
bool
bPreview
)
{
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
OSL_ENSURE
(
pFact
,
"No Print Dialog"
);
...
...
@@ -258,7 +259,9 @@ SfxTabPage* CreatePrintOptionsPage( vcl::Window *pParent,
if
(
!
fnCreatePage
)
return
NULL
;
SfxTabPage
*
pPage
=
(
*
fnCreatePage
)(
pParent
,
&
rOptions
);
VclPtr
<
SfxTabPage
>
pPage
=
VclPtr
<
SfxTabPage
>
((
*
fnCreatePage
)(
pParent
,
&
rOptions
),
SAL_NO_ACQUIRE
);
OSL_ENSURE
(
pPage
,
"No page"
);
if
(
!
pPage
)
return
NULL
;
...
...
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