bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / inc / tpaction.hxx
blobb6a323efdc8e43a41613f28d760e37d8c8abf7db
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 #ifndef INCLUDED_SD_SOURCE_UI_INC_TPACTION_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_TPACTION_HXX
23 #include <com/sun/star/presentation/ClickAction.hpp>
24 #include <sfx2/tabdlg.hxx>
25 #include <sfx2/basedlgs.hxx>
26 #include "sdtreelb.hxx"
28 #include <vector>
30 namespace sd {
31 class View;
33 class SdDrawDocument;
35 /**
36 * Effect-SingleTab-Dialog
38 class SdActionDlg : public SfxSingleTabDialogController
40 private:
41 const SfxItemSet& rOutAttrs;
42 public:
43 SdActionDlg(weld::Window* pParent, const SfxItemSet* pAttr, ::sd::View const * pView);
46 /**
47 * Interaction-Tab-Page
49 class SdTPAction : public SfxTabPage
51 private:
52 const ::sd::View* mpView;
53 SdDrawDocument* mpDoc;
54 XColorListRef pColList;
56 bool bTreeUpdated;
57 std::vector<css::presentation::ClickAction> maCurrentActions;
58 OUString aLastFile;
59 ::std::vector< long > aVerbVector;
61 std::unique_ptr<weld::ComboBox> m_xLbAction;
62 std::unique_ptr<weld::Label> m_xFtTree; // jump destination controls
63 std::unique_ptr<SdPageObjsTLV> m_xLbTree;
64 std::unique_ptr<SdPageObjsTLV> m_xLbTreeDocument;
65 std::unique_ptr<weld::TreeView> m_xLbOLEAction;
66 std::unique_ptr<weld::Frame> m_xFrame;
67 std::unique_ptr<weld::Entry> m_xEdtSound;
68 std::unique_ptr<weld::Entry> m_xEdtBookmark;
69 std::unique_ptr<weld::Entry> m_xEdtDocument;
70 std::unique_ptr<weld::Entry> m_xEdtProgram;
71 std::unique_ptr<weld::Entry> m_xEdtMacro;
72 std::unique_ptr<weld::Button> m_xBtnSearch;
73 std::unique_ptr<weld::Button> m_xBtnSeek;
75 DECL_LINK( ClickSearchHdl, weld::Button&, void );
76 DECL_LINK( ClickActionHdl, weld::ComboBox&, void );
77 DECL_LINK( SelectTreeHdl, weld::TreeView&, void );
78 DECL_LINK( CheckFileHdl, weld::Widget&, void );
80 void UpdateTree();
81 void OpenFileDialog();
82 css::presentation::ClickAction GetActualClickAction();
83 void SetActualClickAction( css::presentation::ClickAction eCA );
84 void SetEditText( OUString const & rStr );
85 OUString GetEditText( bool bURL = false );
86 static const char* GetClickActionSdResId(css::presentation::ClickAction eCA);
88 public:
89 SdTPAction(TabPageParent pParent, const SfxItemSet& rInAttrs);
90 virtual ~SdTPAction() override;
92 static VclPtr<SfxTabPage> Create( TabPageParent, const SfxItemSet& );
94 virtual bool FillItemSet( SfxItemSet* ) override;
95 virtual void Reset( const SfxItemSet * ) override;
97 virtual void ActivatePage( const SfxItemSet& rSet ) override;
98 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
100 void Construct();
102 void SetView( const ::sd::View* pSdView );
104 using TabPage::ActivatePage;
105 using TabPage::DeactivatePage;
108 #endif // INCLUDED_SD_SOURCE_UI_INC_TPACTION_HXX
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */