ConfigFiles Class

procedures used for loading config files (containing DBFunctions and general sheet content) and building the config menu

Inheritance Hierarchy

Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)

Syntax

public sealed class ConfigFiles

The ConfigFiles type exposes the following members.

Constructors

ClassSummary
private constructorConfigFiles()

Methods

NameSummary
private methodbuildFileSepMenuCtrl(String, ref XElement, String, String, String, Int32, Int32)
parses Substrings (filenames in special Folders) contained in nameParts (recursively) of passed xcl config file-path (fullPathName) and adds them to currentBar and sub-menus (recursively)
public methodcreateConfigTreeMenu()
creates the Config tree menu by reading the menu elements from the config store folder files/sub-folders
public methodloadConfig(String)
loads config from file given in theFileName
private methodreadAllFiles(String, ref XElement, String)
reads all files contained in rootPath and its sub-folders (recursively) and adds them to the DBConfig menu (sub)structure (recursively). For folders contained in specialConfigStoreFolders, apply further structuring by splitting names on camel-case or specialConfigStoreSeparator
private methodreplaceConfigSelectInFormula(String, String)
replace query given in theQueryFormula with template query in ConfigSelect
private methodreplaceQueryInFormula(String, String, String)
replace query given in dbFunctionFormula inside targetFormula containing DB Function "theFunction"
private methodstringParts(String, String)
returns string in space separated parts (tokenize String following CamelCase switch or when given specialConfigStoreSeparator occurs)

Fields

NameDescription
private field$STATIC$buildFileSepMenuCtrl$07128149E10128149EEE88$MenuDepth
private field$STATIC$buildFileSepMenuCtrl$07128149E10128149EEE88$MenuDepth$Init
private field$STATIC$readAllFiles$031E10128149E$MenuFolderDepth
private field$STATIC$readAllFiles$031E10128149E$MenuFolderDepth$Init
public fieldConfigMenuXML
tree menu stored here
public fieldConfigStoreFolder
the folder used to store predefined DB item definitions
private constantmaxMenuDepth
fixed max Depth for Ribbon
private constantmaxSizeRibbonMenu
fixed max size for menu XML
private fieldmenuID
used to create menu and button ids
private fieldspecialConfigFoldersTempColl
store found sub-menus in this collection
public fieldspecialConfigStoreFolders
Array of special ConfigStoreFolders for non default treatment of Name Separation (Camel-case) and max depth
public fieldspecialFolderMaxDepth
individual limitation of grouping of entries in special folders (set by _DBname_MaxDepth)
private fieldxnspace
for correct display of menu