LibreOffice Module framework (master) 1
statusbarmerger.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#pragma once
20
21#include <sal/config.h>
22
23#include <string_view>
24
25#include <com/sun/star/beans/PropertyValue.hpp>
26#include <com/sun/star/uno/Sequence.hxx>
27#include <rtl/ustring.hxx>
28#include <vcl/status.hxx>
29
30namespace framework
31{
32
34{
35 OUString aLabel;
36};
37
39{
40 OUString aCommandURL;
41 OUString aLabel;
42 OUString aContext;
44 sal_Int16 nWidth;
45};
46
47typedef ::std::vector< AddonStatusbarItem > AddonStatusbarItemContainer;
48
49namespace StatusbarMerger
50{
51 bool IsCorrectContext( std::u16string_view aContext );
52
53 bool ConvertSeqSeqToVector( const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > >& rSequence,
54 AddonStatusbarItemContainer& rContainer );
55
56 sal_uInt16 FindReferencePos( StatusBar* pStatusbar,
57 std::u16string_view rReferencePoint );
58
59 bool ProcessMergeOperation( StatusBar* pStatusbar,
60 sal_uInt16 nPos,
61 sal_uInt16& rItemId,
62 std::u16string_view rMergeCommand,
63 std::u16string_view rMergeCommandParameter,
64 const AddonStatusbarItemContainer& rItems );
65
66 bool ProcessMergeFallback( StatusBar* pStatusbar,
67 sal_uInt16& rItemId,
68 std::u16string_view rMergeCommand,
69 std::u16string_view rMergeFallback,
70 const AddonStatusbarItemContainer& rItems );
71}
72
73}
74
75/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool ConvertSeqSeqToVector(const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &rSequence, AddonStatusbarItemContainer &rContainer)
bool ProcessMergeOperation(StatusBar *pStatusbar, sal_uInt16 nPos, sal_uInt16 &rItemId, std::u16string_view rMergeCommand, std::u16string_view rMergeCommandParameter, const AddonStatusbarItemContainer &rItems)
bool IsCorrectContext(std::u16string_view aContext)
bool ProcessMergeFallback(StatusBar *pStatusbar, sal_uInt16 &rItemId, std::u16string_view rMergeCommand, std::u16string_view rMergeFallback, const AddonStatusbarItemContainer &rItems)
sal_uInt16 FindReferencePos(StatusBar *pStatusbar, std::u16string_view rReferencePoint)
::std::vector< AddonStatusbarItem > AddonStatusbarItemContainer
StatusBarItemBits