/* -*- 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 #include "address.hxx" class ScDocShell; class SvxUnoText; class ScPostIt; class ScAnnotationObj final : public cppu::WeakImplHelper< css::container::XChild, css::text::XSimpleText, css::sheet::XSheetAnnotation, css::sheet::XSheetAnnotationShapeSupplier, css::lang::XServiceInfo >, public SfxListener { public: ScAnnotationObj(ScDocShell* pDocSh, const ScAddress& rPos); virtual ~ScAnnotationObj() override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; /// XChild virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override; virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) override; /// XSimpleText virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor() override; virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange( const css::uno::Reference< css::text::XTextRange >& aTextPosition ) override; virtual void SAL_CALL insertString( const css::uno::Reference< css::text::XTextRange >& xRange, const OUString& aString, sal_Bool bAbsorb ) override; virtual void SAL_CALL insertControlCharacter( const css::uno::Reference< css::text::XTextRange >& xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb ) 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& aString ) override; /// XSheetAnnotation virtual css::table::CellAddress SAL_CALL getPosition() override; virtual OUString SAL_CALL getAuthor() override; virtual OUString SAL_CALL getDate() override; virtual sal_Bool SAL_CALL getIsVisible() override; virtual void SAL_CALL setIsVisible( sal_Bool bIsVisible ) override; /// XSheetAnnotationShapeSupplier virtual css::uno::Reference < css::drawing::XShape > SAL_CALL getAnnotationShape() override; /// XServiceInfo virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; private: SvxUnoText& GetUnoText(); const ScPostIt* ImplGetNote() const; private: ScDocShell* pDocShell; ScAddress aCellPos; rtl::Reference pUnoText; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ bora/dcm-7.6 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sdext
AgeCommit message (Expand)Author
2012-03-16do not let a unittest create temp files in the current directoryLuboš Luňák
2012-03-14Enable -Wnon-virtual-dtor for GCC 4.6Stephan Bergmann
2012-03-12sdext: factor out a static library to fix triple-linked objectsMichael Stahl
2012-03-12suppress errors with -WerrorDavid Tardon
2012-03-10operator must be in template or argument namespaceLuboš Luňák
2012-03-10sdext: fix unit test for WindowsMatúš Kukan
2012-03-08beware of excessive white spacesDavid Tardon
2012-03-08Fix Windows compilation errors caused by int/sal_Int32 borkageTor Lillqvist
2012-03-08use better assertion macros in pdfimport unit testMarkus Mohrhard
2012-03-08sdext: Configuration: use nodeliver modeMichael Stahl
2012-03-07WaE: various higher debug level compile time warningsCaolán McNamara
2012-03-07use const_iteratorDavid Tardon
2012-03-06ensure proper ordering, tooDavid Tardon
2012-03-06add dummy dep for generated fileDavid Tardon
2012-03-06update makefileDavid Tardon
2012-03-06this code is still used by pdfimport's test appsDavid Tardon
2012-03-06the passed string is already quotedDavid Tardon
2012-03-06remove leftover makefilesDavid Tardon
2012-03-06convert pdfimport testDavid Tardon
2012-03-06the include must be at the beginningDavid Tardon
2012-03-06fix platform IDDavid Tardon
2012-03-06remove unused bitmapDavid Tardon
2012-03-06remove unused sourcesDavid Tardon
2012-03-06fix placement of help fileDavid Tardon
2012-03-06fix added library namesDavid Tardon
2012-03-06fix platform IDDavid Tardon
2012-03-06let gb_Extension do the necessary manifest updatesDavid Tardon
2012-03-06set platformDavid Tardon
2012-03-06fix platform IDDavid Tardon
2012-03-06build test executables for pdfimportDavid Tardon
2012-03-06gbuildize sdextDavid Tardon
2012-02-28Avoid temporary rtl::OUStringTakeshi Abe
2012-02-26Avoid temporary rtl::OUStringJulien Nabet
2012-02-21WaE: duplicateBranchThomas Arnhold
2012-02-19Get rid of size() == 0Elton Chung
2012-02-18Fix typos in commentsElton Chung
2012-02-17WaE: unreachable codeCaolán McNamara
2012-02-13Remove unused pdfi::PDFIRawAdaptor::odfConvertKate Goss
2012-02-13Remove unused pdfi::PDFIProcessor::sortDocument(bool)Kate Goss
2012-02-13Remove unused pdfi::DrawXmlEmitter::GetBreakIterator()Kate Goss
2012-02-10This method is still used on WIN32.Kohei Yoshida
2012-02-10Removed unused codeAlexander Bergmann
2012-02-09Added and improved READMEs for modules in extensions, extras, postprocessJosh Heidenreich
2012-02-08update unused listCaolán McNamara
2012-02-05replace SOLARSRC by SRC_ROOT and get rid of SOLARDEFIMG usesNorbert Thiebaud