docthemes: Save themes def. to a file when added to ColorSets
[LibreOffice.git] / sw / source / uibase / docvw / SidebarWinAcc.hxx
blobe93fd4ebf9397e687ed38af870d68f4881661ebc
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 <toolkit/awt/vclxwindow.hxx>
23 #include <vcl/accessibility/vclxaccessiblecomponent.hxx>
25 class SwViewShell;
26 class SwFrame;
27 class SwAnnotationItem;
28 namespace sw::annotation
30 class SwAnnotationWin;
33 namespace sw::sidebarwindows
35 class SidebarWinAccessible
36 : public cppu::ImplInheritanceHelper<VCLXAccessibleComponent, css::accessibility::XAccessible>
38 public:
39 explicit SidebarWinAccessible(sw::annotation::SwAnnotationWin& rSidebarWin,
40 SwViewShell& rViewShell, const SwAnnotationItem& rSidebarItem);
41 virtual ~SidebarWinAccessible() override;
43 virtual css::uno::Reference<css::accessibility::XAccessibleContext>
44 SAL_CALL getAccessibleContext() override;
46 virtual css::uno::Reference<css::accessibility::XAccessible>
47 SAL_CALL getAccessibleParent() override;
48 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override;
50 void ChangeSidebarItem(const SwAnnotationItem& rSidebarItem);
52 private:
53 SwViewShell& mrViewShell;
54 const SwFrame* mpAnchorFrame;
57 } // end of namespace sw::sidebarwindows
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */