/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
case SID_HELPLINES_VISIBLE: // not here yet!
{ if ( GetDoc()->GetDocumentType() == DocumentType::Impress )
officecfg::Office::Impress::Layout::Display::Helpline::set(!mpDrawView->IsHlplVisible(), batch); else
officecfg::Office::Draw::Layout::Display::Helpline::set(!mpDrawView->IsHlplVisible(), batch);
} break;
case SID_HELPLINES_USE:
{ if (GetDoc()->GetDocumentType() == DocumentType::Impress)
officecfg::Office::Impress::Snap::Object::SnapLine::set(!mpDrawView->IsHlplSnap(), batch); else
officecfg::Office::Draw::Snap::Object::SnapLine::set(!mpDrawView->IsHlplSnap(), batch);
} break;
case SID_HELPLINES_MOVE:
{ if ( GetDoc()->GetDocumentType() == DocumentType::Impress )
officecfg::Office::Impress::Layout::Display::Guide::set(!mpDrawView->IsDragStripes(), batch); else
officecfg::Office::Draw::Layout::Display::Guide::set(!mpDrawView->IsDragStripes(), batch);
} break;
case SID_SNAP_BORDER:
{ if ( GetDoc()->GetDocumentType() == DocumentType::Impress )
officecfg::Office::Impress::Snap::Object::PageMargin::set( !mpDrawView->IsBordSnap(), batch ); else
officecfg::Office::Draw::Snap::Object::PageMargin::set( !mpDrawView->IsBordSnap(), batch );
} break;
case SID_SNAP_FRAME:
{ if ( GetDoc()->GetDocumentType() == DocumentType::Impress )
officecfg::Office::Impress::Snap::Object::ObjectFrame::set(!mpDrawView->IsOFrmSnap(), batch); else
officecfg::Office::Draw::Snap::Object::ObjectFrame::set(!mpDrawView->IsOFrmSnap(), batch);
} break;
case SID_SNAP_POINTS:
{ if ( GetDoc()->GetDocumentType() == DocumentType::Impress )
officecfg::Office::Impress::Snap::Object::ObjectPoint::set( !mpDrawView->IsOPntSnap(), batch ); else
officecfg::Office::Draw::Snap::Object::ObjectPoint::set( !mpDrawView->IsOPntSnap(), batch );
} break;
case SID_QUICKEDIT:
{
pOptions->SetQuickEdit( !mpDrawView->IsQuickTextEditMode() );
} break;
case SID_PICK_THROUGH:
{
pOptions->SetPickThrough(
!mpDrawView->GetModel().IsPickThroughTransparentTextFrames() );
} break;
case SID_DOUBLECLICK_TEXTEDIT:
{
pOptions->SetDoubleClickTextEdit( !mpFrameView->IsDoubleClickTextEdit() );
} break;
case SID_CLICK_CHANGE_ROTATION:
{
pOptions->SetClickChangeRotation( !mpFrameView->IsClickChangeRotation() );
} break;
default:
bDefault = true; break;
}
if( bDefault ) return;
batch->commit();
pOptions->StoreConfig();
// Saves the configuration IMMEDIATELY // SfxGetpApp()->SaveConfiguration();
WriteFrameViewData();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.