/* -*- 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 .
*/
/** checks, if the given name is a valid new name for a slide
<p>If the name is invalid, an <type>SvxNameDialog</type> pops up that queries again for a new name until it is ok or the user chose Cancel.</p>
@param pWin is necessary to pass to the <type>SvxNameDialog</type> in case an invalid name was entered. @param rName the new name that is to be set for a slide. This string may be set to an empty string (see below).
@return sal_True, if the new name is unique. Note that if the user entered a default name of a not-yet-existing slide (e.g. 'Slide 17'), sal_True is returned, but rName is set to an empty string.
*/ bool CheckPageName(weld::Window* pWin, OUString& rName );
/** executes the SID_OPENDOC slot to let the framework open a document
with the given URL and this document as a referer */ void OpenBookmark( const OUString& rBookmarkURL );
/** checks, if the given name is a valid new name for a slide
<p>This method does not pop up any dialog (like CheckPageName).</p>
@param rInOutPageName the new name for a slide that is to be renamed. This string will be set to an empty string if bResetStringIfStandardName is true and the name is of the form of any, possibly not-yet existing, standard slide (e.g. 'Slide 17')
@param bResetStringIfStandardName if true allows setting rInOutPageName to an empty string, which returns true and implies that the slide will later on get a new standard name (with a free slide number).
@return true, if the new name is unique. If bResetStringIfStandardName is true, the return value is also true, if the slide name is a standard name (see above)
*/ bool IsNewPageNameValid( OUString & rInOutPageName, bool bResetStringIfStandardName = false );
/** checks, if the given name is a *unique* name for an *existing* slide
@param rPageName the name of an existing slide
@return true, if the name is unique and the slide exists
*/ bool IsPageNameUnique(std::u16string_view rPagName) const;
/** Return the reference device for the current document. When the inherited implementation returns a device then this is passed to the caller. Otherwise the returned value depends on the printer independent layout mode and will usually be either a printer or a virtual device used for screen rendering. @return Returns NULL when the current document has no reference device.
*/ virtual OutputDevice* GetDocumentRefDev() override;
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.