CFx SDK Documentation  2023 SP0
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_
#define SMDLL_EXPORT
Definition: SmExport.h:35
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdSmartPtr< OdSmSubset > OdSmSubsetPtr
Definition: SmSubset.h:44
OdSmEvent
Definition: SmEvents.h:39
virtual void setPromptForDwt(bool askForDwt)=0
virtual OdSmSheetPtr importSheet(OdSmDbLayoutReference *pLayoutRef)=0
virtual void insertComponent(OdSmComponent *newSheet, OdSmComponent *beforeComp=0)=0
virtual void setDefDwtLayout(OdSmDbLayoutReference *pLayoutRef)=0
virtual const OdSmDbLayoutReference * getDefDwtLayout() const =0
virtual const OdSmFileReference * getNewSheetLocation() const =0
virtual void notifyRegisteredEventHandlers(OdSmEvent event, OdSmPersist *comp)=0
virtual void updateInMemoryDwgHints()=0
virtual bool getPromptForDwt() const =0
virtual OdSmSheetPtr addNewSheet(const OdString &name, const OdString &desc)=0
virtual void setNewSheetLocation(OdSmFileReference *pFileRef)=0
virtual void removeSheet(OdSmSheet *sheet)=0
virtual void insertComponentAfter(OdSmComponent *newSheet, OdSmComponent *afterComp=0)=0
virtual OdSmSubsetPtr createSubset(const OdString &name, const OdString &desc)=0
virtual bool getOverrideSheetPublish() const =0
virtual OdSmEnumComponentPtr getSheetEnumerator() const =0
virtual void removeSubset(OdSmSubset *subset)=0
virtual void setOverrideSheetPublish(bool override)=0
ODRX_DECLARE_MEMBERS(OdSmSubset)