/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include #include #include #include #include #include #include #include "dbptypes.hxx" #include #include #include "wizardcontext.hxx" class ResId; namespace dbp { struct OControlWizardSettings { OUString sControlLabel; }; class OControlWizard; typedef ::vcl::OWizardPage OControlWizardPage_Base; class OControlWizardPage : public OControlWizardPage_Base { OControlWizard* m_pDialog; std::unique_ptr m_xFormDatasourceLabel; std::unique_ptr m_xFormDatasource; std::unique_ptr m_xFormContentTypeLabel; std::unique_ptr m_xFormContentType; std::unique_ptr m_xFormTable; std::unique_ptr m_xFrame; protected: OControlWizard* getDialog(); const OControlWizard* getDialog() const; const OControlWizardContext& getContext() const; bool updateContext(); void setFormConnection(const css::uno::Reference< css::sdbc::XConnection >& _rxConn, bool _bAutoDispose = true ); css::uno::Reference< css::sdbc::XConnection > getFormConnection() const; public: OControlWizardPage(weld::Container* pPage, OControlWizard* pWizard, const OUString& rUIXMLDescription, const OUString& rID); virtual ~OControlWizardPage() override; protected: static void fillListBox( weld::TreeView& _rList, const css::uno::Sequence< OUString >& _rItems); static void fillListBox( weld::ComboBox& _rList, const css::uno::Sequence< OUString >& _rItems); protected: void enableFormDatasourceDisplay(); protected: // OWizardPage overridables virtual void initializePage() override; }; struct OAccessRegulator; typedef ::vcl::WizardMachine OControlWizard_Base; class OControlWizard : public OControlWizard_Base { private: OControlWizardContext m_aContext; css::uno::Reference< css::uno::XComponentContext > m_xContext; public: OControlWizard( weld::Window* _pParent, const css::uno::Reference< css::beans::XPropertySet >& _rxObjectModel, const css::uno::Reference< css::uno::XComponentContext >& _rxContext ); virtual ~OControlWizard() override; // make the same base class methods public using OControlWizard_Base::travelNext; public: const css::uno::Reference< css::uno::XComponentContext >& getComponentContext() const { return m_xContext; } const OControlWizardContext& getContext() const { return m_aContext; } bool updateContext(const OAccessRegulator&); void setFormConnection(const OAccessRegulator&, const css::uno::Reference< css::sdbc::XConnection >& _rxConn, bool _bAutoDispose ); css::uno::Reference< css::sdbc::XConnection > getFormConnection(const OAccessRegulator&) const; /** returns the com.sun.star.task.InteractionHandler @param _pWindow The window will be used when an error message has to be shown. */ css::uno::Reference< css::task::XInteractionHandler > getInteractionHandler(weld::Window* _pWindow) const; protected: // initialize the derivees settings (which have to be derived from OControlWizardSettings) // with some common data extracted from the control model void initControlSettings(OControlWizardSettings* _pSettings); // commit the control-relevant settings void commitControlSettings(OControlWizardSettings const * _pSettings); bool needDatasourceSelection(); css::uno::Reference< css::sdbc::XConnection > getFormConnection() const; virtual bool approveControl(sal_Int16 _nClassId) = 0; virtual short run() override; private: bool initContext(); void implGetDSContext(); void implDetermineForm(); void implDeterminePage(); void implDetermineShape(); }; } // namespace dbp /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 6.1'>distro/collabora/lov-6.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-08-14tdf#158510 Added fallback for media files in MediaWindowImplVladislav Tarakanov
2024-05-11loplugin:ostr in svxNoel Grandin
2023-12-30tdf#146619 Recheck svx/ with IWYUGabor Kelemen
2023-06-27lok: only publish MEDIA_SHAPE to selecting viewAshod Nakashian
2023-04-06Fix iOS build failure in commit a5225ba82e94a549f44420f56a7cb9d7906561ccPatrick Luby
2023-04-05avmedia,*: guess the mime type of media files based on file nameMichael Stahl
2023-03-04svx: SdrTextObj maRect - use getter and add funcs. for manipulationTomaž Vajngerl
2023-02-10Guard against no HAVE_FEATURE_AVMEDIA in one more placeTor Lillqvist
2022-11-04svg: export embedded videoAshod Nakashian
2022-10-26lok: support embedded mediaAshod Nakashian
2022-09-03crashtesting: SdrMediaObj destroyed before ctor completesCaolán McNamara
2022-08-29ref-count SdrObjectNoel Grandin
2022-08-25Related: tdf#149971 avmedia: add doc model and render for crop of media objectsMiklos Vajna
2022-08-24Related: tdf#149971 svx: support explicitly provided snapshots for media shapesMiklos Vajna
2022-08-18Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxxStephan Bergmann
2022-05-19tdf#148923 PPTX import: fix incorrect image in media fileTünde Tóth
2022-05-16tdf#149049 give media object a name when createdJim Raykowski
2022-03-03Recheck modules sv* with IWYUGabor Kelemen
2022-03-01gtk4: media dimensions are only reliably available asyncCaolán McNamara
2022-01-07remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enumNoel Grandin
2021-12-01Fix --disable-avmedia for DESKTOP buildJan-Marek Glogowski
2021-04-29loplugin:stringadd simplify some *StringBuffer operationsNoel Grandin
2021-02-10clean up SdrObject cloningNoel
2021-01-21avmedia: add doc model for bitmap fill of slide narrationsMiklos Vajna
2020-12-29loplugin:stringviewparam: operator +Stephan Bergmann
2020-11-06make SdrObject Identifiers SdrObjKind enum membersCaolán McNamara
2020-10-26switching long to a 64-bit type on 64-bit windowsNoel
2020-08-06loplugin:flatten in svx/svdrawNoel Grandin
2020-04-22tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/Gabor Kelemen
2020-04-15add an IsEmpty method to tools::Size and use itNoel Grandin
2020-03-02tdf#42949 Fix IWYU warnings in svx/source/s*/*cxxGabor Kelemen
2020-01-25loplugin:makeshared in svl..svxNoel Grandin
2019-09-03loplugin:constmethod in svxNoel Grandin
2019-08-16use more TOOLS_WARN_EXCEPTIONNoel Grandin
2019-04-30svx: remove nested redundant #ifsMiklos Vajna
2019-03-07log nice exception messages whereever possibleNoel Grandin
2019-02-12o3tl::make_unique -> std::make_unique in svx/Gabor Kelemen
2019-02-04tdf#44223 allow slideshow to play embedded media.Mark Hung
2018-08-02Add missing sal/log.hxx headersGabor Kelemen
2018-07-03use std::unique_ptr for CreateObjectSpecificViewContactNoel Grandin