/* -*- 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 .
*/
// This function connects m_xTreeBox, m_xFmtLb and m_pParentDialog with certain LINKs void Initialize();
// It selects the style in treeview // bIsCallBack is true for the selected style. For eg. if "Addressee" is selected in // styles, bIsCallBack will be true for it. void SelectStyle(const OUString& rStr, bool bIsCallback); // Checks whether a family has a saved state bool CurrentFamilyHasState() { return nullptr != m_pFamilyState[m_nActFamily - 1]; }
// This function is a subpart of Dialog's SetFamilyState // When a new style is selected for use, it resets it. void SetFamilyState(sal_uInt16 nSlotId, const SfxTemplateItem* pItem);
// It is used in Dialog's EnableExample_Impl // When the value of m_bNewbyExampleDisabled is updated there // while creating a new style by example, // the corresponding value gets updated here too. void EnableNewByExample(bool newByExampleDisabled);
// This function is used to set a hierarchical view. void SetHierarchical(); // This function handles the controls while setting a filter except hierarchical void SetFilterControlsHandle(); // Return whether treeview is visible // It is used in StyleList's UpdateStyles_Hdl // It is used to defaultly set the hierarchical view bool IsTreeView() const { return m_xTreeBox->get_visible(); }
// Helper function: Access to the current family item // Used in Dialog's updateStyleHandler, Execute_Impl etc... const SfxStyleFamilyItem* GetFamilyItem() const; // Used to get the current selected entry in treeview // Used in Dialog's Execute_Impl, Action_Select etc...
OUString GetSelectedEntry() const; // Returns the Family Item at ith index // Used in Dialog's ReadResource_Hdl const SfxStyleFamilyItem& GetFamilyItemByIndex(size_t i) const; bool IsHierarchical() const { return m_bHierarchical; }
// In which FamilyState do I have to look, in order to get the // information of the ith Family in the pStyleFamilies.
sal_uInt16 StyleNrToInfoOffset(sal_uInt16 i);
SfxStyleFamilies m_aStyleFamilies;
std::array<std::unique_ptr<SfxTemplateItem>, MAX_FAMILIES> m_pFamilyState;
SfxObjectShell* m_pCurObjShell;
sal_uInt16 m_nActFamily;
SfxStyleSearchBits m_nAppFilter; // Filter, which has set the application (for automatic)
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.