CFx SDK Documentation  2020SP3
SmSubset.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef _SmSubset_h_Included_
28 #define _SmSubset_h_Included_
29 
30 #include "Sm/SmComponent.h"
31 #include <OdString.h>
32 #include "Sm/SmEvents.h"
33 #include "Sm/SmFileReference.h"
35 #include "Sm/SmSheet.h"
36 
41 namespace dst
42 {
43  struct SMDLL_EXPORT OdSmSubset;
45 
51  {
53  // Returns the OdSmFileReference that points to the location in the file system where new sheets are created.
54  virtual const OdSmFileReference* getNewSheetLocation() const = 0;
55  // sets the OdSmFileReference that points to the location in the file system where new sheets are created
56  virtual void setNewSheetLocation ( OdSmFileReference* pFileRef ) = 0;
57  // Returns the OdSmNamedAcDbObjectReference that points to the layout used as a template for new sheets.
58  virtual const OdSmDbLayoutReference* getDefDwtLayout() const = 0;
59  // sets the OdSmDbLayoutReference that points to the layout used as a template for new sheets.
60  virtual void setDefDwtLayout ( OdSmDbLayoutReference* pLayoutRef ) = 0;
61  // Returns a Boolean flag indicating if the application should prompt for a DWT file.
62  virtual bool getPromptForDwt() const = 0;
63  // sets a Boolean flag indicating if the application should prompt for a DWT file.
64  virtual void setPromptForDwt( bool askForDwt ) = 0;
65  // Returns a Boolean flag indicating an override for the subset's sheets DoNotPlot option.
66  virtual bool getOverrideSheetPublish() const = 0;
67  // sets a Boolean flag indicating an override for the subset's sheets DoNotPlot option.
68  virtual void setOverrideSheetPublish( bool override ) = 0;
69  // Returns an enumerator of all components in this subset
71  // Adds a new sheet component without adding it to the subset.
72  // To add the new sheet component to the subset, use the InsertComponent method
73  virtual OdSmSheetPtr addNewSheet( const OdString& name, const OdString& desc ) = 0;
74  // Inserts a sheet at the position specified.
75  virtual void insertComponent ( OdSmComponent* newSheet, OdSmComponent* beforeComp = 0) = 0;
76  // Inserts a sheet at the position specified
77  virtual void insertComponentAfter( OdSmComponent* newSheet, OdSmComponent* afterComp = 0 ) = 0;
78  // Adds a new sheet component that references the layout of OdSmDbLayoutReference.
79  // The new component is not added to the subset.
80  // To add the new sheet component to the subset, use the InsertComponent method
81  virtual OdSmSheetPtr importSheet( OdSmDbLayoutReference* pLayoutRef ) = 0;
82  // Removes the specified sheet component from the subset.
83  virtual void removeSheet( OdSmSheet * sheet ) = 0;
84  // Adds a new subset component without adding it to the current subset.
85  virtual OdSmSubsetPtr createSubset( const OdString& name, const OdString& desc ) = 0;
86  // Removes the specified subset component from the collection
87  virtual void removeSubset( OdSmSubset * subset ) = 0;
88  // Forces a notification to all registered notification handlers
89  virtual void notifyRegisteredEventHandlers( OdSmEvent event, OdSmPersist * comp ) = 0;
90  // Updates the hints in the open drawings referenced in the subset
91  virtual void updateInMemoryDwgHints ( ) = 0;
92  };
93 }
94 
95 #endif //_SmSubset_h_Included_
dst::OdSmSubset::removeSheet
virtual void removeSheet(OdSmSheet *sheet)=0
OdString
Definition: OdString.h:95
dst::OdSmSubset::getDefDwtLayout
virtual const OdSmDbLayoutReference * getDefDwtLayout() const =0
dst::OdSmSubset::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdSmSubset)
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
dst::OdSmSubset::getNewSheetLocation
virtual const OdSmFileReference * getNewSheetLocation() const =0
dst::OdSmEvent
OdSmEvent
Definition: SmEvents.h:39
dst::OdSmSubset::setOverrideSheetPublish
virtual void setOverrideSheetPublish(bool override)=0
dst::OdSmSubset::removeSubset
virtual void removeSubset(OdSmSubset *subset)=0
dst::OdSmSubset::getOverrideSheetPublish
virtual bool getOverrideSheetPublish() const =0
dst::OdSmSubset::setPromptForDwt
virtual void setPromptForDwt(bool askForDwt)=0
SmComponent.h
dst::OdSmSubset::getSheetEnumerator
virtual OdSmEnumComponentPtr getSheetEnumerator() const =0
dst::OdSmSubset::createSubset
virtual OdSmSubsetPtr createSubset(const OdString &name, const OdString &desc)=0
SmEvents.h
OdString.h
OdSmartPtr
Definition: SmartPtr.h:58
dst::OdSmFileReference
Definition: SmFileReference.h:43
dst::OdSmSubset::importSheet
virtual OdSmSheetPtr importSheet(OdSmDbLayoutReference *pLayoutRef)=0
SmFileReference.h
dst::OdSmSubset::getPromptForDwt
virtual bool getPromptForDwt() const =0
dst::OdSmComponent
Definition: SmComponent.h:47
SmSheet.h
dst::OdSmSubset::addNewSheet
virtual OdSmSheetPtr addNewSheet(const OdString &name, const OdString &desc)=0
dst::OdSmSubsetPtr
OdSmartPtr< OdSmSubset > OdSmSubsetPtr
Definition: SmSubset.h:44
dst::OdSmPersist
Definition: SmPersist.h:52
dst::OdSmSubset::setNewSheetLocation
virtual void setNewSheetLocation(OdSmFileReference *pFileRef)=0
dst
Definition: SmCalloutBlocks.h:39
SMDLL_EXPORT
#define SMDLL_EXPORT
Definition: SmExport.h:35
SmNamedDbObjectReference.h
dst::OdSmSubset::updateInMemoryDwgHints
virtual void updateInMemoryDwgHints()=0
dst::OdSmDbLayoutReference
Definition: SmNamedDbObjectReference.h:77
dst::OdSmSubset::notifyRegisteredEventHandlers
virtual void notifyRegisteredEventHandlers(OdSmEvent event, OdSmPersist *comp)=0
dst::OdSmSubset::insertComponentAfter
virtual void insertComponentAfter(OdSmComponent *newSheet, OdSmComponent *afterComp=0)=0
dst::OdSmSubset::setDefDwtLayout
virtual void setDefDwtLayout(OdSmDbLayoutReference *pLayoutRef)=0
dst::OdSmSheet
Definition: SmSheet.h:45
dst::OdSmSubset
Definition: SmSubset.h:51
dst::OdSmSubset::insertComponent
virtual void insertComponent(OdSmComponent *newSheet, OdSmComponent *beforeComp=0)=0