LibreOffice Module svx (master) 1
lboxctrl.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 <rtl/ustring.hxx>
23#include <vector>
25
26class ToolBox;
28
30{
31 std::vector<OUString> aUndoRedoList;
33
34public:
35 SvxUndoRedoControl(const css::uno::Reference<css::uno::XComponentContext>& rContext);
36 virtual ~SvxUndoRedoControl() override;
37
38 virtual std::unique_ptr<WeldToolbarPopup> weldPopupWindow() override;
39 virtual VclPtr<vcl::Window> createVclPopupWindow(vcl::Window* pParent) override;
40
41 // XServiceInfo
42 virtual OUString SAL_CALL getImplementationName() override;
43 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
44
45 // XInitialization
46 virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
47
48 virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& rEvent) override;
49
50 void Do(sal_Int16 nCount);
51
52 void SetText(const OUString& rText);
53
54 void SetInfo(sal_Int32 nCount);
55};
56
57/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Do(sal_Int16 nCount)
Definition: lboxctrl.cxx:209
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &rEvent) override
Definition: lboxctrl.cxx:264
OUString aDefaultTooltip
Definition: lboxctrl.hxx:32
virtual VclPtr< vcl::Window > createVclPopupWindow(vcl::Window *pParent) override
Definition: lboxctrl.cxx:310
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
Definition: lboxctrl.cxx:234
void SetInfo(sal_Int32 nCount)
Definition: lboxctrl.cxx:102
SvxUndoRedoControl(const css::uno::Reference< css::uno::XComponentContext > &rContext)
Definition: lboxctrl.cxx:229
std::vector< OUString > aUndoRedoList
Definition: lboxctrl.hxx:31
void SetText(const OUString &rText)
Definition: lboxctrl.cxx:258
virtual std::unique_ptr< WeldToolbarPopup > weldPopupWindow() override
Definition: lboxctrl.cxx:300
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: lboxctrl.cxx:334
virtual ~SvxUndoRedoControl() override
Definition: lboxctrl.cxx:254
virtual OUString SAL_CALL getImplementationName() override
Definition: lboxctrl.cxx:329