/* -*- 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_XMLOFF_XMLPAGEEXPORT_HXX #define INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX #include #include #include #include #include #include #include #include #include namespace com { namespace sun { namespace star { namespace style { class XStyle; } namespace container { class XIndexReplace; class XNameAccess;} namespace beans { class XPropertySet; } } } } class SvXMLExport; class XMLPropertyHandlerFactory; class XMLPropertySetMapper; class SvXMLExportPropertyMapper; struct XMLPageExportNameEntry { OUString sPageMasterName; OUString sStyleName; }; class XMLOFF_DLLPUBLIC XMLPageExport : public salhelper::SimpleReferenceObject { SvXMLExport& rExport; const OUString sIsPhysical; const OUString sFollowStyle; css::uno::Reference< css::container::XNameAccess > xPageStyles; ::std::vector< XMLPageExportNameEntry > aNameVector; SAL_DLLPRIVATE bool findPageMasterName( const OUString& rStyleName, OUString& rPMName ) const; rtl::Reference < XMLPropertyHandlerFactory > xPageMasterPropHdlFactory; rtl::Reference < XMLPropertySetMapper > xPageMasterPropSetMapper; rtl::Reference < SvXMLExportPropertyMapper > xPageMasterExportPropMapper; protected: SvXMLExport& GetExport() { return rExport; } void collectPageMasterAutoStyle( const css::uno::Reference< css::beans::XPropertySet > & rPropSet, OUString& rPageMasterName ); virtual void exportMasterPageContent( const css::uno::Reference< css::beans::XPropertySet > & rPropSet, bool bAutoStyles ); bool exportStyle( const css::uno::Reference< css::style::XStyle >& rStyle, bool bAutoStyles ); void exportStyles( bool bUsed, bool bAutoStyles ); public: XMLPageExport( SvXMLExport& rExp ); virtual ~XMLPageExport(); void collectAutoStyles( bool bUsed ) { exportStyles( bUsed, true ); } void exportAutoStyles(); void exportMasterStyles( bool bUsed ) { exportStyles( bUsed, false ); } //text grid enhancement for better CJK support void exportDefaultStyle(); }; #endif // INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tion value='distro/collabora/cp-5.0'>distro/collabora/cp-5.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-11Fix typoAndrea Gelmini
Change-Id: I1b5424df5b26cd18b6f28e48b8a1c3e4a3f1d0c8 Reviewed-on: https://gerrit.libreoffice.org/70576 Tested-by: Jenkins Reviewed-by: himajin100000 <himajin100000@gmail.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-02-21loplugin:indentation (macOS)Stephan Bergmann
* Some .m/.mm files that still contained tabs instead of spaces have been cleaned up with Emacs' untabify (and apple_remote/source/HIDRemoteControlDevice.m needed further manual adaptions): apple_remote/source/GlobalKeyboardDevice.m apple_remote/source/HIDRemoteControlDevice.m apple_remote/source/KeyspanFrontRowControl.m apple_remote/source/RemoteControl.m vcl/osx/a11yrolehelper.mm * Some of the changes predate 0626e66d761de18f62e4d00d427903032da9d517 "Avoid loplugin:indentation after preproc conditional inclusion lines" and would likely have no longer been flagged since. Change-Id: Ibf5faffa743c7f79b36109d9879eb79d63c8c40f Reviewed-on: https://gerrit.libreoffice.org/68090 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-06Fix typoAndrea Gelmini
Change-Id: I1ba3434d13b8976ee80a8c45c137dccf27cecac7 Reviewed-on: https://gerrit.libreoffice.org/67432 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-12Following tdf#111561: no need to autorelease "elements" (apple_remote)Julien Nabet
Change-Id: Ic074af74a9f48618ac1c4b3752b15661f2003815 Reviewed-on: https://gerrit.libreoffice.org/43333 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-11tdf#111561: try to fix leak in HIDRemoteControlDevice (apple_remote)Julien Nabet
Change-Id: I6539f1cc9612eb3380381a54d3d1d674fd66cc03 Reviewed-on: https://gerrit.libreoffice.org/43329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-08-21Typo notifcation->notificationJulien Nabet
Change-Id: I411105f1a3d519dd08bee55c722e4a06a14f238d Reviewed-on: https://gerrit.libreoffice.org/41368 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-08-07loplugin:oncevarStephan Bergmann
Change-Id: I9d6902d86c9b72ad28a025374077ef90a350e598
2017-03-30loplugin:loopvartoosmallStephan Bergmann
Change-Id: Idd385c764778313bfb419a04ca7a3884b78e88f6
2017-03-26Fix typosAndrea Gelmini
Change-Id: Idbf0aa261b829e83d4c08a2e989a4ced871dc6de Reviewed-on: https://gerrit.libreoffice.org/35616 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-01-09loplugin:externvarStephan Bergmann
Change-Id: I35449ee2d7294024fde83e36af83311a08a7ccae
2016-10-05SAL_WNODEPRECATED_DECLARATIONS_PUSH/POP around new macOS 10.12 deprecationsStephan Bergmann
...for now Change-Id: I64a0a8f6a006d75b6f82d7aae570aef414984a78
2016-03-07apple_remote: autorelease --> release in dealloc (destructor)Douglas Mencken
using autorelease here leads to “just leaking” because there's no autorelease pool for thread besides, make sure that released fields do not contain used•to•be•a•valid•pointer value Change-Id: Id6cb37643230f64dbe9f6128f52236f04d0c88e4 Reviewed-on: https://gerrit.libreoffice.org/22981 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-07apple_remote: fix “variable set but not used” for non-debug buildsDouglas Mencken
Change-Id: I038fd0bee0e983a91557226aaba1dcff56512ccb Reviewed-on: https://gerrit.libreoffice.org/22856 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-02-08vcl: cmdevt.[hc]xx -> commandevent.[hc]xxChris Sherlock
Change-Id: I77b30f28ae5a6fad360d7cada9acfaa9c324408b Reviewed-on: https://gerrit.libreoffice.org/22216 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite; Mac-specific code)Stephan Bergmann
Change-Id: Ie5a52b097ff2992de5cc82ba0d303618b44e3213
2014-11-01Fixed license encoding to have all the same apple_remote/source/*Andrea Gelmini
Change-Id: Ibeee5a8c49f2d4710de6a1e0ee2013f3755a177b Reviewed-on: https://gerrit.libreoffice.org/12149 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>