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
4dce632b
Kaydet (Commit)
4dce632b
authored
Agu 31, 2015
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#92106 sc: Update and new style commands w/o args
Change-Id: I31f7ac6783ab9bb32f2423cc7f80d5ddcf827ba9
üst
18dd07ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
formatsh.cxx
sc/source/ui/view/formatsh.cxx
+13
-4
No files found.
sc/source/ui/view/formatsh.cxx
Dosyayı görüntüle @
4dce632b
...
...
@@ -28,6 +28,7 @@
#include <sfx2/app.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/newstyle.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/request.hxx>
#include <svl/whiter.hxx>
...
...
@@ -250,16 +251,16 @@ void ScFormatShell::GetStyleState( SfxItemSet& rSet )
void
ScFormatShell
::
ExecuteStyle
(
SfxRequest
&
rReq
)
{
// in case of vertical toolbar
if
(
!
rReq
.
GetArgs
()
)
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
const
sal_uInt16
nSlotId
=
rReq
.
GetSlot
();
if
(
!
pArgs
&&
nSlotId
!=
SID_STYLE_NEW_BY_EXAMPLE
&&
nSlotId
!=
SID_STYLE_UPDATE_BY_EXAMPLE
)
{
// in case of vertical toolbar
pViewData
->
GetDispatcher
().
Execute
(
SID_STYLE_DESIGNER
,
SfxCallMode
::
ASYNCHRON
|
SfxCallMode
::
RECORD
);
return
;
}
SfxBindings
&
rBindings
=
pViewData
->
GetBindings
();
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
const
sal_uInt16
nSlotId
=
rReq
.
GetSlot
();
const
SCTAB
nCurTab
=
GetViewData
()
->
GetTabNo
();
ScDocShell
*
pDocSh
=
GetViewData
()
->
GetDocShell
();
ScTabViewShell
*
pTabViewShell
=
GetViewData
()
->
GetViewShell
();
...
...
@@ -430,6 +431,14 @@ void ScFormatShell::ExecuteStyle( SfxRequest& rReq )
const
SfxPoolItem
*
pNameItem
;
if
(
pArgs
&&
SfxItemState
::
SET
==
pArgs
->
GetItemState
(
nSlotId
,
true
,
&
pNameItem
))
aStyleName
=
static_cast
<
const
SfxStringItem
*>
(
pNameItem
)
->
GetValue
();
else
if
(
nSlotId
==
SID_STYLE_NEW_BY_EXAMPLE
)
{
ScopedVclPtrInstance
<
SfxNewStyleDlg
>
pDlg
(
nullptr
,
*
pStylePool
);
if
(
RET_OK
!=
pDlg
->
Execute
()
)
return
;
aStyleName
=
pDlg
->
GetName
();
}
pStyleSheet
=
pStylePool
->
Find
(
aStyleName
,
eFamily
);
aOldData
.
InitFromStyle
(
pStyleSheet
);
...
...
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