/* -*- 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 .
*/ #ifndef INCLUDED_SFX2_VIEWFRM_HXX #define INCLUDED_SFX2_VIEWFRM_HXX
namespace weld { class Button; class Window;
} class SvBorder; class SfxDispatcher; class SfxBindings; class SfxProgress; class SfxViewShell; class Point; class Size; class SfxChildWindow; class SfxInfoBarWindow; enumclass InfobarType; class CommandPopupHandler;
class SFX2_DLLPUBLIC SfxViewFrame final : public SfxShell, public SfxListener
{
std::unique_ptr<struct SfxViewFrame_Impl> m_pImpl;
The buttons will be added from Right to Left at the right of the info bar. The parent, size and position of each button will be changed: only the width will remain unchanged.
*/
VclPtr<SfxInfoBarWindow> AppendInfoBar(const OUString& sId, const OUString& sPrimaryMessage, const OUString& sSecondaryMessage,
InfobarType aInfobarType, bool bShowCloseButton=true); void RemoveInfoBar(std::u16string_view sId);
SAL_DLLPRIVATE void UpdateInfoBar(std::u16string_view sId, const OUString& sPrimaryMessage, const OUString& sSecondaryMessage,
InfobarType eType); bool HasInfoBarWithID(std::u16string_view sId); void AppendReadOnlyInfobar();
SAL_DLLPRIVATE void HandleSecurityInfobar(const OUString& sSecondaryMessage);
/** loads the given existing document into the given frame
This is done using the XComponentLoader interface of the frame, so the SFX document loader is invoked.
@param i_rDoc the document to load @param i_rFrame the frame to load the document into @param i_rLoadArgs the arguments to pass to the component loader. If this sequence is empty, then the current arguments of the model will be obtained, and passed to the loader. This ensures that any arguments in the model will be preserved, instead of being reset. @param i_nViewId the ID of the view to create @throws Exception if something goes wrong. The caller is responsible for handling this.
*/
SAL_DLLPRIVATE static SfxViewShell* LoadViewIntoFrame_Impl( const SfxObjectShell& i_rDoc, const css::uno::Reference< css::frame::XFrame >& i_rFrame, const css::uno::Sequence< css::beans::PropertyValue >& i_rLoadArgs, const SfxInterfaceId i_nViewId, constbool i_bHidden
);
/** loads the given existing document into the given frame
This is done using the XComponentLoader interface of the frame, so the SFX document loader is invoked.
If no frame is given, a blank top level frame is created.
If anything fails during the process, as much as possible is cleaned up.
@param i_rDoc the document to load @param i_rFrame the frame to load the document into. Might be <NULL/>, in which case a new frame is created. @param i_nViewId the ID of the view to create
*/
SAL_DLLPRIVATE static SfxViewFrame* LoadViewIntoFrame_Impl_NoThrow( const SfxObjectShell& i_rDoc, const css::uno::Reference< css::frame::XFrame >& i_rFrame, const SfxInterfaceId i_nViewId, constbool i_bHidden
);
};
class SFX2_DLLPUBLIC SfxViewFrameItem final : public SfxPoolItem
{
SfxViewFrame* pFrame;
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.