Files
libreoffice/sw/inc/ndnotxt.hxx

106 lines
4.1 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2011-03-31 10:05:04 +02:00
/*
* 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_NDNOTXT_HXX
#define INCLUDED_SW_INC_NDNOTXT_HXX
2000-09-18 16:15:01 +00:00
#include "node.hxx"
namespace tools { class PolyPolygon; }
2000-09-18 16:15:01 +00:00
// SwNoTextNode
2000-09-18 16:15:01 +00:00
class SW_DLLPUBLIC SwNoTextNode : public SwContentNode
2000-09-18 16:15:01 +00:00
{
friend class SwNodes;
friend class SwNoTextFrm;
2000-09-18 16:15:01 +00:00
tools::PolyPolygon *pContour;
bool bAutomaticContour : 1; // automatic contour polygon, not manipulated
bool bContourMapModeValid : 1; // contour map mode is not the graphics's
// preferred map mode, but either
// MM100 or pixel
bool bPixelContour : 1; // contour map mode is invalid and pixel.
2000-09-18 16:15:01 +00:00
2011-02-21 02:20:33 +01:00
// Creates for all derivations an AttrSet with ranges for frame- and
// graphics-attributes (only called by SwContentNode).
virtual void NewAttrSet( SwAttrPool& ) SAL_OVERRIDE;
2000-09-18 16:15:01 +00:00
SwNoTextNode( const SwNoTextNode& ) SAL_DELETED_FUNCTION;
SwNoTextNode &operator=( const SwNoTextNode& ) SAL_DELETED_FUNCTION;
2000-09-18 16:15:01 +00:00
protected:
SwNoTextNode( const SwNodeIndex &rWhere, const sal_uInt8 nNdType,
SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr = 0 );
2000-09-18 16:15:01 +00:00
public:
virtual ~SwNoTextNode();
2000-09-18 16:15:01 +00:00
virtual SwContentFrm *MakeFrm( SwFrm* ) SAL_OVERRIDE;
2000-09-18 16:15:01 +00:00
inline SwGrfFormatColl *GetGrfColl() const { return const_cast<SwGrfFormatColl*>(static_cast<const SwGrfFormatColl*>(GetRegisteredIn())); }
2000-09-18 16:15:01 +00:00
virtual Size GetTwipSize() const = 0;
virtual bool SavePersistentData();
virtual bool RestorePersistentData();
2000-09-18 16:15:01 +00:00
OUString GetTitle() const;
void SetTitle( const OUString& rTitle, bool bBroadcast = false );
OUString GetDescription() const;
void SetDescription( const OUString& rDescription, bool bBroadcast = false );
CWS-TOOLING: integrate CWS sw32a11y01 2009-08-27 10:11:46 +0200 hde r275457 : new testcase i103265 2009-08-27 08:24:31 +0200 hde r275454 : new testcase i103265 2009-08-27 08:23:05 +0200 hde r275453 : new document for testcase i103265 2009-08-26 13:43:33 +0200 hde r275421 : added new autotest 2009-08-26 13:36:28 +0200 hde r275420 : added new autotest 2009-08-18 15:41:18 +0200 od r275113 : #i104300# method <SwEditWin::RequestHelp(..)> - improve help tip for hyperlinks to cross-reference bookmarks. 2009-08-10 15:18:41 +0200 od r274816 : #i73249# method <SwFrameShell::Execute(..)> - no update of fly frame manager on dialog "Title and Description" 2009-08-10 14:24:15 +0200 od r274813 : #i92125# correction of end of file - missing newline end 2009-08-10 14:10:14 +0200 od r274811 : #i92125# correction of end of file - newline missing 2009-08-10 14:00:30 +0200 od r274808 : #i92125# - correct end of file - new line missing 2009-08-10 09:12:30 +0200 od r274794 : CWS-TOOLING: rebase CWS sw32a11y01 to trunk@274622 (milestone: DEV300:m54) 2009-08-07 15:52:59 +0200 od r274775 : #i73249# minor adjustment due to compiler warning 2009-08-07 15:40:38 +0200 od r274774 : #i92125# method <MarkManager::deleteMarks(..)> - do not delete cross-reference bookmark, if deletion occurs inside a certain node 2009-08-06 12:53:05 +0200 od r274717 : #i92125# method <MarkManager::deleteMarks(..) - no move of position for cross-reference bookmark, if move occurs inside certain node. 2009-08-06 12:50:27 +0200 od r274716 : #i92125# method <SwUndoSaveCntnt::DelCntntIndex(..)> - keep cross-reference bookmarks, if deletion occurs inside a certain node. 2009-08-06 09:53:29 +0200 od r274705 : #i103265# method <SwTOXPara::GetURL()> - For outline and template entries create link to bookmark. The bookmark of type CROSSREF_HEADING_BOOKMARK is created, if needed 2009-07-22 13:57:04 +0200 od r274236 : #i73249# adjustment for export of svg:title and svg:description 2009-07-22 13:51:58 +0200 od r274234 : #i73249# adjust and enhance import/export of svg:title and svg:description for Writer's text frames, graphics and embedded objects 2009-07-21 10:26:27 +0200 od r274168 : #i73249# implement support for attributes Title and Description for text frames, graphics and embedded objects in Writer - core, UNO-API, undo/redo and UI 2009-07-21 10:05:15 +0200 od r274164 : #i73249# new optional properties Title and Description as basis frame properties in text documents 2009-07-13 12:19:54 +0200 od r273928 : #i73249# Implementation of Undo/Redo of drawing object's name, title and description
2009-08-27 11:59:20 +00:00
void SetContour( const tools::PolyPolygon *pPoly,
bool bAutomatic = false );
const tools::PolyPolygon *HasContour() const;
bool _HasContour() const { return pContour!=0; };
void GetContour( tools::PolyPolygon &rPoly ) const;
2000-09-18 16:15:01 +00:00
void CreateContour();
2001-05-04 07:34:39 +00:00
void SetAutomaticContour( bool bSet ) { bAutomaticContour = bSet; }
bool HasAutomaticContour() const { return bAutomaticContour; }
2000-09-18 16:15:01 +00:00
2001-05-04 07:34:39 +00:00
// set either a MM100 or pixel contour
void SetContourAPI( const tools::PolyPolygon *pPoly );
2001-05-04 07:34:39 +00:00
// get either a MM100 or pixel contour, return false if no contour is set.
bool GetContourAPI( tools::PolyPolygon &rPoly ) const;
2001-05-04 07:34:39 +00:00
void SetPixelContour( bool bSet ) { bPixelContour = bSet; }
bool IsPixelContour() const;
2001-05-04 07:34:39 +00:00
bool IsContourMapModeValid() const { return bContourMapModeValid; }
2001-05-04 07:34:39 +00:00
2011-02-21 02:20:33 +01:00
// Obtains the graphic with SwapIn for GrfNode via GetData for OLE.
2000-09-18 16:15:01 +00:00
Graphic GetGraphic() const;
};
// Inline methods from Node.hxx - we know TextNode only here!!
inline SwNoTextNode *SwNode::GetNoTextNode()
2000-09-18 16:15:01 +00:00
{
return ND_NOTXTNODE & nNodeType ? static_cast<SwNoTextNode*>(this) : 0;
2000-09-18 16:15:01 +00:00
}
inline const SwNoTextNode *SwNode::GetNoTextNode() const
2000-09-18 16:15:01 +00:00
{
return ND_NOTXTNODE & nNodeType ? static_cast<const SwNoTextNode*>(this) : 0;
2000-09-18 16:15:01 +00:00
}
#endif // INCLUDED_SW_INC_NDNOTXT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */