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
6023b797
Kaydet (Commit)
6023b797
authored
Eyl 14, 2015
tarafından
Mihai Varga
Kaydeden (comit)
Mihai Varga
Eyl 14, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
get feedback for style / font / font size in tiledrendering
Change-Id: I92fd5022a4a5736a6323732141e9ea7bafec2a44
üst
4a55670e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
7 deletions
+38
-7
unoctitm.cxx
sfx2/source/control/unoctitm.cxx
+38
-7
No files found.
sfx2/source/control/unoctitm.cxx
Dosyayı görüntüle @
6023b797
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <svtools/javacontext.hxx>
#include <svtools/javacontext.hxx>
#include <svl/itempool.hxx>
#include <svl/itempool.hxx>
#include <tools/urlobj.hxx>
#include <tools/urlobj.hxx>
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/Desktop.hpp>
...
@@ -37,8 +38,10 @@
...
@@ -37,8 +38,10 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/FrameActionEvent.hpp>
#include <com/sun/star/frame/FrameActionEvent.hpp>
#include <com/sun/star/frame/FrameAction.hpp>
#include <com/sun/star/frame/FrameAction.hpp>
#include <com/sun/star/frame/status/FontHeight.hpp>
#include <com/sun/star/frame/status/ItemStatus.hpp>
#include <com/sun/star/frame/status/ItemStatus.hpp>
#include <com/sun/star/frame/status/ItemState.hpp>
#include <com/sun/star/frame/status/ItemState.hpp>
#include <com/sun/star/frame/status/Template.hpp>
#include <com/sun/star/frame/DispatchResultState.hpp>
#include <com/sun/star/frame/DispatchResultState.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/status/Visibility.hpp>
#include <com/sun/star/frame/status/Visibility.hpp>
...
@@ -1059,22 +1062,50 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
...
@@ -1059,22 +1062,50 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
if
(
!
objSh
||
!
objSh
->
isTiledRendering
())
if
(
!
objSh
||
!
objSh
->
isTiledRendering
())
return
;
return
;
OUStringBuffer
aBuffer
;
aBuffer
.
append
(
aEvent
.
FeatureURL
.
Complete
);
aBuffer
.
append
(
"="
);
if
(
aEvent
.
FeatureURL
.
Path
==
"Bold"
||
if
(
aEvent
.
FeatureURL
.
Path
==
"Bold"
||
aEvent
.
FeatureURL
.
Path
==
"Italic"
||
aEvent
.
FeatureURL
.
Path
==
"Italic"
||
aEvent
.
FeatureURL
.
Path
==
"Underline"
||
aEvent
.
FeatureURL
.
Path
==
"Underline"
||
aEvent
.
FeatureURL
.
Path
==
"Strikeout"
)
aEvent
.
FeatureURL
.
Path
==
"Strikeout"
||
aEvent
.
FeatureURL
.
Path
==
"DefaultBullet"
||
aEvent
.
FeatureURL
.
Path
==
"DefaultNumbering"
||
aEvent
.
FeatureURL
.
Path
==
"LeftPara"
||
aEvent
.
FeatureURL
.
Path
==
"CenterPara"
||
aEvent
.
FeatureURL
.
Path
==
"RightPara"
||
aEvent
.
FeatureURL
.
Path
==
"JustifyPara"
)
{
{
OUStringBuffer
aBuffer
;
aBuffer
.
append
(
aEvent
.
FeatureURL
.
Complete
);
aBuffer
.
append
(
"="
);
bool
bTemp
=
false
;
bool
bTemp
=
false
;
aEvent
.
State
>>=
bTemp
;
aEvent
.
State
>>=
bTemp
;
aBuffer
.
append
(
bTemp
);
aBuffer
.
append
(
bTemp
);
OUString
payload
=
aBuffer
.
makeStringAndClear
();
objSh
->
libreOfficeKitCallback
(
LOK_CALLBACK_STATE_CHANGED
,
payload
.
toUtf8
().
getStr
());
}
}
else
if
(
aEvent
.
FeatureURL
.
Path
==
"CharFontName"
)
{
::
com
::
sun
::
star
::
awt
::
FontDescriptor
aFontDesc
;
aEvent
.
State
>>=
aFontDesc
;
aBuffer
.
append
(
aFontDesc
.
Name
);
}
else
if
(
aEvent
.
FeatureURL
.
Path
==
"FontHeight"
)
{
::
com
::
sun
::
star
::
frame
::
status
::
FontHeight
aFontHeight
;
aEvent
.
State
>>=
aFontHeight
;
aBuffer
.
append
(
aFontHeight
.
Height
);
}
else
if
(
aEvent
.
FeatureURL
.
Path
==
"StyleApply"
)
{
::
com
::
sun
::
star
::
frame
::
status
::
Template
aTemplate
;
aEvent
.
State
>>=
aTemplate
;
aBuffer
.
append
(
aTemplate
.
StyleName
);
}
else
{
return
;
}
OUString
payload
=
aBuffer
.
makeStringAndClear
();
objSh
->
libreOfficeKitCallback
(
LOK_CALLBACK_STATE_CHANGED
,
payload
.
toUtf8
().
getStr
());
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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