LibreOffice Module cui (master) 1
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at .
18 */
20#pragma once
22#include <com/sun/star/frame/XModuleManager2.hpp>
24#include "cfg.hxx"
29 static void RemoveEntry(SvxEntries* pEntries, SvxConfigEntry const* pChildEntry);
31 static OUString replaceSaveInName(const OUString& rMessage, std::u16string_view rSaveInName);
32 static OUString stripHotKey(const OUString& str);
33 static OUString replaceSixteen(const OUString& str, sal_Int32 nReplacement);
35 static sal_Int16 GetImageType();
36 static void InitImageType();
37 static css::uno::Reference<css::graphic::XGraphic>
38 GetGraphic(const css::uno::Reference<css::ui::XImageManager>& xImageManager,
39 const OUString& rCommandURL);
41 static OUString generateCustomName(const OUString& prefix, SvxEntries* entries,
42 sal_Int32 suffix = 1);
43 static OUString generateCustomMenuURL(SvxEntries* entries, sal_Int32 suffix = 1);
44 static sal_uInt32 generateRandomValue();
50 static OUString generateCustomURL(SvxEntries* entries);
52 static OUString GetModuleName(std::u16string_view aModuleId);
53 static OUString
54 GetUIModuleName(const OUString& aModuleId,
55 const css::uno::Reference<css::frame::XModuleManager2>& rModuleManager);
57 static bool
58 GetMenuItemData(const css::uno::Reference<css::container::XIndexAccess>& rItemContainer,
59 sal_Int32 nIndex, OUString& rCommandURL, OUString& rLabel, sal_uInt16& rType,
60 sal_Int32& rStyle, css::uno::Reference<css::container::XIndexAccess>& rSubMenu);
61 static bool
62 GetToolbarItemData(const css::uno::Reference<css::container::XIndexAccess>& rItemContainer,
63 sal_Int32 nIndex, OUString& rCommandURL, OUString& rLabel, sal_uInt16& rType,
64 bool& rIsVisible, sal_Int32& rStyle);
66 static css::uno::Sequence<css::beans::PropertyValue>
68 static css::uno::Sequence<css::beans::PropertyValue>
71 static bool EntrySort(SvxConfigEntry const* a, SvxConfigEntry const* b);
73 static bool SvxConfigEntryModified(SvxConfigEntry const* pEntry);
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< SvxConfigEntry * > SvxEntries
Definition: cfg.hxx:63
static sal_uInt32 generateRandomValue()
static sal_Int16 GetImageType()
static OUString GetModuleName(std::u16string_view aModuleId)
static OUString generateCustomURL(SvxEntries *entries)
Generates a custom resource URL for a new toolbar.
static OUString generateCustomMenuURL(SvxEntries *entries, sal_Int32 suffix=1)
static OUString replaceSaveInName(const OUString &rMessage, std::u16string_view rSaveInName)
static OUString GetUIModuleName(const OUString &aModuleId, const css::uno::Reference< css::frame::XModuleManager2 > &rModuleManager)
static bool GetMenuItemData(const css::uno::Reference< css::container::XIndexAccess > &rItemContainer, sal_Int32 nIndex, OUString &rCommandURL, OUString &rLabel, sal_uInt16 &rType, sal_Int32 &rStyle, css::uno::Reference< css::container::XIndexAccess > &rSubMenu)
static css::uno::Sequence< css::beans::PropertyValue > ConvertSvxConfigEntry(const SvxConfigEntry *pEntry)
static OUString stripHotKey(const OUString &str)
static OUString generateCustomName(const OUString &prefix, SvxEntries *entries, sal_Int32 suffix=1)
static bool GetToolbarItemData(const css::uno::Reference< css::container::XIndexAccess > &rItemContainer, sal_Int32 nIndex, OUString &rCommandURL, OUString &rLabel, sal_uInt16 &rType, bool &rIsVisible, sal_Int32 &rStyle)
static void RemoveEntry(SvxEntries *pEntries, SvxConfigEntry const *pChildEntry)
static bool SvxConfigEntryModified(SvxConfigEntry const *pEntry)
static css::uno::Reference< css::graphic::XGraphic > GetGraphic(const css::uno::Reference< css::ui::XImageManager > &xImageManager, const OUString &rCommandURL)
static OUString replaceSixteen(const OUString &str, sal_Int32 nReplacement)
static css::uno::Sequence< css::beans::PropertyValue > ConvertToolbarEntry(const SvxConfigEntry *pEntry)
static bool EntrySort(SvxConfigEntry const *a, SvxConfigEntry const *b)
sal_Int32 nIndex
uno_Any a