Kaydet (Commit) 5cb2d709 authored tarafından Siqi Liu's avatar Siqi Liu

format changes

üst 0632f77e
......@@ -1017,7 +1017,8 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
aEvent.Requery = sal_False;
aEvent.State = aState;
if (pDispatcher && pDispatcher->GetFrame()) {
if (pDispatcher && pDispatcher->GetFrame())
{
InterceptLOKStateChangeEvent(
pDispatcher->GetFrame()->GetObjectShell(), aEvent);
}
......@@ -1047,14 +1048,14 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt
void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const ::com::sun::star::frame::FeatureStateEvent& aEvent) const
{
if (!objSh || !objSh->isTiledRendering()) {
if (!objSh || !objSh->isTiledRendering())
return;
}
if (aEvent.FeatureURL.Path == "Bold" ||
aEvent.FeatureURL.Path == "Italic" ||
aEvent.FeatureURL.Path == "Underline" ||
aEvent.FeatureURL.Path == "StrikeOut") {
aEvent.FeatureURL.Path == "Italic" ||
aEvent.FeatureURL.Path == "Underline" ||
aEvent.FeatureURL.Path == "StrikeOut")
{
OUStringBuffer aBuffer;
aBuffer.append(aEvent.FeatureURL.Complete);
......
......@@ -1302,15 +1302,15 @@ bool SwDocShell::GetProtectionHash( /*out*/ ::com::sun::star::uno::Sequence< sal
void SwDocShell::libreOfficeKitCallback(int nType, const char* pPayload) const
{
if (!m_pDoc) {
if (!m_pDoc)
return;
}
SwDrawModel* pDrawModel = m_pDoc->getIDocumentDrawModelAccess().GetDrawModel();
pDrawModel->libreOfficeKitCallback(nType, pPayload);
}
bool SwDocShell::isTiledRendering() const {
bool SwDocShell::isTiledRendering() const
{
SwDrawModel* pDrawModel = m_pDoc->getIDocumentDrawModelAccess().GetDrawModel();
return pDrawModel->isTiledRendering();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment