Go to Google Code Home
Google SketchUp SkpWriter C++ API Documentation (Labs)

Public Member Functions

atlast::sketchup::ISketchUpApplication Interface Reference

The Application providing all the underlying objects. More...

#include <iapplication.h>

Inheritance diagram for atlast::sketchup::ISketchUpApplication:
atlast::sketchup::ISketchUpObject

List of all members.

Public Member Functions

virtual ISketchUpDocumentPtr GetActiveDocument ()=0
 Retrieves the current document.
virtual ISketchUpDocumentPtr NewDocument ()=0
 Creates a new document. Not implemented in all versions of the application.
virtual ISketchUpMenuPtr GetMenu (LPCWSTR menuName)=0
 Provides access to system menus.
virtual CString GetVersion () const =0
 Returns the version of SketchUp.

Detailed Description

The Application providing all the underlying objects.

This class supports any UI that applies across all underlying documents.


Member Function Documentation

virtual ISketchUpDocumentPtr atlast::sketchup::ISketchUpApplication::GetActiveDocument (  )  [pure virtual]

Retrieves the current document.

Return values:
The current document associated with the Application.
virtual ISketchUpMenuPtr atlast::sketchup::ISketchUpApplication::GetMenu ( LPCWSTR  menuName  )  [pure virtual]

Provides access to system menus.

This method will return a menu associated with the well known name of the system menus.

Parameters:
menuName The name of the system menu.
Return values:
The system menu, or NULL if not found.
virtual CString atlast::sketchup::ISketchUpApplication::GetVersion (  )  const [pure virtual]

Returns the version of SketchUp.

The return value is in the format: major.minor.build

Return values:
The version of this application.
virtual ISketchUpDocumentPtr atlast::sketchup::ISketchUpApplication::NewDocument (  )  [pure virtual]

Creates a new document. Not implemented in all versions of the application.

Returns:
The newly created document.

©2010 Google - Google Home - About Google