9 #import <Foundation/Foundation.h> 15 #import "CommanderEnums.h" 17 @class GridGraphViewer;
18 @class LinkDrillParameters;
19 @class LayoutManagerViewer;
20 @class LayoutManagerController;
21 @class BrushingHighlightData;
23 @class DocumentRenderer;
24 @class InfoWindowContainerViewer;
28 class DSSRWSectionNode;
31 class DSSRWSectionNode;
33 class DSSRWSectionIterator;
64 class DSSCManipulationSetCurrentPanel;
80 @property (nonatomic, weak) UIView* mView;
81 @property (nonatomic) CGRect mRect;
82 @property (nonatomic) BOOL mAddToPass;
84 @property (nonatomic, strong) NSString* mInfoWinLayoutKey;
85 @property (nonatomic) NSInteger mPreferredPlacement;
86 @property (nonatomic)
int mEventType;
91 @property (nonatomic) BOOL mNeedRedraw;
138 @class TransactionParameters;
142 class DSSDocumentInstance;
143 class DSSActionObject;
144 class DSSBaseElementProxy;
146 class NodeAndControls;
147 class DSSCMacroManipulation;
148 @class TransactionParameters;
150 @class ManipulationContext;
154 @class TransactionSubmission;
157 typedef std::map<std::string, std::vector<id<IViewer> __unsafe_unretained> >
MapNodeKeyToViewers;
282 @property (nonatomic, weak) id<RWDDashboardDelegate> delegate;
283 @property (nonatomic, copy) NSString* baseURL;
284 @property (nonatomic)
int webserverType;
286 @property (nonatomic) BOOL enableGraphTooltips;
287 @property (nonatomic) CGFloat groupbyHeight;
288 @property (nonatomic) CGRect frameForView;
289 @property (nonatomic)
short layoutBarStyle;
290 @property (nonatomic)
short layoutBarPosition;
291 @property (nonatomic)
bool enableZoomByPinchOrDoubleTap;
292 @property (nonatomic, strong) UIView* groupbyViewer;
293 @property (nonatomic) BOOL runAsReport;
294 @property (nonatomic) BOOL forceUpdateSubviews;
295 @property (nonatomic) BOOL hasLayoutBarPortrait;
296 @property (nonatomic) BOOL isReport;
297 @property (nonatomic, weak) UIImage* mpDefaultFailImage;
298 @property (nonatomic) BOOL isPostOrion;
299 @property (nonatomic) BOOL disableGraphAnimation;
300 @property (nonatomic, strong)
ViewerDataModel* layoutContainerViewerModel;
301 @property (nonatomic) BOOL containWidget;
304 @property (nonatomic) BOOL skipAddNGBSection;
305 @property (nonatomic, readonly) BOOL firstNGBRow;
306 @property (nonatomic, readonly) BOOL lastNGBRow;
307 @property (nonatomic, readonly) BOOL hasNGBAll;
309 @property (nonatomic) BOOL isAnyCommandRunning;
310 @property (nonatomic) BOOL cancelInfoWindowPopping;
311 @property (nonatomic)
bool isScrollingOrZooming;
312 @property (nonatomic) BOOL isVIDocument;
313 @property (nonatomic, assign) BOOL showFilterPanel;
314 @property (nonatomic)
ThemeType mThemeType;
315 @property (nonatomic) BOOL isHTML5VIDocument;
316 @property (nonatomic, weak) LayoutManagerViewer* layoutManagerViewer;
317 @property (nonatomic, weak) LayoutManagerController* layoutManagerController;
318 @property (nonatomic) BOOL inSDKMode;
319 @property (nonatomic) BOOL isViewFitWidth;
320 @property (nonatomic) CGFloat sdkScaleRatio;
321 @property (nonatomic) BOOL inPreviewGeneration;
322 @property (nonatomic) BOOL previewCancelled;
323 @property (nonatomic) BOOL updatePreviewInMain;
324 @property (nonatomic, strong) UIView * dockedHeaderView;
325 @property (nonatomic, strong) UIView * dockedFooterView;
326 @property (nonatomic) BOOL mRenderingHeader;
327 @property (nonatomic) BOOL mRenderingFooter;
328 @property (nonatomic) CGFloat layoutWidth;
329 @property (nonatomic) BOOL inGBA;
330 @property (nonatomic)
bool mEnableCopyForText;
331 @property (atomic) BOOL duringRWDDashboardViewFadeInAnimation;
333 @property (nonatomic, weak)UIView* responderSelectableTextViewer;
334 @property (nonatomic, strong)LinkDrillParameters* linkdrillParam;
335 @property (nonatomic)BOOL isTableObjectNode;
336 @property (nonatomic)BOOL isVIDocumentChanged;
337 @property (nonatomic, weak)DocumentRenderer* documentRenderer;
338 @property (nonatomic)CGFloat documentScaleRatio;
339 @property (nonatomic)CGFloat documentScaleRatioVertical;
340 @property (nonatomic, strong)NSMutableSet * widgetSet;
341 @property (nonatomic)BOOL hasWidget;
343 @property (nonatomic)BOOL needRescaleForiPhone6;
344 @property (nonatomic, readonly)BOOL applyGroupByToAllLayouts;
345 @property (nonatomic)BOOL allowOfflineSubmit;
346 @property (nonatomic) BOOL submitInOrder;
348 @property (nonatomic) BOOL isDossierPage;
355 - (DSSCMacroManipulation *)getMacroManipulationWithResetToFirstPanelCommand:(const std::
string &)irSelectorKey;
361 - (void) notifyPanelStackResetToFirstPanel:(const std::
string &) selectorKey;
368 - (void) findAllPanelStackTargets:(DSSRWControl *)ipRWControl
369 withOutputs:(std::vector<DSSRWSectionNode *> &) vTargetNodes;
376 - (void) findFirstPanelStackTargets:(DSSRWControl *)ipRWControl
377 withOutputs:(std::vector<DSSRWSectionNode *> &) vTargetNodes;
384 - (BOOL) SynchWithSelectorFromPanelStack:(DSSRWSectionNode *) ipRWSectionNode
385 withIndex:(const
int) iIdx;
391 - (BOOL)isDockedPanelStackSelector:(NodeAndControls*)lControl;
393 - (void)executeCommitTransactionWithTargetKeys:(NSArray*)targetKeys;
395 - (void)setDocInstance:(DSSDocumentInstance *)instance;
396 - (DSSDocumentInstance*)getDocInstance;
398 - (void)setDocContext:(MSIDocumentContext *)iDocContext;
400 - (MSIDocumentContext *)getDocContext;
402 - (NSArray*)getPaletteColors;
404 - (void)registerViewer:(
id<
IViewer>)iViewer withNode:(DSSRWNode*)iNode;
406 - (void)registerViewer:(
id<
IViewer>)iViewer forNodeKey:(std::
string)iNodeKey;
408 - (void)unregisterViewer:(
id<
IViewer>)iViewer;
410 - (void)unregisterViewersWithNodeKey:(std::
string)iNodeKey;
412 - (void*)getCommandByType:(
int)iType;
414 - (std::vector<void*>)getAvailableCommandTypes:(
void*)iCellHandle;
417 - (int)executeCommands:(const std::vector<
Command*>&)iCommands;
418 - (int)executeCommands:(const std::vector<
Command*>&)iCommands asyncExec:(BOOL)async;
419 - (int)executeCommands:(const std::vector<
Command*>&)iCommands ShowWaitView:(BOOL)showWaitView;
420 - (int)executeCommands:(const std::vector<
Command*>&)iCommands showWaitViewOnView:(UIView*)view;
423 - (DSSBaseElementProxy*) getReplacedElement:(std::
string)iNodeKey;
430 - (void)generatePreviewImage;
432 - (void)setRootViewContainer:(UIView*)iRootViewContainer;
434 - (UIView*)getRootViewContainer;
436 - (void)setRWDDashBoardView:(UIView*)RWDDashBoardView;
438 - (UIView*)getRWDDashBoardView;
440 - (void)registerMasterView:(
id<
IViewer>)iViewer forNodeKey:(std::
string)iNodeKey;
441 - (void)unregisterMasterViewer:(
id <
IViewer>)iViewer;
443 - (void)hideAllInfoWindows:(BOOL)animated;
446 - (void)getImagesFromIServer:(NSArray*) iImagesArray forTimeStamp: (NSArray*) iImagesTimeStamp forAsync:(BOOL)ibAsync;
448 - (void)setDisplayMode:(
int)iDispalyMode;
450 - (int)getDisplayMode;
452 - (BOOL)isMultiSelectionMode;
454 - (void)afterManipulation:(NSValue*)iValue;
457 - (void)beginReplayManipulation;
458 - (BOOL)replayManipulations:(NSArray*)events WithData:(NSData*)newData WithFlags:(
unsigned int)flags;
459 - (BOOL)replayManipulation:(NSString*)events WithData:(NSData*)newData WithFlags:(
unsigned int)flags;
461 - (void)endReplayManipulation:(BOOL)needRefresh;
462 - (void)executeLinkDrill:(LinkDrillParameters*) linkDrillParams;
463 - (BOOL)validateCacheExecuteLinkDrill:(LinkDrillParameters*) linkDrillParams;
464 - (BOOL)validateCacheHandleLinkDrill:(
MSIURLHelper*) urlHelper;
469 - (void)handleEPUB:(
MSIURLHelper*) _urlHelper withSender:(UIView *) iView;
473 - (NSString*)getClientManipulations;
474 - (void)clearClientManipulations;
477 - (NSString*)getSelectedElementOfAttribute:(NSString*)attributeId;
478 - (void)enableInteraction:(BOOL)enabled;
480 - (void)getEmptyGridDisplay:(NSString**) emptyMessage display:(BOOL*) displayEmptyMsg;
481 - (UIView*) getEmptyDisplayView:(NSString*) emptyMessage forFrame:(CGRect)viewFrame showDarkText:(BOOL)showDarkText;
482 - (void)afterBinaryApplied:(BOOL)iSuccess;
483 - (BOOL)isDuringBackward;
484 - (BOOL)isDisabledforShowPrompt;
493 - (BOOL)hasPreviousPage;
497 - (BOOL)goToNextPage;
501 - (BOOL)goToPreviousPage;
505 - (BOOL)isNGBSelectionsInited;
509 - (void)initNGBSelections:(DSSRWSectionIterator*)ipIterator;
513 - (BOOL)needReInitNGBSelections;
517 - (void)reinitNGBSelections;
521 - (void)clearNGBSelectionsAllFields;
525 - (void)getCurrentPageIndex:(
int&)iCurrentPageIndex totalPageCount:(
int&)iTotalPagesCount;
529 - (void)updateNGBSelectionAfterRotation;
533 - (BOOL)isLeafNGBNode:(DSSRWNode*)ipRWNode;
537 - (int)getNGBFirstRowIndexInCurrentPage;
541 - (void) setContentScaleFactorOnDemandToViews:(UIView*) iView rootView:(UIView*) iRootView;
542 - (void) setContentScaleFactorOnDemandToViews:(UIView*) iView rootView:(UIView*) iRootView informView:(BOOL)inform;
544 - (void) restoreZoomForBackOperation;
545 - (void) zoomDashboardToScale:(CGFloat)iScale;
548 - (void) requestMissingBinaryBlock:(NSString*) iLayoutKey;
549 - (BOOL)requestLayoutData:(DSSRWNode*)iRWNode withHandler:(
id<
BinaryRetrievalHandler>)iHandler withSelector:(
SEL)callbackFunction;
551 - (void) showWaitViewOnTop;
552 - (void) dismissWaitViewOnTop;
553 - (void)dataModelCreationFailed;
554 - (void)hideMasterPanel:(BOOL)disable;
555 - (void)showMasterPanel;
558 - (void)restoreDetailedTransactionModel:(TransactionParameters*)iTransactionParameters;
559 - (void)restoreDetailedTransactionArray:(NSArray*)iTransactionDetails;
560 - (NSArray*)getDetailedTransactionData;
562 - (GridGraphViewer*)getGridGraphViewerForReport;
565 -(void) hideRightNavigationBarButtons;
566 -(void) showRightNavigationBarButtons;
569 - (void) saveWidgetStateWithObject:(
id)obj forKey:(
id)key;
570 - (id) loadWidgetStateForKey:(
id)key;
573 - (void)saveWidgetState:(
id)obj forKey:(
id)key;
574 - (id)loadWidgetState:(
id)key;
587 - (id) replayCarryOverPrompts:(
CarryOverSelectionsSet*)selections withPromptQuestionXML:(NSData*)promptQestion withPrompts:(
id)data;
590 - (void)photoUploadImageChange:(const std::vector<
Command*>&)iCommands nodeKey:(NSString*)ipNodeKey imgPath:(NSString*)ipImgPath;
593 - (void)photoUploadImageChange:(const std::vector<
Command*>&)iCommands nodeKey:(NSString*)ipNodeKey imgPath:(NSString*)ipImgPath shouldReplacePreImage:(BOOL) replace;
596 - (void)photoUploadImageChange:(NSString*)ipNodeKey imgPath:(NSString*)ipImgPath;
599 - (void)photoUploadImageChange:(NSString *)ipNodeKey imgPath:(NSString *)ipImgPath shouldReplacePreImage:(BOOL) replace;
607 -(DSSRWIterator*) getDSSRWIteratorForTransactionReport:(NSString*)transactionReportID;
610 - (void) refreshInstanceWithData:(NSData*)newData;
613 - (std::vector<DSSRWSectionNode*>)getPanelNodeFromPanelSelectionURLHelper:(
MSIURLHelper*) iUrlHelper;
614 - (BOOL)checkForTransactionUpdate;
616 - (ManipulationContext *)getManipulationContext;
618 - (NSString *)dossierId;
619 - (void)setChangeLayoutButtonEnabled:(BOOL)enabled;
622 #pragma mark Mobile rotation 624 - (NSInteger) chooseDocumentViewForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
625 - (BOOL)shouldCancelRendering;
626 @property (nonatomic) NSInteger currentDocumentView;
629 - (NSUInteger)getNumberOfDocumentViews;
630 - (CGSize)getCurrentDocumentViewLogicalSize;
634 - (void)handleRenderFinishTime:(NSDate *)date;
637 - (CGRect) updateRootViewerContainerFrame: (CGRect)frame;
638 - (CGFloat) getHeaderSectionYOffset;
639 - (double) getDockedHeaderHeight;
640 - (double) getDockedFooterHeight;
641 - (CGFloat) getCalGroupbyHeight;
642 - (UIView *) checkIfInDockedSection:(UIView *)view;
643 - (BOOL)isViewerDocked:(UIView*)view;
647 - (void)disableIPhoneLayoutBar:(BOOL)disable;
649 -(NSArray*)getAllDataSetIDs;
658 - (NSString*) getCurrentVisualizationContentPanelStackKey;
662 - (NSString*) getVisualizationContentPanelStackKeyForLayout:(NSString*)iLayoutKey;
666 - (void) setVisualizationContentPanelStackKey:(NSString*)iVIContentPanelStackKey forLayout:(NSString*)iLayoutKey;
670 - (void) removeVisualizationContentPanelStackKeyForLayout:(NSString*)iLayoutKey;
674 - (NSString*) getCurrentLayoutKey;
678 - (NSArray *) getAllLayoutNames;
680 - (NSArray *) getAllLayoutKeys;
682 - (NSString*) getCurrentLayoutName;
684 - (BOOL)isFullScreen;
686 - (BOOL) hasNavigationTabBar;
692 - (NSData*)getViewersStatus;
700 - (int)replayViewersStatus:(NSData*)iData;
704 - (NSData*)getSavedViewerStatus:(NSString*)iViewerID;
706 - (void) increaseWidgetCount:(
id)viewer;
707 - (void) decreaseWidgetCount:(
id)viewer;
709 - (NSString*)documentName;
710 - (NSString*)documentID;
712 - (void)viewEvaluationFinish;
717 - (NSInteger)getColorByItemIndexByColorByString:(NSString*) colorByItemString;
726 - (CATransform3D)getRescaleTransformForIPhone6:(CGFloat)originHeight
727 isLandscape:(BOOL)isLandscape
728 isFullscreenDoc:(BOOL)isFullscreen
729 extraOccupiedHeight:(CGFloat)extraOccupiedHeight;
734 - (NSArray*)getViewerChangedListAfterManipulation;
738 - (void)handleWillQuitExport:(
void (^)())handler;
740 - (bool)shouldDismissIW:(InfoWindowContainerViewer *)infoWindow withURLHelper:(
MSIURLHelper *)urlHelper;
746 - (void) saveAsVIDocument:(NSString*)folderID andDocName:(NSString*)docName andDocDesc:(NSString*)docDescription andSFlag:(
EnumDSSXMLDocSaveAsFlags)flag;
747 - (void) createNewFolder:(NSString*)parentFolderID andFolderName:(NSString*)folderName andFolderDesc:(NSString*)folderDescription;
751 - (void) handleBrushingHighlightForVI:(BrushingHighlightData *)highlightData;
757 @property (nonatomic) std::vector<Command*> mCommands;
ThemeType mThemeType
Definition: Commander.h:233
std::map< std::string, std::vector< id< IViewer > __unsafe_unretained > > MapNodeKeyToViewers
Definition: Commander.h:155
CGFloat layoutWidth
Definition: Commander.h:258
BOOL isVIDocument
Definition: Commander.h:229
BOOL mRenderingFooter
Definition: Commander.h:257
BOOL cancelInfoWindowPopping
Definition: Commander.h:221
Definition: MicroStrategyMobileSDK-Swift.h:3306
Definition: DocumentManipulation.h:42
NSString * baseURL
Definition: Commander.h:170
BOOL disableGraphAnimation
Definition: Commander.h:205
NSMutableDictionary * mpViewerStatusDict
Definition: Commander.h:272
ManipulationType previousManipulationType
Definition: Commander.h:183
enum _ManipulationType ManipulationType
Definition: Commander.h:110
void * mCommand
Definition: Commander.h:67
bool mUseNewWorkflow
Definition: Commander.h:239
Definition: Commander.h:122
BOOL allowOfflineSubmit
Definition: Commander.h:274
NSMutableDictionary * mpWidgetState
Definition: Commander.h:225
Command * asyncCommand
Definition: Commander.h:179
EnumDSSXMLDocSaveAsFlags
Definition: DSSIPhoneEnums.h:3503
Definition: Commander.h:54
UIImage *__weak mpDefaultFailImage
Definition: Commander.h:195
Definition: Commander.h:98
BOOL skipAddNGBSection
Definition: Commander.h:218
int drillType
Definition: Commander.h:181
MSIURLHelper * urlHelper
Definition: Commander.h:185
BOOL previewCancelled
Definition: Commander.h:249
Definition: DrillXMLCommandParameters.h:12
std::map< std::string, std::string > MapNameToNodeKey
Definition: Commander.h:158
EnumCommandViewerType mViewerType
Definition: Commander.h:72
Definition: RWDDashboardDelegate.h:38
Definition: Commander.h:110
Definition: Commander.h:60
UIView *__weak mRWDDashBoardView
Definition: Commander.h:175
Definition: Commander.h:90
_ManipulationType
Definition: Commander.h:108
BOOL mApplyGroupByToAllLayouts
Definition: Commander.h:269
Definition: Commander.h:66
short vizLevel
Definition: Commander.h:211
Definition: Commander.h:744
UIView *__weak mRootViewContainer
Definition: Commander.h:174
CGRect frameForView
Definition: Commander.h:189
Definition: Commander.h:114
BOOL isPostOrion
Definition: Commander.h:203
BOOL isTableObjectNode
Definition: Commander.h:265
Definition: MicroStrategyMobileSDK-Swift.h:7625
Definition: Commander.h:123
Definition: CarryOverSelectionsSet.h:9
EnumCommandContextType
Definition: Commander.h:57
NGBSelections()
Definition: Commander.h:105
DSSDocumentInstance * docInstance
Definition: Commander.h:162
Definition: Commander.h:43
DSSRWSectionIterator * topNGBIterator
Definition: Commander.h:102
EnumInfoWindowEventType
Definition: Commander.h:49
TransactionSubmission * transactionSubmission
Definition: Commander.h:266
Definition: Commander.h:110
Definition: ViewerDataModel.h:19
Definition: Commander.h:120
Definition: Commander.h:52
UIView * groupbyViewer
Definition: Commander.h:198
UIView * currentView
Definition: Commander.h:260
BOOL inSDKMode
Definition: Commander.h:244
GridGraphViewer *__weak mpGridGraphViewer
Definition: Commander.h:222
DocumentManipulation * documentManipulation
Definition: Commander.h:240
short layoutBarStyle
Definition: Commander.h:191
int webserverType
Definition: Commander.h:172
BOOL mRenderingHeader
Definition: Commander.h:256
BOOL hasLayoutBarPortrait
Definition: Commander.h:201
Definition: Commander.h:115
DossierPageManipulator * pageManipulator
Definition: Commander.h:277
MSIDocumentContext * docContext
Definition: Commander.h:163
Definition: Commander.h:79
BOOL isReport
Definition: Commander.h:202
id mContext
Definition: Commander.h:69
CGFloat groupbyHeight
Definition: Commander.h:188
Definition: Commander.h:129
BOOL mIsNGBNeedRestored
Definition: Commander.h:268
BOOL waitForPreviousManipulation
Definition: Commander.h:182
NSDictionary * extraInfo
Definition: Commander.h:73
Definition: Commander.h:121
Definition: Commander.h:109
EnumReplayManipulationsFlags
Definition: Commander.h:41
LayoutManagerViewer *__weak mLayoutManagerViewer
Definition: Commander.h:235
BOOL containWidget
Definition: Commander.h:210
BOOL inPreviewGeneration
Definition: Commander.h:250
id< RWDDashboardDelegate > __weak delegate
Definition: Commander.h:164
int rowIndex
Definition: Commander.h:100
Definition: Commander.h:61
UIView * dockedHeaderView
Definition: Commander.h:254
BOOL noSync
Definition: Commander.h:74
bool mIsAutoManipulation
Definition: Commander.h:71
BOOL submitInOrder
Definition: Commander.h:275
bool enableZoomByPinchOrDoubleTap
Definition: Commander.h:193
NGBSelections mNGBSelections
Definition: Commander.h:217
Definition: Commander.h:59
BOOL forceUpdateSubviews
Definition: Commander.h:200
BOOL isAnyCommandRunning
Definition: Commander.h:220
Definition: Commander.h:53
Definition: Commander.h:116
NGBAllBehaviorType
Definition: Commander.h:119
Definition: Commander.h:110
BOOL enableGraphTooltips
Definition: Commander.h:177
LinkDrillParameters * linkdrillParam
Definition: Commander.h:184
Definition: Commander.h:45
Definition: Commander.h:44
BOOL isViewFitWidth
Definition: Commander.h:245
short layoutBarPosition
Definition: Commander.h:192
Definition: Commander.h:46
enum _ThemeType ThemeType
LayoutManagerController *__weak mLayoutManagerController
Definition: Commander.h:236
enum _EventHandlingResult EventHandlingResult
BOOL isInPortraitMode
Definition: Commander.h:176
Definition: DocumentThemeHelper.h:12
int mContextType
Definition: Commander.h:70
ViewerDataModel * layoutContainerViewerModel
Definition: Commander.h:207
Definition: MSIURLHelper.h:25
BOOL runAsReport
Definition: Commander.h:199
UIView * dockedFooterView
Definition: Commander.h:255
_VizLevel
Definition: Commander.h:113
DSSRWSectionIterator * topNGBAllIter
Definition: Commander.h:103
PopoverContext * popoverContext
Definition: Commander.h:186
std::map< std::string, std::vector< id< IViewer > __unsafe_unretained > > MapNodeKeyToMasterViewers
Definition: Commander.h:159
BOOL showFilterPanel
Definition: Commander.h:230
NSInteger mCurrentDocumentView
Definition: Commander.h:226
int rowCountPerPage
Definition: Commander.h:101
Definition: Commander.h:51
int mCommandType
Definition: Commander.h:68
DrillXMLCommandParameters * drillXMLCommandParams
Definition: Commander.h:180
enum _CarryOverSelectedMode CarryOverSelectedMode
Definition: Commander.h:161
Definition: Commander.h:756
BOOL duringNormalManipulation
Definition: Commander.h:263
ManipulationContext * manipulationContext
Definition: Commander.h:241