LibreOffice Module cui (master)  1
SvxConfigPageHelper.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 http://mozilla.org/MPL/2.0/.
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 http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #pragma once
21 
22 #include <com/sun/star/frame/XModuleManager2.hpp>
23 
24 #include "cfg.hxx"
25 
27 {
28 public:
29  static void RemoveEntry( SvxEntries* pEntries, SvxConfigEntry const * pChildEntry );
30 
31  static OUString replaceSaveInName( const OUString& rMessage, const OUString& rSaveInName );
32  static OUString stripHotKey( const OUString& str );
33  static OUString replaceSixteen( const OUString& str, sal_Int32 nReplacement );
34 
35  static sal_Int16 GetImageType();
36  static void InitImageType();
37  static css::uno::Reference< css::graphic::XGraphic > GetGraphic(
38  const css::uno::Reference< css::ui::XImageManager >& xImageManager,
39  const OUString& rCommandURL );
40 
41  static OUString generateCustomName(
42  const OUString& prefix,
44  sal_Int32 suffix = 1 );
45  static OUString generateCustomMenuURL(
46  SvxEntries* entries,
47  sal_Int32 suffix = 1 );
48  static sal_uInt32 generateRandomValue();
54  static OUString generateCustomURL( SvxEntries* entries );
55 
56  static OUString GetModuleName( const OUString& aModuleId );
57  static OUString GetUIModuleName(
58  const OUString& aModuleId,
59  const css::uno::Reference< css::frame::XModuleManager2 >& rModuleManager );
60 
61  static bool GetMenuItemData(
62  const css::uno::Reference< css::container::XIndexAccess >& rItemContainer,
63  sal_Int32 nIndex,
64  OUString& rCommandURL,
65  OUString& rLabel,
66  sal_uInt16& rType,
67  sal_Int32& rStyle,
68  css::uno::Reference< css::container::XIndexAccess >& rSubMenu );
69  static bool GetToolbarItemData(
70  const css::uno::Reference< css::container::XIndexAccess >& rItemContainer,
71  sal_Int32 nIndex,
72  OUString& rCommandURL,
73  OUString& rLabel,
74  sal_uInt16& rType,
75  bool& rIsVisible,
76  sal_Int32& rStyle );
77 
78  static css::uno::Sequence< css::beans::PropertyValue > ConvertSvxConfigEntry(
79  const SvxConfigEntry* pEntry );
80  static css::uno::Sequence< css::beans::PropertyValue > ConvertToolbarEntry(
81  const SvxConfigEntry* pEntry );
82 
83  static bool EntrySort( SvxConfigEntry const * a, SvxConfigEntry const * b );
84 
85  static bool SvxConfigEntryModified( SvxConfigEntry const * pEntry );
86 
87 };
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static OUString replaceSixteen(const OUString &str, sal_Int32 nReplacement)
sal_Int32 nIndex
static OUString generateCustomURL(SvxEntries *entries)
Generates a custom resource URL for a new toolbar.
static OUString stripHotKey(const OUString &str)
static sal_Int16 GetImageType()
static OUString GetUIModuleName(const OUString &aModuleId, const css::uno::Reference< css::frame::XModuleManager2 > &rModuleManager)
static css::uno::Reference< css::graphic::XGraphic > GetGraphic(const css::uno::Reference< css::ui::XImageManager > &xImageManager, const OUString &rCommandURL)
static OUString GetModuleName(const OUString &aModuleId)
std::vector< SvxConfigEntry * > SvxEntries
Definition: cfg.hxx:61
static bool SvxConfigEntryModified(SvxConfigEntry const *pEntry)
static void RemoveEntry(SvxEntries *pEntries, SvxConfigEntry const *pChildEntry)
static OUString generateCustomMenuURL(SvxEntries *entries, sal_Int32 suffix=1)
static OUString generateCustomName(const OUString &prefix, SvxEntries *entries, sal_Int32 suffix=1)
static OUString replaceSaveInName(const OUString &rMessage, const OUString &rSaveInName)
static bool EntrySort(SvxConfigEntry const *a, SvxConfigEntry const *b)
uno_Any a
static css::uno::Sequence< css::beans::PropertyValue > ConvertToolbarEntry(const SvxConfigEntry *pEntry)
static css::uno::Sequence< css::beans::PropertyValue > ConvertSvxConfigEntry(const SvxConfigEntry *pEntry)
static sal_uInt32 generateRandomValue()
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)
::cppu::ImplementationEntry const entries[]
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)