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
b3375a27
Kaydet (Commit)
b3375a27
authored
Tem 29, 2014
tarafından
Andrzej Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Impress/Tiled Rendering: implement setPartMode.
Change-Id: I831953ac3fa1d0a15b64aa008cc3bfb79e72575a
üst
7f8eb6d5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
unomodel.hxx
sd/source/ui/inc/unomodel.hxx
+1
-0
unomodel.cxx
sd/source/ui/unoidl/unomodel.cxx
+34
-1
No files found.
sd/source/ui/inc/unomodel.hxx
Dosyayı görüntüle @
b3375a27
...
...
@@ -234,6 +234,7 @@ public:
virtual
int
getPart
()
SAL_OVERRIDE
;
virtual
int
getParts
()
SAL_OVERRIDE
;
virtual
OUString
getPartName
(
int
nPart
)
SAL_OVERRIDE
;
virtual
void
setPartMode
(
LibreOfficeKitPartMode
ePartMode
)
SAL_OVERRIDE
;
// XComponent
...
...
sd/source/ui/unoidl/unomodel.cxx
Dosyayı görüntüle @
b3375a27
...
...
@@ -2239,7 +2239,6 @@ void SdXImpressDocument::setPart( int nPart )
// only possible to select page 0 in this mode, I have no idea how you
// then actually select what is on the handout page, which defaults to
// a 4x4 grid of empty pages).
pViewSh
->
SetPageKind
(
PK_STANDARD
);
pViewSh
->
SwitchPage
(
nPart
);
}
}
...
...
@@ -2269,6 +2268,40 @@ OUString SdXImpressDocument::getPartName( int nPart )
return
pPage
->
GetName
();
}
void
SdXImpressDocument
::
setPartMode
(
LibreOfficeKitPartMode
ePartMode
)
{
DrawViewShell
*
pViewSh
=
dynamic_cast
<
DrawViewShell
*
>
(
mpDoc
->
GetDocSh
()
->
GetViewShell
()
);
if
(
!
pViewSh
)
{
return
;
}
PageKind
aPageKind
;
switch
(
ePartMode
)
{
case
LOK_PARTMODE_EMBEDDEDOBJ
:
// This will probably be handled higher up, i.e.
// we probably shouldn't be handling this here.
// (However we don't offer embedded object-only
// rendering anywhere yet, so this may be a
// completely incorrect comment.)
assert
(
false
);
// And let's fall through in a normal build.
case
LOK_PARTMODE_DEFAULT
:
case
LOK_PARTMODE_SLIDE
:
aPageKind
=
PK_STANDARD
;
break
;
case
LOK_PARTMODE_SLIDENOTES
:
aPageKind
=
PK_NOTES
;
break
;
case
LOK_PARTMODE_NOTES
:
// TODO: this shows combined slides + notes
aPageKind
=
PK_NOTES
;
break
;
}
pViewSh
->
SetPageKind
(
aPageKind
);
}
Size
SdXImpressDocument
::
getDocumentSize
()
{
SdrPageView
*
pCurPageView
=
mpDoc
->
GetDocSh
()
->
GetViewShell
()
->
GetView
()
->
GetSdrPageView
();
...
...
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