LibreOffice Module svx (master)  1
DefaultShapesPanel.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 #ifndef INCLUDED_SVX_SOURCE_INC_DEFAULTSHAPESPANEL_HXX
20 #define INCLUDED_SVX_SOURCE_INC_DEFAULTSHAPESPANEL_HXX
21 
22 #include <com/sun/star/frame/XFrame.hpp>
24 #include <svtools/valueset.hxx>
25 #include <map>
26 #include "ShapesUtil.hxx"
27 
28 using namespace css;
29 using namespace ::com::sun::star::uno;
30 using namespace ::com::sun::star::frame;
31 
32 namespace svx::sidebar {
33 
37  : public PanelLayout, public SvxShapeCommandsMap
38 {
39 public:
41  vcl::Window* pParent,
42  const css::uno::Reference<css::frame::XFrame>& rxFrame);
44  vcl::Window* pParent,
45  const css::uno::Reference<css::frame::XFrame>& rxFrame);
46  virtual ~DefaultShapesPanel() override;
47  virtual void dispose() override;
48 
49 private:
50  std::unique_ptr<ValueSet> mxLineArrowSet;
51  std::unique_ptr<weld::CustomWeld> mxLineArrowSetWin;
52  std::unique_ptr<ValueSet> mxCurveSet;
53  std::unique_ptr<weld::CustomWeld> mxCurveSetWin;
54  std::unique_ptr<ValueSet> mxConnectorSet;
55  std::unique_ptr<weld::CustomWeld> mxConnectorSetWin;
56  std::unique_ptr<ValueSet> mxBasicShapeSet;
57  std::unique_ptr<weld::CustomWeld> mxBasicShapeSetWin;
58  std::unique_ptr<ValueSet> mxSymbolShapeSet;
59  std::unique_ptr<weld::CustomWeld> mxSymbolShapeSetWin;
60  std::unique_ptr<ValueSet> mxBlockArrowSet;
61  std::unique_ptr<weld::CustomWeld> mxBlockArrowSetWin;
62  std::unique_ptr<ValueSet> mxFlowchartSet;
63  std::unique_ptr<weld::CustomWeld> mxFlowchartSetWin;
64  std::unique_ptr<ValueSet> mxCalloutSet;
65  std::unique_ptr<weld::CustomWeld> mxCalloutSetWin;
66  std::unique_ptr<ValueSet> mxStarSet;
67  std::unique_ptr<weld::CustomWeld> mxStarSetWin;
68  std::unique_ptr<ValueSet> mx3DObjectSet;
69  std::unique_ptr<weld::CustomWeld> mx3DObjectSetWin;
70 
71  Reference< XFrame > mxFrame;
72  std::map<ValueSet*, std::map<sal_uInt16, OUString>> mpShapesSetMap;
73 
74  void populateShapes();
75  void Initialize();
76  DECL_LINK( ShapeSelectHdl, ValueSet*, void );
77 };
78 
79 } // end of namespace sd::sidebar
80 
81 #endif
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CustomWeld > mxConnectorSetWin
std::unique_ptr< ValueSet > mxBlockArrowSet
std::unique_ptr< weld::CustomWeld > mxSymbolShapeSetWin
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
std::unique_ptr< weld::CustomWeld > mxStarSetWin
std::unique_ptr< weld::CustomWeld > mx3DObjectSetWin
std::unique_ptr< ValueSet > mxStarSet
std::unique_ptr< weld::CustomWeld > mxLineArrowSetWin
This panel provides buttons for inserting shapes into a document.
std::unique_ptr< ValueSet > mxSymbolShapeSet
std::unique_ptr< weld::CustomWeld > mxBasicShapeSetWin
std::unique_ptr< ValueSet > mxLineArrowSet
std::unique_ptr< ValueSet > mxCalloutSet
std::unique_ptr< weld::CustomWeld > mxFlowchartSetWin
std::unique_ptr< ValueSet > mxBasicShapeSet
std::map< ValueSet *, std::map< sal_uInt16, OUString > > mpShapesSetMap
std::unique_ptr< weld::CustomWeld > mxBlockArrowSetWin
std::unique_ptr< ValueSet > mx3DObjectSet
std::unique_ptr< ValueSet > mxCurveSet
std::unique_ptr< weld::CustomWeld > mxCalloutSetWin
std::unique_ptr< weld::CustomWeld > mxCurveSetWin
std::unique_ptr< ValueSet > mxConnectorSet
std::unique_ptr< ValueSet > mxFlowchartSet
void dispose()