Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / svx / inc / lboxctrl.hxx
blobe09477d722ed66ad6d89ffc5d9648fcd62efb0eb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <rtl/ustring.hxx>
23 #include <vector>
24 #include <svtools/popupwindowcontroller.hxx>
26 class ToolBox;
27 class SvxPopupWindowListBox;
29 class SvxUndoRedoControl final : public svt::PopupWindowController
31 std::vector<OUString> aUndoRedoList;
32 OUString aDefaultTooltip;
34 public:
35 SvxUndoRedoControl(const css::uno::Reference<css::uno::XComponentContext>& rContext);
36 virtual ~SvxUndoRedoControl() override;
38 virtual std::unique_ptr<WeldToolbarPopup> weldPopupWindow() override;
39 virtual VclPtr<vcl::Window> createVclPopupWindow(vcl::Window* pParent) override;
41 // XServiceInfo
42 virtual OUString SAL_CALL getImplementationName() override;
43 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
45 // XInitialization
46 virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rArguments) override;
48 virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& rEvent) override;
50 void Do(sal_Int16 nCount);
52 void SetText(const OUString& rText);
54 void SetInfo(sal_Int32 nCount);
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */