/* -*- 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 . */ #ifndef INCLUDED_SW_INC_UNOPARAGRAPH_HXX #define INCLUDED_SW_INC_UNOPARAGRAPH_HXX #include #include #include #include #include #include #include #include #include #include #include #include #include #include "unobaseclass.hxx" class SwPaM; class SwUnoCursor; class SwStartNode; class SwTextNode; class SwTable; class SwXText; typedef ::cppu::ImplInheritanceHelper < ::sfx2::MetadatableMixin , css::lang::XUnoTunnel , css::lang::XServiceInfo , css::beans::XPropertySet , css::beans::XPropertyState , css::beans::XMultiPropertySet , css::beans::XTolerantMultiPropertySet , css::container::XEnumerationAccess , css::container::XContentEnumerationAccess , css::text::XTextContent , css::text::XTextRange > SwXParagraph_Base; class SwXParagraph final : public SwXParagraph_Base { private: class Impl; ::sw::UnoImplPtr m_pImpl; virtual ~SwXParagraph() override; SwXParagraph(css::uno::Reference< css::text::XText > const & xParent, SwTextNode & rTextNode, const sal_Int32 nSelStart, const sal_Int32 nSelEnd); /// descriptor SwXParagraph(); public: static css::uno::Reference CreateXParagraph(SwDoc & rDoc, SwTextNode * pTextNode, css::uno::Reference< css::text::XText> const& xParentText = nullptr, const sal_Int32 nSelStart = -1, const sal_Int32 nSelEnd = - 1); const SwTextNode * GetTextNode() const; bool IsDescriptor() const; /// make rPaM select the paragraph bool SelectPaM(SwPaM & rPaM); /// for SwXText void attachToText(SwXText & rParent, SwTextNode & rTextNode); // MetadatableMixin virtual ::sfx2::Metadatable* GetCoreObject() override; virtual css::uno::Reference< css::frame::XModel > GetModel() override; static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId(); // XUnoTunnel virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier) override; // XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XComponent virtual void SAL_CALL dispose() override; virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener > & xListener) override; virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener > & xListener) override; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override; virtual void SAL_CALL setPropertyValue( const OUString& rPropertyName, const css::uno::Any& rValue) override; virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& rPropertyName) override; virtual void SAL_CALL addPropertyChangeListener( const OUString& rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener) override; virtual void SAL_CALL removePropertyChangeListener( const OUString& rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener) override; virtual void SAL_CALL addVetoableChangeListener( const OUString& rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener) override; virtual void SAL_CALL removeVetoableChangeListener( const OUString& rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& xListener) override; // XPropertyState virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString& rPropertyName) override; virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& rPropertyNames) override; virtual void SAL_CALL setPropertyToDefault( const OUString& rPropertyName) override; virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& rPropertyName) override; // XMultiPropertySet virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rValues) override; virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& rPropertyNames) override; virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener) override; virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener) override; virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener) override; // XTolerantMultiPropertySet virtual css::uno::Sequence< css::beans::SetPropertyTolerantFailed > SAL_CALL setPropertyValuesTolerant( const css::uno::Sequence< OUString >& rPropertyNames, const css::uno::Sequence< css::uno::Any >& rValues) override; virtual css::uno::Sequence< css::beans::GetPropertyTolerantResult > SAL_CALL getPropertyValuesTolerant( const css::uno::Sequence< OUString >& rPropertyNames) override; virtual css::uno::Sequence< css::beans::GetDirectPropertyTolerantResult > SAL_CALL getDirectPropertyValuesTolerant( const css::uno::Sequence< OUString >& rPropertyNames) override; // XElementAccess virtual css::uno::Type SAL_CALL getElementType() override; virtual sal_Bool SAL_CALL hasElements() override; // XEnumerationAccess virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override; // XContentEnumerationAccess virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createContentEnumeration(const OUString& rServiceName) override; virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override; // XTextContent virtual void SAL_CALL attach( const css::uno::Reference< css::text::XTextRange > & xTextRange) override; virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override; // XTextRange virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override; virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override; virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() override; virtual OUString SAL_CALL getString() override; virtual void SAL_CALL setString(const OUString& rString) override; }; struct SwXParagraphEnumeration : public SwSimpleEnumeration_Base { static SwXParagraphEnumeration* Create( css::uno::Reference< css::text::XText > const & xParent, const std::shared_ptr& pCursor, const CursorType eType, SwStartNode const*const pStartNode = nullptr, SwTable const*const pTable = nullptr); }; #endif // INCLUDED_SW_INC_UNOPARAGRAPH_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ use/suse-4.0'>distro/suse/suse-4.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-06-16tdf#86759 and tdf#89466: Enable Page Background Panel for DrawSusobhan Ghosh
2016-06-13tdf#83830: Removal of Page Margin PanelSusobhan Ghosh
2016-06-10tdf#83830: Change Page Deck Icon and TooltipSusobhan Ghosh
2016-05-26tdf#83830: Writer page sidebar deckRishabh Kumar
2016-05-06tdf#70998 Termchange: Graphic->ImageSamuel Mehrbrodt
2016-05-04tdf#89466: Access to page setup dialog, alignment of labelsKatarina Behrens
2016-05-04tdf#89466: Slide Background tabRishabh Kumar
2016-01-25Make Position and Size sidebar tab visible when a line is selectedRishabh
2015-10-22provide more button for chart error bar sidebar panel, tdf#95055Markus Mohrhard
2015-10-10use trendline context for trendlines, tdf#94931, tdf#94934Markus Mohrhard
2015-10-03don't show area and line panel in pie chart Chart selection, tdf#94320Markus Mohrhard
2015-09-17tdf#91063 Rename chart sidebar to propertiesYousuf Philips
2015-09-15Rename Sidebar.xcu node names to be meaningfulLaurent Godard
2015-09-15add more "more options" buttons in chart sidebarMarkus Mohrhard
2015-08-31tdf#73071 Enable styles content panel in calc and fix spacing issueYousuf Philips
2015-08-26typo: Trnedline -> TrendlineAndras Timar
2015-08-05support more command in chart sidebarMarkus Mohrhard
2015-08-03enable "Table Design" for sidebar in Draw too..Tomaž Vajngerl
2015-08-03Change "Design" sidebar deck iconTomaž Vajngerl
2015-07-26don't show the area sidebar for panels where it makes no senseMarkus Mohrhard
2015-07-16add more chart sidebar contextsMarkus Mohrhard
2015-07-12big step towards real chart sidebarMarkus Mohrhard
2015-07-08tdf#87702: Addition of Shadow sidebar tabRishabh Kumar
2015-06-29tdf#84381: Improved sidebar selection analyser for Calc and Draw/ImpressRishabh Kumar
2015-06-16Make track changes sidebar an experimental feature as its incompleteYousuf Philips
2015-06-16tdf#73071:Styles tab addition to the sidebar for writerRishabh Kumar
2015-04-22Theme panel to change color/fonts of current stylesTomaž Vajngerl
2015-04-22add "Style Presets" sidebar panel (experimental) to writerTomaž Vajngerl
2015-04-22add "Design" deck to the sidebarTomaž Vajngerl
2015-04-06tdf#90291 fix missing track changes tab icon in the sidebarYousuf Philips
2015-03-26tdf#87904 changing the sort arrangment of impress's sidebar tabsYousuf Philips
2015-03-24Change icon for track changes in sidebarYousuf Philips
2014-12-19changes sidebar: Limit it to Writer only for now.Jan Holesovsky
2014-12-19changes sidebar: Manage Changes (Redlining) panel instead of the dialog box.Jan Holesovsky
2014-11-24Kill unused (debugging) sidebars.Jan Holesovsky
2014-11-18revert change made in fdo#86040 as agreed on by design teamYousuf Philips
2014-11-09Resolves fdo#86040 Renaming 'Gallery' to 'Clip Art Gallery'Julien Nabet