HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TAKE_Manager Class Referenceabstract

#include <TAKE_Manager.h>

+ Inheritance diagram for TAKE_Manager:

Public Member Functions

 TAKE_Manager ()
 
virtual ~TAKE_Manager ()
 
TAKE_TakegetMasterTake ()
 
void destroyTake (TAKE_Take *take, bool *cleaned_dead_data_from_master_take=0)
 
void clear ()
 
TAKE_TakefindTake (const char *name)
 
void getTakes (UT_Array< TAKE_Take * > &takes) const
 
virtual void switchToTake (TAKE_Take *take, bool force_even_if_current=false)
 
bool isSwitching () const
 
void reApplyTake (const TAKE_DataId &id)
 
TAKE_TakeinsertTake (const char *name, const char *parent=0)
 
TAKE_TakegetCurrentTake ()
 
bool isMasterTake ()
 
int globTakes (UT_Array< TAKE_Take * > &list, const char *pattern)
 
virtual void renameTake (TAKE_Take *take, const char *newname)
 
bool reparentTake (TAKE_Take *take, TAKE_Take *parent)
 
TAKE_TakefindDefinition (const TAKE_DataId &id, TAKE_Take *from_which=0)
 
int getListSerial () const
 
const char * getDefaultTakeName ()
 
void setDefaultTakeName (const char *s)
 
bool mergeTake (TAKE_Take *dest, TAKE_Take *src, bool overwrite_dest=false)
 
virtual int save (std::ostream &os, int binary) const
 
virtual bool load (UT_IStream &is)
 
int saveTake (TAKE_StringSaver &strings, TAKE_Take *take, std::ostream &os, int bin, bool recurse) const
 
bool loadTake (UT_StringArray &strings, TAKE_Take *parent, UT_IStream &is, UT_Array< TAKE_Take * > *createdTakes)
 
int copyTake (std::ostream &os, TAKE_Take *take, bool binary, bool recurse) const
 
bool pasteTake (UT_IStream &is, UT_Array< TAKE_Take * > &createdTakes, TAKE_Take *under=0)
 
int stashTakeForUndo (TAKE_Take *layer, std::ostream &os, int binary) const
 
bool restoreTakeForUndo (UT_IStream &is)
 
virtual TAKE_DatadataFactory (const char *oppath, const char *label)=0
 
virtual void notifyObservers (TAKE_Event::TAKE_EventType type, const char *name, const TAKE_Take *take=0)
 
UT_NotifierImpl< TAKE_Event & > & getEventNotifier ()
 

Static Public Member Functions

static TAKE_ManagergetCurrentManager ()
 
static void setCurrentManager (TAKE_Manager *mgr)
 
static bool getAutoIncludeModeFlag ()
 
static void setAutoIncludeModeFlag (bool state)
 
static bool getAutoIncludeLockedAssetsFlag ()
 
static void setAutoIncludeLockedAssetsFlag (bool state)
 

Protected Member Functions

int buildTakeTree (TAKE_Take *take, UT_Array< TAKE_Take * > &list)
 
bool generateName (const char *name, UT_String &result)
 
bool generateUniquePrefix (const char *name, UT_String &result)
 
bool isCurrentTakeActivationPending () const
 
void handlePendingTakeActivation ()
 
TAKE_TakemergeExternal (TAKE_Manager &src, const char *prefix_base, bool current_take_to_require_activation, UT_String &prefix)
 

Protected Attributes

UT_SymbolMap< TAKE_Take * > myNameSpace
 
TAKE_TakemyMasterTake
 
TAKE_TakemyCurrentTake
 

Detailed Description

Definition at line 28 of file TAKE_Manager.h.

Constructor & Destructor Documentation

TAKE_Manager::TAKE_Manager ( )
virtual TAKE_Manager::~TAKE_Manager ( )
virtual

Member Function Documentation

int TAKE_Manager::buildTakeTree ( TAKE_Take take,
UT_Array< TAKE_Take * > &  list 
)
protected
void TAKE_Manager::clear ( )
int TAKE_Manager::copyTake ( std::ostream &  os,
TAKE_Take take,
bool  binary,
bool  recurse 
) const
virtual TAKE_Data* TAKE_Manager::dataFactory ( const char *  oppath,
const char *  label 
)
pure virtual

Implemented in OP_Take.

void TAKE_Manager::destroyTake ( TAKE_Take take,
bool *  cleaned_dead_data_from_master_take = 0 
)
TAKE_Take* TAKE_Manager::findDefinition ( const TAKE_DataId id,
TAKE_Take from_which = 0 
)
TAKE_Take* TAKE_Manager::findTake ( const char *  name)
bool TAKE_Manager::generateName ( const char *  name,
UT_String result 
)
protected
bool TAKE_Manager::generateUniquePrefix ( const char *  name,
UT_String result 
)
protected
static bool TAKE_Manager::getAutoIncludeLockedAssetsFlag ( )
inlinestatic

Definition at line 41 of file TAKE_Manager.h.

static bool TAKE_Manager::getAutoIncludeModeFlag ( )
inlinestatic

Definition at line 36 of file TAKE_Manager.h.

static TAKE_Manager* TAKE_Manager::getCurrentManager ( )
static
TAKE_Take* TAKE_Manager::getCurrentTake ( )
inline

Definition at line 73 of file TAKE_Manager.h.

const char* TAKE_Manager::getDefaultTakeName ( )
inline

Definition at line 89 of file TAKE_Manager.h.

UT_NotifierImpl<TAKE_Event &>& TAKE_Manager::getEventNotifier ( )
inline

Definition at line 130 of file TAKE_Manager.h.

int TAKE_Manager::getListSerial ( ) const
inline

Definition at line 87 of file TAKE_Manager.h.

TAKE_Take* TAKE_Manager::getMasterTake ( )
inline

Definition at line 46 of file TAKE_Manager.h.

void TAKE_Manager::getTakes ( UT_Array< TAKE_Take * > &  takes) const
int TAKE_Manager::globTakes ( UT_Array< TAKE_Take * > &  list,
const char *  pattern 
)
void TAKE_Manager::handlePendingTakeActivation ( )
protected
TAKE_Take* TAKE_Manager::insertTake ( const char *  name,
const char *  parent = 0 
)
bool TAKE_Manager::isCurrentTakeActivationPending ( ) const
inlineprotected

Definition at line 146 of file TAKE_Manager.h.

bool TAKE_Manager::isMasterTake ( )
inline

Definition at line 74 of file TAKE_Manager.h.

bool TAKE_Manager::isSwitching ( ) const
inline

Definition at line 62 of file TAKE_Manager.h.

virtual bool TAKE_Manager::load ( UT_IStream is)
virtual
bool TAKE_Manager::loadTake ( UT_StringArray strings,
TAKE_Take parent,
UT_IStream is,
UT_Array< TAKE_Take * > *  createdTakes 
)
TAKE_Take* TAKE_Manager::mergeExternal ( TAKE_Manager src,
const char *  prefix_base,
bool  current_take_to_require_activation,
UT_String prefix 
)
protected
bool TAKE_Manager::mergeTake ( TAKE_Take dest,
TAKE_Take src,
bool  overwrite_dest = false 
)
virtual void TAKE_Manager::notifyObservers ( TAKE_Event::TAKE_EventType  type,
const char *  name,
const TAKE_Take take = 0 
)
virtual

Reimplemented in OP_Take.

bool TAKE_Manager::pasteTake ( UT_IStream is,
UT_Array< TAKE_Take * > &  createdTakes,
TAKE_Take under = 0 
)
void TAKE_Manager::reApplyTake ( const TAKE_DataId id)
virtual void TAKE_Manager::renameTake ( TAKE_Take take,
const char *  newname 
)
virtual

Reimplemented in OP_Take.

bool TAKE_Manager::reparentTake ( TAKE_Take take,
TAKE_Take parent 
)
bool TAKE_Manager::restoreTakeForUndo ( UT_IStream is)
virtual int TAKE_Manager::save ( std::ostream &  os,
int  binary 
) const
virtual
int TAKE_Manager::saveTake ( TAKE_StringSaver strings,
TAKE_Take take,
std::ostream &  os,
int  bin,
bool  recurse 
) const
static void TAKE_Manager::setAutoIncludeLockedAssetsFlag ( bool  state)
inlinestatic

Definition at line 43 of file TAKE_Manager.h.

static void TAKE_Manager::setAutoIncludeModeFlag ( bool  state)
inlinestatic

Definition at line 38 of file TAKE_Manager.h.

static void TAKE_Manager::setCurrentManager ( TAKE_Manager mgr)
static
void TAKE_Manager::setDefaultTakeName ( const char *  s)
int TAKE_Manager::stashTakeForUndo ( TAKE_Take layer,
std::ostream &  os,
int  binary 
) const
virtual void TAKE_Manager::switchToTake ( TAKE_Take take,
bool  force_even_if_current = false 
)
virtual

Reimplemented in OP_Take.

Member Data Documentation

TAKE_Take* TAKE_Manager::myCurrentTake
protected

Definition at line 142 of file TAKE_Manager.h.

TAKE_Take* TAKE_Manager::myMasterTake
protected

Definition at line 141 of file TAKE_Manager.h.

UT_SymbolMap<TAKE_Take *> TAKE_Manager::myNameSpace
protected

Definition at line 140 of file TAKE_Manager.h.


The documentation for this class was generated from the following file: