/* -*- 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_UCBHELPER_SIMPLEAUTHENTICATIONREQUEST_HXX #define INCLUDED_UCBHELPER_SIMPLEAUTHENTICATIONREQUEST_HXX #include #include #include namespace com::sun::star::ucb { class URLAuthenticationRequest; } namespace ucbhelper { /** * This class implements a simple authentication interaction request. * Instances can be passed directly to XInteractionHandler::handle(...). Each * instance contains an AuthenticationRequest and three interaction * continuations: "Abort", "Retry" and "SupplyAuthentication". The parameters * for the AuthenticationRequest and the InteractionSupplyAuthentication * objects are partly taken from constructors parameters and partly defaulted * as follows: * * Read-only values : servername, realm * Read-write values: username, password, account * All remember-authentication values: RememberAuthentication_NO * * @see css::ucb::AuthenticationRequest * @see css::ucb::RememberAuthentication * @see InteractionAbort * @see InteractionRetry * @see InteractionSupplyAuthentication */ class UCBHELPER_DLLPUBLIC SimpleAuthenticationRequest final : public ucbhelper::InteractionRequest { rtl::Reference< ucbhelper::InteractionSupplyAuthentication > m_xAuthSupplier; private: void initialize( const css::ucb::URLAuthenticationRequest & rRequest, bool bCanSetRealm, bool bCanSetUserName, bool bCanSetPassword, bool bCanSetAccount, bool bAllowUseSystemCredentials, bool bAllowSessionStoring ); public: /** Specification whether some entity (realm, username, password, account) is either not applicable at all, has a fixed value, or is modifiable. */ enum EntityType { ENTITY_NA, ENTITY_FIXED, ENTITY_MODIFY }; /** * Constructor. * * @param rURL contains a URL for which authentication is requested. * @param rServerName contains a server name. * @param rRealm contains a realm, if applicable. * @param rUserName contains a username, if available (for instance from * a previous try). * @param rPassword contains a password, if available (for instance from * a previous try). * @param bAllowUseSystemCredentials specifies if requesting client is * able to obtain and use system credentials for authentication */ SimpleAuthenticationRequest( const OUString & rURL, const OUString & rServerName, const OUString & rRealm, const OUString & rUserName, const OUString & rPassword, bool bAllowUseSystemCredentials, bool bAllowSessionStoring = true ); /** * Constructor. * * @param rServerName contains a server name. * @param eRealmType specifies whether a realm is applicable and modifiable. * @param rRealm contains a realm, if applicable. * @param eUserNameType specifies whether a username is applicable and modifiable. * @param rUserName contains a username, if available (for instance from * a previous try). * @param ePasswordType specifies whether a password is applicable and modifiable. * @param rPassword contains a password, if available (for instance from * a previous try). */ SimpleAuthenticationRequest( const OUString & rURL, const OUString & rServerName, EntityType eRealmType, const OUString & rRealm, EntityType eUserNameType, const OUString & rUserName, EntityType ePasswordType, const OUString & rPassword ); /** * This method returns the supplier for the missing authentication data, * that, for instance can be used to query the password supplied by the * interaction handler. * * @return the supplier for the missing authentication data. */ const rtl::Reference< ucbhelper::InteractionSupplyAuthentication > & getAuthenticationSupplier() const { return m_xAuthSupplier; } }; } // namespace ucbhelper #endif /* ! INCLUDED_UCBHELPER_SIMPLEAUTHENTICATIONREQUEST_HXX */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ llabora/lov-6.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-20tdf#157026 sd notebookbar: add ObjectAlign to MenuTable as popupmenuJustin Luth
The vast majority of this is just eliminating copy/paste, since I have now created a popupmenu.xml list for the popup menu. The "fix" is adding this to the Table menus. .uno:ObjectAlign is basically just a "label". Now it is a label for two different "views": * a toolbar widget dropdown * a menu subcategory Perhaps it is confusing to have one UNO entry serve these two similar purposes? I suppose someone might also complain that a simple <menu:menu menu:id=".uno:ObjectAlign"/> isn't clear that this is a submenu. I considered making mine a new ObjectAlignMenu, but the annoyance of having to create a duplicate string translation in officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu made me just reuse the existing label. Change-Id: I17e037e0c9c5d1f57ac9f174a76cd041983bcea4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157894 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
2020-09-13Popup menus cleaned up in respect to DistributeSelectionHeiko Tietze
Distribution works only with multiselection Change-Id: Ica097fa7e366f3875e600b30ce7bdc3ba0b28dee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102501 Tested-by: Jenkins Tested-by: Maxim Monastirsky <momonasmon@gmail.com> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2019-05-15tdf#125303 bring back Autofit to textbox commandandreas kainz
Change-Id: I58a7391aec0c5cb3b5b5feb6be1ab3ecac2f0d5e Reviewed-on: https://gerrit.libreoffice.org/72356 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-10-30context menu: finish draw and calc context menuesandreas kainz
and update NameGroup arrangement Change-Id: I373229793fa1605e731c04824112118c15e05c29 Reviewed-on: https://gerrit.libreoffice.org/62528 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-10-22sd: Use the regular textbox popupmenu for outline text objectsMaxim Monastirsky
Having a separate menu for just one kind of a text box makes no sense. It isn't good for developers that must remember to sync changes between the two, and likewise for users which do customization, and that have to make the same changes twice. In fact both menus are identical, except that the outlinetext menu has also .uno:TextAutoFitToSize. But this commands seems to work also for other kinds of text boxes, and we actually have a request in tdf#116898 to have it in the context menu. So we can just move .uno:TextAutoFitToSize to textbox.xml, and then remove the separate outlinetext.xml. Fortunately there is no fear of losing existing user customization for outlinetext.xml, as it wasn't exposed to the customization dialog by error (no corresponding entries were added to ImpressWindowState.xcu/DrawWindowState.xcu). Change-Id: I3568cb95d862d4ab91bedfa691dcc6659a3bf86f Reviewed-on: https://gerrit.libreoffice.org/61972 Tested-by: Jenkins Reviewed-by: andreas_kainz <kainz.a@gmail.com> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>