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
50731e73
Kaydet (Commit)
50731e73
authored
Ock 20, 2019
tarafından
Ashod Nakashian
Kaydeden (comit)
Jan Holesovsky
Ock 22, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOK: sd: notify LOK of page size/orientation change
Change-Id: I2eb92d83f50b91b39a10e22298d496668c1cbf72
üst
85843ff9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
SlideBackground.cxx
sd/source/ui/sidebar/SlideBackground.cxx
+19
-6
No files found.
sd/source/ui/sidebar/SlideBackground.cxx
Dosyayı görüntüle @
50731e73
...
...
@@ -70,6 +70,7 @@
#include <editeng/lrspitem.hxx>
#include <svl/itemset.hxx>
#include <comphelper/lok.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -998,20 +999,32 @@ IMPL_LINK_NOARG(SlideBackground, FillStyleModifyHdl, ListBox&, void)
IMPL_LINK_NOARG
(
SlideBackground
,
PaperSizeModifyHdl
,
ListBox
&
,
void
)
{
Paper
ePaper
=
mpPaperSizeBox
->
GetSelection
();
Size
aSize
(
SvxPaperInfo
::
GetPaperSize
(
ePaper
,
meUnit
));
const
Paper
ePaper
=
mpPaperSizeBox
->
GetSelection
();
Size
aSize
(
SvxPaperInfo
::
GetPaperSize
(
ePaper
,
meUnit
));
if
(
mpPaperOrientation
->
GetSelectedEntryPos
()
==
0
)
if
(
mpPaperOrientation
->
GetSelectedEntryPos
()
==
0
)
Swap
(
aSize
);
mpPageItem
->
SetLandscape
(
mpPaperOrientation
->
GetSelectedEntryPos
()
==
0
);
SvxSizeItem
aSizeItem
(
SID_ATTR_PAGE_SIZE
,
aSize
);
const
SvxSizeItem
aSizeItem
(
SID_ATTR_PAGE_SIZE
,
aSize
);
// Page/slide properties dialog (FuPage::ExecuteDialog and ::ApplyItemSet) misuses
// SID_ATTR_PAGE_EXT1 to distinguish between Impress and Draw, as for whether to fit
// objects to paper size. Until that is handled somehow better, we do the same here
SfxBoolItem
aFitObjs
(
SID_ATTR_PAGE_EXT1
,
IsImpress
());
const
SfxBoolItem
aFitObjs
(
SID_ATTR_PAGE_EXT1
,
IsImpress
());
GetBindings
()
->
GetDispatcher
()
->
ExecuteList
(
SID_ATTR_PAGE_SIZE
,
SfxCallMode
::
RECORD
,
{
&
aSizeItem
,
mpPageItem
.
get
(),
&
aFitObjs
});
GetBindings
()
->
GetDispatcher
()
->
ExecuteList
(
SID_ATTR_PAGE_SIZE
,
SfxCallMode
::
RECORD
,
{
&
aSizeItem
,
mpPageItem
.
get
(),
&
aFitObjs
});
// Notify LOK clients of the page size chagne.
if
(
comphelper
::
LibreOfficeKit
::
isActive
())
{
SfxViewShell
*
pViewShell
=
SfxViewShell
::
GetFirst
();
while
(
pViewShell
)
{
pViewShell
->
libreOfficeKitViewCallback
(
LOK_CALLBACK_DOCUMENT_SIZE_CHANGED
,
""
);
pViewShell
=
SfxViewShell
::
GetNext
(
*
pViewShell
);
}
}
}
IMPL_LINK_NOARG
(
SlideBackground
,
FillColorHdl
,
SvxColorListBox
&
,
void
)
...
...
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