13 #include <finalepdk.h>
15 #ifdef PDK_FRAMEWORK_TINYXML
20 #ifdef PDK_FRAMEWORK_DEBUG
21 #if OPERATING_SYSTEM == WINDOWS
28 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
32 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
34 #define _ENUMCODE(x) x
49 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
70 FCID_BEATCHARTELEMENT,
77 FCID_CENTERSMARTSHAPE,
80 FCID_CHORDSUFFIXELEMENT,
83 FCID_COMPOSITETIMESIGBOTTOMELEMENT,
84 FCID_COMPOSITETIMESIGTOPELEMENT,
86 FCID_CUSTOMSMARTLINEDEF,
93 FCID_EXECUTABLESHAPEDEF,
101 FCID_FRETBOARDSTYLEDEF,
102 FCID_FRETBOARDSTYLEDEFS,
103 FCID_FRETBOARDGROUPDEF,
104 FCID_FRETBOARDGROUPDEFS,
105 FCID_FRETINSTRUMENTDEF,
107 FCID_GRIDSGUIDESPREFS,
109 FCID_GROUPNAMEPOSITIONPREFS,
110 FCID_HUMANPLAYBACKPREFS,
111 FCID_INDEPENDENTCELLDETAIL,
113 FCID_INSTRUMENTPLAYBACKDATA,
118 FCID_MEASURENUMBERREGION,
119 FCID_METATOOLASSIGNMENT,
122 FCID_MULTIMEASUREREST,
123 FCID_MULTIMEASURERESTPREFS,
124 FCID_MULTISTAFFINSTRUMENT,
125 FCID_MULTISTAFFINSTRUMENTS,
126 FCID_MUSICCHARACTERPREFS,
127 FCID_MUSICSPACINGPREFS,
133 FCID_PERCUSSIONLAYOUTNOTE,
134 FCID_PERCUSSIONSTAFF,
137 FCID_PAGEFORMATPREFS,
141 FCID_PARTEXTRACTPREFS,
143 FCID_PERCUSSIONNOTEMOD,
144 FCID_PIANOBRACEPREFS,
148 FCID_SECONDARYBEAMBREAKMOD,
149 FCID_SECTIONSYLLABLE,
150 FCID_SEPARATEMEASURENUMBER,
151 FCID_SEPARATEPLACEMENT,
153 FCID_SHAPEEXPRESSIONDEF,
154 FCID_SLURCONTOURPREFS,
157 FCID_SMARTSHAPEENTRYMARK,
158 FCID_SMARTSHAPEMEASUREMARK,
159 FCID_SMARTSHAPEPREFS,
162 FCID_STAFFNAMEPOSITION,
163 FCID_STAFFNAMEPOSITIONPREFS,
164 FCID_STAFFSTYLEASSIGN,
167 FCID_STEMCONNECTIONTABLE,
173 FCID_SYLLABLEENTRYMOD,
175 FCID_TABLATURENOTEMOD,
178 FCID_TEXTEXPRESSIONDEF,
183 FCID_TIECONTOURPREFS,
184 FCID_TIEPLACEMENTPREFS,
200 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
201 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
204 int _Lua_GetClassID() {
return (
int)
GetClassID(); }
264 #ifdef PDK_FRAMEWORK_DEBUG
277 void DebugMsgHex(
const char* pszPrefixText,
int i);
284 void DebugMsgString(
const char* pszPrefixText,
const char * thestring);
299 static void DebugOutPtr(
const char* pszPrefixText,
void* ptr);
313 static void DebugOutFloat(
const char* pszPrefixText,
float f);
320 static void DebugOutTag(
const char* pszPrefixText, EXTAG extag);
327 static void DebugOutHex(
const char* pszPrefixText,
int i);
334 static void DebugOutBin(
const char* pszPrefixText,
int i);
341 static void DebugOutString(
const char* pszPrefixText,
const char * thestring);
355 static void DebugOutBool(
const char* pszPrefixText,
bool state);
362 static void DebugOutBlock(
const void * pBuffer,
int startoffset,
int size);
376 static void DebugOut(
const char* pszLine);
384 #ifdef PDK_FRAMEWORK_FORMAT
431 void Set16BitFlag(FLAG_16 *flag, FLAG_16 flagbits,
bool state);
439 void Set32BitFlag(FLAG_32 *flag, FLAG_32 flagbits,
bool state);
449 bool GetBitFlag(FLAG_32 flag, FLAG_32 flagbits)
const {
return (flag & flagbits) != 0; }
494 if (!pCompareObject)
return false;
500 #ifdef PDK_FRAMEWORK_TINYXML
511 void StoreXML_Integer(tinyxml2::XMLElement* pParentNode,
const char* pszElementName,
int value);
517 void StoreXML_Bool(tinyxml2::XMLElement* pParentNode,
const char* pszElementName,
bool value);
549 virtual void StoreToXML(tinyxml2::XMLElement* pParentNode) {}
558 bool ReadXML_String(tinyxml2::XMLElement* pParentNode,
const char* pszElementName,
FCString* pStringValue);
566 bool ReadXML_Integer(tinyxml2::XMLElement* pParentNode,
const char* pszElementName,
int* pValue);
574 bool ReadXML_Bool(tinyxml2::XMLElement* pParentNode,
const char* pszElementName,
bool *pValue);
616 virtual bool ReadFromXML(tinyxml2::XMLElement* pParentNode) {
return false; }
629 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
716 return (_loadedsize > 0);
749 virtual EXTAG
Tag() = 0;
772 virtual const char*
ClassName() {
return "__FCBaseData"; }
917 #ifdef PDK_FRAMEWORK_DEBUG
937 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
938 virtual void DebugDataCompare(
__FCBaseData *pCompareObject)
942 DebugOut(
"DebugDataCompare(): Compare object is nil.");
948 sprintf(szBuffer,
"DebugDataCompare(): Compare size differs. %d compared to %d byte(s)", (
int)
_GetLoadedSize(), (
int) pCompareObject->
_GetLoadedSize());
952 unsigned char* pDataBlock = (
unsigned char*)
GetDataBlock();
953 unsigned char* pCompareBlock = (
unsigned char*) pCompareObject->
GetDataBlock();
957 if (pDataBlock[i] != pCompareBlock[i])
961 sprintf(szBuffer,
"DebugDataCompare() DIFF at 0-based byte offset %d: 0x%02x - 0x%02x ", i, pDataBlock[i], pCompareBlock[i]);
967 DebugOut(
"DebugDataCompare(): Data blocks are identical");
994 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
1011 bool Load(CMPER cmper, twobyte inci);
1026 #if FXT_VERSION >= FINALEVERSION_25
1027 EnigmaFontName _nameUTF16;
1039 const static FCString DefaultFontName;
1080 #ifdef PDK_FRAMEWORK_PREFS
1115 twobyte
GetSize()
const {
return (twobyte) _size; }
1128 #if FXT_VERSION < FINALEVERSION_25
1129 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
1131 void GetNameParam(
const EFONTNAME* pName) { strcpy((
char*)pName, (
const char*)_name); }
1166 #ifdef PDK_FRAMEWORK_ENIGMASTRINGS
1195 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
1231 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
1233 FCString* CreateEnigmaStyleString_GC();
1263 #if FXT_VERSION < FINALEVERSION_25
1264 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
1266 void SetName(
const EFONTNAME* pName) { strcpy((
char*)_name, (
const char*)pName); }
1276 void SetName(
const char* pszName);
1306 void SetSize(twobyte fontsize) { _size = (twobyte) fontsize; }
1378 bool IsName(
const char* pszTestName);
1446 #ifdef PDK_FRAMEWORK_DEBUG
1475 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1478 eUniChar16* _pStorage;
1481 mutable char* _pTempCBuffer;
1482 mutable char* _pTempCUTF8Buffer;
1484 #if OPERATING_SYSTEM == MAC_OS
1485 void* _nsstringobject;
1489 void _DeleteStorage();
1492 void _ExpandStorageIfNecessary(
int minimumlength);
1495 bool _SetFinalePath(FinPath pathconstant);
1500 #ifdef PDK_FRAMEWORK_TINYXML
1507 virtual void StoreToXML(tinyxml2::XMLElement* pParentNode) {
1515 virtual bool ReadFromXML(tinyxml2::XMLElement* pParentNode)
1535 _pTempCBuffer = NULL;
1536 _pTempCUTF8Buffer = NULL;
1537 #if OPERATING_SYSTEM == MAC_OS
1539 _nsstringobject = 0;
1550 _pTempCBuffer = NULL;
1551 _pTempCUTF8Buffer = NULL;
1552 #if OPERATING_SYSTEM == MAC_OS
1554 _nsstringobject = 0;
1565 _pTempCBuffer = NULL;
1566 _pTempCUTF8Buffer = NULL;
1567 #ifdef PDK_FRAMEWORK_COCOA
1568 _nsstringobject = 0;
1579 static const eUniChar16 emptyUniCharStr[];
1600 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
1608 void AppendLuaString(
const char* pOtherString);
1638 #if OPERATING_SYSTEM == WINDOWS
1671 if (splitpointindex < 0)
return false;
1672 if (splitpointindex >=
GetLength())
return false;
1673 if ((pFirstString) && (pFirstString == pSecondString))
1678 if (pFirstString && pSecondString)
1681 if (pFirstString ==
this)
return false;
1682 if (pSecondString ==
this)
return false;
1689 int splitoffset = 0;
1690 if (includesplitposchar) splitoffset = 1;
1691 pFirstString->
TruncateAt(splitpointindex + splitoffset);
1717 #if OPERATING_SYSTEM == WINDOWS
1722 return SplitAt(pos, pPathPart, pFilePart,
true);
1796 _SetFinalePath(FinPath_PercNoteTypesFile);
1800 #if FXT_VERSION >= FINALEVERSION_2012
1855 if (!pString2)
return 1;
1953 #if OPERATING_SYSTEM == MAC_OS
1961 void* _GetPathCFURLRef();
1964 #ifdef PDK_FRAMEWORK_ENIGMASTRINGS
1990 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2010 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2012 FCStrings* CreateEnigmaStrings_GC(
bool include_non_commands);
2026 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2046 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2048 FCStrings* CreateParsedStrings_GC(
const char* pszSeparators);
2063 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2104 if (currentchar ==
'.')
2116 if (currentchar ==
'/')
break;
2117 if (currentchar ==
'\\')
break;
2120 if (count > 7)
break;
2137 twobyte firstchar = *pszSubStr;
2138 if (!firstchar)
return -1;
2142 if (character == firstchar)
2145 bool identical =
true;
2146 while (pszSubStr[j])
2148 twobyte testchar = pszSubStr[j];
2156 if (identical)
return i;
2174 twobyte firstchar = *pszSubStr;
2175 if (!firstchar)
return -1;
2176 int substrlength = (int) strlen(pszSubStr);
2178 for (
int i = (
int) (
GetLength() - substrlength); i >= 0; i--)
2181 if (character == firstchar)
2184 bool identical =
true;
2185 while (pszSubStr[j])
2187 twobyte testchar = pszSubStr[j];
2195 if (identical)
return i;
2202 #ifdef PDK_FRAMEWORK_FORMAT
2245 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2254 const char* GetLuaString()
const;
2272 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2274 UTRANSID _StartFinaleEdit();
2277 eUniChar16* _GetUnicodeBuffer()
const;
2280 #if OPERATING_SYSTEM == MAC_OS
2354 const char*
GetEOL()
const;
2364 void Insert(
const char* pszString,
int insertindex = 0);
2439 bool IsCharacter(
int index, eUniChar16 character);
2472 #ifdef PDK_FRAMEWORK_ENIGMASTRINGS
2559 #if OPERATING_SYSTEM == WINDOWS
2560 bool LoadResource(
int resourceID, HINSTANCE dllinstance = 0);
2563 const char* pszResourceFileName = NULL,
2564 const char* pszTableName = NULL);
2583 #ifdef PDK_FRAMEWORK_ENIGMASTRINGS
2619 void SetCString(
const char* pszBuffer,
int maxchars = -1);
2621 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2622 #if OPERATING_SYSTEM == WINDOWS
2624 void _SetWCHARString(WCHAR* pCharBuffer);
2628 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
2636 void SetLuaString(
const char* pszBuffer) {
SetUTF8String(pszBuffer); }
2676 void SetHex(
int number,
int bitwidth);
2683 #ifdef PDK_FRAMEWORK_PREFS
2741 time_t now = time(0);
2744 tstruct = *localtime(&now);
2745 strftime(buf,
sizeof(buf),
"%X", &tstruct);
2759 bool Replace(
const char* pszSource,
const char* pszReplacement);
2765 bool EndsWith(
const char* pszString);
2788 if (len > maxsize - 1) len = maxsize - 1;
2809 #ifdef PDK_FRAMEWORK_ENIGMASTRINGS
2820 #ifdef PDK_FRAMEWORK_ENIGMASTRINGS
2867 if (newlength >=
GetLength())
return false;
2868 _length = newlength;
2869 _pStorage[_length] = 0;
2883 if (count < 1)
return false;
2894 if (_length <= maxlength)
return;
2895 if (prefixchars + 3 > maxlength)
return;
2896 if (prefixchars < -1)
return;
2898 for (
int i = 0; i < prefixchars; i++)
2903 int startindex = _length - maxlength + prefixchars + 3;
2904 for (
int i = startindex; i < _length; i++)
2911 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2916 static EVERSION _GetFinPathVersion();
2924 bool MakeSpecFromFilePath(
void *pFinPathSpec, EVERSION convertversion);
2932 bool MakeFullFilePath(
const void* pFinPathSpec, EVERSION convertversion);
2936 #ifdef PDK_FRAMEWORK_DEBUG
2982 #ifdef PDK_FRAMEWORK_DEBUG
2993 #ifdef PDK_FRAMEWORK_ENTRIES
3011 EMeasureMetrics2009a _metrics;
3013 static bool _metricsshouldupdate;
3019 memset(&_metrics, 0,
sizeof(_metrics));
3040 #ifdef PDK_FRAMEWORK_ENTRIES
3056 return _metrics.measMetrics.horzPercent;
3071 return _metrics.measMetrics.fipTopStaffLine;
3086 return _metrics.measMetrics.fipBottom;
3098 return _metrics.measMetrics.fipTop;
3107 return _metrics.measMetrics.lperc;
3116 return _metrics.measMetrics.percent;
3126 return _metrics.attachCount;
3136 return _metrics.measMetrics.meposadj;
3147 return _metrics.leftEdge;
3156 return _metrics.measMetrics.mewidth;
3165 return _metrics.measMetrics.scalewidth;
3174 return _metrics.measMetrics.frontRepWidth;
3183 return _metrics.measMetrics.backRepWidth;
3202 if (_metrics.attachCount == 0)
return false;
3203 for (
int i = 0; i < _metrics.attachCount; i++)
3205 EAttachment* pTest = &_metrics.pAttach[i];
3206 if (pTest->tag != pBaseDataObject->
Tag())
continue;
3207 if (pTest->id != the_id)
continue;
3210 if (!
GetBitFlag(pTest->flags, EATTACH_STOP_SHAPE))
continue;
3212 memcpy(pAttachment, pTest,
sizeof(EAttachment));
3228 #ifdef PDK_FRAMEWORK_DEBUG
3238 #ifdef PDK_FRAMEWORK_ENTRIES
3248 EEntryMetrics2009a _metrics2009a;
3249 #if FXT_VERSION >= FINALEVERSION_2014
3250 EEntryMetrics2014 _metrics2014;
3253 static bool _updatemetrics;
3256 EVERSION _VersionToUse()
const;
3261 EEntryMetrics2009a* _GetBasicMetricsPtr()
const
3263 #if FXT_VERSION >= FINALEVERSION_2014
3264 if (_VersionToUse() == FINALEVERSION_2014)
3265 return (EEntryMetrics2009a*) &_metrics2014;
3268 return (EEntryMetrics2009a*) &_metrics2009a;
3272 virtual const char*
ClassName() {
return "FCEntryMetrics"; }
3318 return _GetBasicMetricsPtr()->attachCount;
3337 if (_GetBasicMetricsPtr()->attachCount == 0)
return false;
3338 for (
int i = 0; i < _GetBasicMetricsPtr()->attachCount; i++)
3340 EAttachment* pTest = &_GetBasicMetricsPtr()->pAttach[i];
3341 if (pTest->tag != pBaseDataObject->
Tag())
continue;
3342 if (pTest->id != the_id)
continue;
3345 if (!
GetBitFlag(pTest->flags, EATTACH_STOP_SHAPE))
continue;
3347 memcpy(pAttachment, pTest,
sizeof(EAttachment));
3360 if (_GetBasicMetricsPtr()->headRect.top > _GetBasicMetricsPtr()->stemRect.top)
return _GetBasicMetricsPtr()->headRect.top;
3361 return _GetBasicMetricsPtr()->stemRect.top;
3370 if (_GetBasicMetricsPtr()->headRect.bottom < _GetBasicMetricsPtr()->stemRect.bottom)
return _GetBasicMetricsPtr()->headRect.bottom;
3371 return _GetBasicMetricsPtr()->stemRect.bottom;
3381 return _GetBasicMetricsPtr()->stemRect.bottom;
3391 return _GetBasicMetricsPtr()->stemRect.top;
3401 return _GetBasicMetricsPtr()->stemRect.left;
3411 return _GetBasicMetricsPtr()->stemRect.right;
3421 return _GetBasicMetricsPtr()->lastDot;
3432 return _GetBasicMetricsPtr()->firstAcci;
3438 return _GetBasicMetricsPtr()->entryFlags;
3444 #if FXT_VERSION >= FINALEVERSION_2014
3456 return _GetBasicMetricsPtr()->numNotes;
3486 if (!_loaded)
return NULL;
3487 return &_GetBasicMetricsPtr()->stemRect;
3496 if (!_loaded)
return NULL;
3497 return &_GetBasicMetricsPtr()->headRect;
3510 #ifdef PDK_FRAMEWORK_DEBUG
3533 #if FXT_VERSION >= FINALEVERSION_25
3534 ETextMetrics _textMetrics;
3611 #if FXT_VERSION >= FINALEVERSION_25
3612 return _textMetrics.width;
3626 #if FXT_VERSION >= FINALEVERSION_25
3627 return _textMetrics.left;
3641 #if FXT_VERSION >= FINALEVERSION_25
3642 return _textMetrics.right;
3656 #if FXT_VERSION >= FINALEVERSION_25
3657 return _textMetrics.top;
3671 #if FXT_VERSION >= FINALEVERSION_25
3672 return _textMetrics.bottom;
3687 #if FXT_VERSION >= FINALEVERSION_25
3688 return _textMetrics.eWidth;
3702 #if FXT_VERSION >= FINALEVERSION_25
3703 return _textMetrics.eLeft;
3717 #if FXT_VERSION >= FINALEVERSION_25
3718 return _textMetrics.eRight;
3732 #if FXT_VERSION >= FINALEVERSION_25
3733 return _textMetrics.eTop;
3747 #if FXT_VERSION >= FINALEVERSION_25
3748 return _textMetrics.eBottom;
3762 #if FXT_VERSION >= FINALEVERSION_25
3777 #if FXT_VERSION >= FINALEVERSION_25
3792 #if FXT_VERSION >= FINALEVERSION_25
3807 #if FXT_VERSION >= FINALEVERSION_25
3816 #ifdef PDK_FRAMEWORK_DEBUG
3857 _intvalue = (int) value;
3858 _floatvalue = value;
3868 _floatvalue = (float) value;
3875 _intvalue = (int) value;
3876 _floatvalue = value;
3890 #ifdef PDK_FRAMEWORK_DEBUG
3925 void SetX(
float value) { _x = value; }
3931 void SetY(
float value) { _y = value; }
3949 void MoveX(
float value) { _x += value; }
3955 void MoveY(
float value) { _y += value; }
3971 FinPrintSettings _settings;
3999 _settings.copies = 1;
4000 _settings.startPage = 1;
4001 _settings.endPage = 1000;
4016 bool GetColor()
const {
return _settings.bPrintColor != 0; }
4058 bool GetTile()
const {
return _settings.tile != 0; }
4084 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
4097 return _settings.pageRangeString;
4110 if (copies < 0)
return;
4111 if (copies > 100)
return;
4112 _settings.copies = copies;
4119 void SetColor(
bool state) { _settings.bPrintColor = state; }
4127 if (startpage < 1)
return;
4128 _settings.startPage = startpage;
4137 if (endpage < 1)
return;
4138 _settings.endPage = endpage;
4169 void SetTile(
bool state) { _settings.tile = state; }
4184 _settings.nUp = count;
4197 if (value < 0)
return;
4198 _settings.userOverlap = value;
4214 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
4227 _settings.oddEven = value;
4240 if (!pszString)
return;
4241 strncpy(_settings.pageRangeString, pszString,
sizeof(_settings.pageRangeString));
4242 _settings.pageRangeString[
sizeof(_settings.pageRangeString) - 1] = 0;
4280 ufourbyte _glyphnumber;
4281 float _height, _width, _left, _bottom;
4282 float _maxascent, _maxdescent;
4288 _height = _width = 0;
4289 _left = _bottom = 0;
4290 _maxascent = _maxdescent = 0;
4395 float GetTop()
const {
return _bottom+_height; }
4417 #ifdef PDK_FRAMEWORK_DEBUG
4466 _pUserFontInfo = pFontInfo;
4507 if (!pString)
return;
void SetStartPage(twobyte startpage)
Sets the 1-based start page.
Definition: ff_base.h:4125
const char * GetCString() const
Returns a C-string version of the string.
Definition: finaleframework.cpp:1159
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:918
virtual bool DeleteData()
Deletes the associated data from Finale's database. Be careful when deleting multiple objects...
Definition: finaleframework.cpp:808
void _TagDocumentID()
For internal use only.
Definition: finaleframework.cpp:725
static void DebugOutString(const char *pszPrefixText, const char *thestring)
Static method that outputs a line for debugging purposes (C string version). The text appears with th...
Definition: finaleframework.cpp:375
int GetInteger(int index=0)
Converts the decimal string contents to an integer value.
Definition: finaleframework.cpp:1792
Class for document-independent font information.
Definition: ff_base.h:1024
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:772
int GetBottomPosition() const
Returns the lowest position for the noteheads or stem.
Definition: ff_base.h:3368
bool MakeEnigmaString(FCString *pString, FCString *pFontTagString=NULL)
Creates an Enigma string (for use in raw strings) based on the current font information.
Definition: finaleframework.cpp:3144
void CopyFrom(FCFontInfo *pInfo)
Copies data from another font info object.
Definition: finaleframework.cpp:3115
virtual bool Reload()
Refreshes the data for the object, to synch the data with Finale's current data.
Definition: finaleframework.cpp:836
float GetAdvanceWidthEVPUs() const
Returns the advance width of the string (the pen position before and after printing the string)...
Definition: ff_base.h:3686
int GetInt() const
Returns the integer value version of the number.
Definition: ff_base.h:3883
bool VerifyConnectedDocID()
Checks that the stored document ID for the data object matches the current document's ID...
Definition: finaleframework.cpp:730
virtual void DebugDataDump()
Outputs a memory dump of the data block in the object for debugging purposes.
Definition: finaleframework.cpp:555
void _SetBottom(float b)
For internal use only.
Definition: ff_base.h:4326
void GetNameString(FCString *pString) const
Gets the font name and puts it in a FCString object.
Definition: finaleframework.cpp:3274
void TruncateWidth(int maxlength, int prefixchars)
Truncates the string by removing the middle part and inserting '...' instead.
Definition: ff_base.h:2892
bool ContainsStringFrom(FCString *pSubString, int startindex)
Returns true if the substring is found within the string from a certain position. ...
Definition: finaleframework.cpp:2712
virtual void StoreToXML(tinyxml2::XMLElement *pParentNode)
Virtual method that is used to store an object's data.
Definition: ff_base.h:549
void DebugMsg(const char *pszMsg)
Creates a simple Message Box for debug purposes with just one text string.
Definition: finaleframework.cpp:249
void SetUserData(void *pData)
Sets the user data attached to the instance of an object.
Definition: ff_base.h:456
Simple class for the representation of x, y coordinates.
Definition: ff_base.h:3906
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:3272
void SetTemplateFolderPath()
Sets the path string to Finale's template folder.
Definition: ff_base.h:1769
float GetLeftPoints() const
Returns the left side of the bounding box, in fractional Points measurements.
Definition: ff_base.h:3625
void FormatCharacterNumber(eUniChar16 character)
Formats a 16-bit character (symbol) number to a string for presentation purposes. ...
Definition: finaleframework.cpp:1171
FCString * CreateEnigmaStyleString()
Creates a FCString object and creates the Enigma font style info string, based on only the current fo...
Definition: finaleframework.cpp:3211
bool GetFitWithinMargins() const
Returns whether to use the printer margins when fitting a page to print.
Definition: ff_base.h:4076
void AppendEOL()
Appends a system-specific end-of-line string to the to the FCString object.
Definition: ff_base.h:1627
virtual int DataSizeSave()
Returns the data size for the data structure that should be saved or created.
Definition: finaleframework.cpp:813
void StoreXML_StringAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, FCString *pStringValue)
Helper function to store FCString objects in the XML file, as an attribute to a node.
Definition: finaleframework.cpp:618
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:2937
An object to handle glyph information returned by the system.
Definition: ff_base.h:4278
int FindLast(const char *pszSubStr)
Returns the 0-based index for the first occurence of the substring.
Definition: ff_base.h:2172
bool TruncateEnd(int count)
Truncates the end of the string by a specific number of characters.
Definition: ff_base.h:2881
void SetTileOverlap(Evpu32 value)
Sets the user overlap for tiled pages.
Definition: ff_base.h:4195
EXTAG GetCustomTag()
Returns the custom Enigma tag, if any.
Definition: ff_base.h:815
bool StartsWith(const char *pszString)
Returns true if the string starts with the parameter string.
Definition: finaleframework.cpp:2613
bool GetDrawCropMarks() const
Returns if crop marks should be printed.
Definition: ff_base.h:4040
virtual bool ReadFromXML(tinyxml2::XMLElement *pParentNode)
Virtual method that is used to read object data.
Definition: ff_base.h:616
virtual bool LoadFirst()=0
Loads the very first element in the database, if any.
void _SetHeight(float h)
For internal use only.
Definition: ff_base.h:4308
void _SetMaxDescent(float b)
For internal use only.
Definition: ff_base.h:4338
float GetFloat() const
Returns the integer value version of the number.
Definition: ff_base.h:3887
static void DebugOut(const char *pszLine)
Static method to output a line of text for debugging purposes.
Definition: finaleframework.cpp:465
void * _datablock
Pointer to the object's data block, the meaning is implementation-specific for each derived subclass...
Definition: ff_base.h:640
bool ReadXML_Bool(tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool *pValue)
Helper method to read boolean objects from the XML file.
Definition: finaleframework.cpp:658
static void MarkMetricsForRebuild()
Static method that sets the refresh flag, so the next Load call will rebuild the metrics data...
Definition: ff_base.h:3290
static void DebugOutTag(const char *pszPrefixText, EXTAG extag)
Static method that outputs a line for debugging purposes. The text appears with the EXTAG (in text) a...
Definition: finaleframework.cpp:289
void _CloneFrom(__FCBaseData *pSource)
For internal use only. Copies object data (except data block) from another object.
Definition: finaleframework.cpp:743
void AppendString(FCString *pOtherString)
Appends another string object to the string.
Definition: finaleframework.cpp:1625
FCSettingsPair(FCString *pLeftString, FCString *pRightString)
The constructor.
Definition: ff_base.h:2966
void TrimWhitespace()
Trims whitespace at both ends of the string.
Definition: finaleframework.cpp:1369
Definition: ff_base.h:3985
bool IsCharacter(int index, eUniChar16 character)
Returns true if the character at the index matches the supplied character.
Definition: finaleframework.cpp:1576
void SetUserData2(void *pData)
Sets the additional user data attached to the instance of an object.
Definition: ff_base.h:463
Class for a category definition.
Definition: ff_other.h:12571
bool _heapdatablock
Variable that tells if _datablock is dynamically created on the heap (and should be deleted at object...
Definition: ff_base.h:644
void DebugMsgString(const char *pszPrefixText, const char *thestring)
Creates a simple Message Box for debug purposes. The text appears with the extra string appearing aft...
Definition: finaleframework.cpp:238
float GetRightEVPUs() const
Returns the right side of the bounding box, in fractional EVPUs.
Definition: ff_base.h:3716
FCString(const char *pszCString)
Constructor version that takes a C string as argument.
Definition: ff_base.h:1545
void SetCString(const char *pszBuffer, int maxchars=-1)
Sets the string, using a C-string version of the string.
Definition: finaleframework.cpp:1030
void AppendInteger(int value)
Appends an integer value (decimal) to the string.
Definition: finaleframework.cpp:1659
__FCBaseData * CreateClone()
Creates an identical copy of an object.
Definition: finaleframework.cpp:772
FCEntryMetrics()
The constructor.
Definition: finaleframework.cpp:3454
ufourbyte GetGlyphNumber()
Returns the glyph number for the loaded data.
Definition: ff_base.h:4348
bool ReadXML_Integer(tinyxml2::XMLElement *pParentNode, const char *pszElementName, int *pValue)
Helper method to read integer objects from the XML file.
Definition: finaleframework.cpp:650
const char * GetEOL() const
Returns the platform-specific end-of-line character(s) as a C-string.
Definition: finaleframework.cpp:1529
Definition: ff_base.h:218
bool ContainsEnigmaTextInsert(bool only_file_info_inserts=true)
Returns true if the text block contains a text insert.
Definition: finaleframework.cpp:2756
PRINTODDEVENMODES
Constants used for printing odd/even pages. Used with the GetOddEvenMode() and SetOddEvenMode() metho...
Definition: ff_base.h:3979
float GetY() const
Returns the y position.
Definition: ff_base.h:3943
static void DebugOutBin(const char *pszPrefixText, int i)
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in b...
Definition: finaleframework.cpp:350
void SetTile(bool state)
Sets if the document should be tited if bigger than specified page.
Definition: ff_base.h:4169
FCNumbers * CreateRawDataDump()
Creates a byte collection with the raw loaded data block for the object (if the object type supports ...
Definition: finaleframework.cpp:883
bool Load(FCNoteEntry *pEntry)
Loads the entry metrics data.
Definition: finaleframework.cpp:3493
void SetHex(int number, int bitwidth)
Sets the string to a lower-case hexadecimal number.
Definition: finaleframework.cpp:1843
const char * GetName() const
Gets the font name (const C-string version).
Definition: finaleframework.cpp:3289
bool IsDigit(int index)
Returns true if the character at the specified 0-based index position is a digit (0 through 9)...
Definition: finaleframework.cpp:1381
bool GetColor() const
Returns true if color printing should be used.
Definition: ff_base.h:4016
The class for an articulation definition. On Finale 2012 and above, this class supports the Unicode c...
Definition: ff_other.h:11535
bool IsEnigmaFont()
Returns true if the string is an Enigma font command.
Definition: finaleframework.cpp:1426
void SetUseSizes(bool state)
Sets if font sizes should be selectable in the dialog box.
Definition: ff_base.h:4519
void SetDrawRegistrationMarks(twobyte state)
Sets if registration marks should be printed.
Definition: ff_base.h:4157
bool GetUseStyles() const
Returns if font styles should be selectable in the dialog box.
Definition: ff_base.h:4487
void Clear()
Creates an empty string.
Definition: ff_base.h:1831
ENoteMetrics2014 * FindNoteMetrics2014(twobyte noteID)
Returns the Finale 2014-specific metrics for a note.
Definition: finaleframework.cpp:3560
bool IsEnigmaFileInfoCopyright()
Returns true if the string is an "Copyright" Enigma command.
Definition: finaleframework.cpp:1483
FCFontDialog(FCUI *pUI, FCFontInfo *pFontInfo)
The constructor.
Definition: ff_base.h:4463
static void DebugOutFloat(const char *pszPrefixText, float f)
Static method that outputs a line for debugging purposes. The text appears with the extra float value...
Definition: finaleframework.cpp:282
int GetHex()
Converts the unsigned hexadecimal string to an integer value. The string can only contain valid hexad...
Definition: finaleframework.cpp:1798
bool GetDrawRegistrationMarks() const
Returns if registration marks should be printed.
Definition: ff_base.h:4046
Int100 GetSystemScaling() const
Returns the accumulated system scaling, in 100th of a percent.
Definition: ff_base.h:3114
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:3845
void Set16BitFlag(FLAG_16 *flag, FLAG_16 flagbits, bool state)
Sets a 16 bit flag in the data block.
Definition: finaleframework.cpp:573
void StoreXML_IntegerAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, int value)
Helper function to store integer objects in the XML file, as an attribute to a node.
Definition: finaleframework.cpp:623
virtual void DebugDataByteArrayDump()
Outputs a memory dump of the data block in the object for debugging purposes, as a C++ byte array...
Definition: ff_base.h:931
void SetColor(bool state)
Sets if color printing should be used.
Definition: ff_base.h:4119
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:244
__FCBase()
The constructor.
Definition: ff_base.h:247
virtual void DebugDataByteArrayDump()
Outputs a memory dump of the data block in the object for debugging purposes, as a C++ byte array...
Definition: finaleframework.cpp:562
void StoreXML_FloatAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, float value)
Helper function to store floating point objects in the XML file, as an attribute to a node...
Definition: finaleframework.cpp:633
void SetUnderline(bool state)
Sets the underline attribute of the font info.
Definition: ff_base.h:1362
int GetStemRightPosition() const
Returns the right-side position for the stem.
Definition: ff_base.h:3409
void _SetMaxAscent(float b)
For internal use only.
Definition: ff_base.h:4332
PDKFRAMEWORK_CLASSID
Constants for the GetClassID method.
Definition: ff_base.h:60
float GetBottomEVPUs() const
Returns the bottom side of the bounding box, in fractional EVPUs.
Definition: ff_base.h:3746
bool LoadArticulation(FCArticulationDef *pArticDef, bool flipped, float percent)
Loads the metrics for a specific articulation glyph.
Definition: finaleframework.cpp:3639
int GetLength() const
Returns the length of the string.
Definition: ff_base.h:2344
bool StartsWithString(FCString *pString)
Returns true if the string starts with the parameter string.
Definition: finaleframework.cpp:2620
An inci subrecord class for multi-inci data.
Definition: ff_base.h:1005
void InsertString(FCString *pString, int insertindex=0)
Inserts a string object to the string at a specified index position.
Definition: finaleframework.cpp:1549
virtual void CloneMemoryFrom(__FCBaseData *pSource)
Definition: finaleframework.cpp:753
void SetFontID(EFONTID fontID)
Sets the internal font ID.
Definition: finaleframework.cpp:3314
void MakeDefaultMusicFont()
Changes the document's default music font.
Definition: finaleframework.cpp:3386
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_base.h:198
Definition: ff_base.h:233
void ToLowerCase()
Transforms the string to lower case.
Definition: finaleframework.cpp:2630
int GetStemLeftPosition() const
Returns the left-side position for the stem.
Definition: ff_base.h:3399
void SetInt(int value)
Sets the number as an integer.
Definition: ff_base.h:3865
void * GetUserData() const
Gets the user data attached to the instance of an object.
Definition: ff_base.h:470
static void DebugOutDigit(const char *pszPrefixText, int i)
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in d...
Definition: finaleframework.cpp:274
bool IsCharacters(int index, const char *pChars)
Returns true if the character at the index matches any of the supplied character. ...
Definition: finaleframework.cpp:1582
Class for an opened Finale document. An opened Finale document has a 1-based ID and can be displayed ...
Definition: ff_documents.h:26
void SetBold(bool state)
Sets the boldface attribute of the font info.
Definition: ff_base.h:1338
virtual ~__FCBase()
Virtual destructor, so all inherited classes get the virtual destructor.
Definition: ff_base.h:260
void SetLayoutCount(twobyte count)
Sets the n-Up layout value. Can be 0, 1, 2, 4.
Definition: ff_base.h:4177
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:3814
Class to display the font selection dialog box to the user.
Definition: ff_base.h:4445
const EDataID * _GetDataID()
Intended ONLY for the _CloneFrom implementation.
Definition: ff_base.h:793
bool IsEnigmaFileInfoTitle()
Returns true if the string is an "Title" Enigma command.
Definition: finaleframework.cpp:1448
void _SetCFURLRefPath(void *cfurl)
Definition: finaleframework.cpp:1685
float GetHeight() const
Returns the height of the glyph, in fractional points.
Definition: ff_base.h:4360
float GetX() const
Returns the x position.
Definition: ff_base.h:3937
void ParseEnigmaFont(const EEnigmaFont *pEnigmaFont)
Transfers the info from a Finale-internal font structure to the FCFontInfo object.
Definition: ff_base.h:1250
bool IsEqualCString(const char *pszString)
Returns true if the string is identical with the parameter. (C-style string version.)
Definition: finaleframework.cpp:1558
float GetWidth()
Returns the width of the glyph, in fractional points.
Definition: ff_base.h:4354
const void * GetDataBlock()
Intended ONLY for the _CloneFrom implementation.
Definition: ff_base.h:805
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:1008
bool GetHidden() const
Returns true if the font style is hidden (don't print).
Definition: ff_base.h:1431
Simple collection class for FCNumber class objects.
Definition: ff_basecollection.h:329
float GetSizeFloat() const
Returns the font size as a floating point (with decimal digits).
Definition: ff_base.h:1123
FCNumber(float value)
The constructor.
Definition: ff_base.h:3854
twobyte GetLayoutCount() const
Returns the n-Up layout value. Can be 0, 1, 2, 4.
Definition: ff_base.h:4064
void SetSize(twobyte fontsize)
Sets the font size as an integer value.
Definition: ff_base.h:1306
eUniChar16 GetCharacterAt(int index)
Returns the character at the index position.
Definition: finaleframework.cpp:1771
void Insert(const char *pszString, int insertindex=0)
Inserts a C string to the string at a specified index position.
Definition: finaleframework.cpp:1540
void SetTempFolderPath()
Sets the path string to Finale's temp folder (for temporary files).
Definition: ff_base.h:1775
void SetUnicodeString(const eUniChar16 *pChar, int maxchars=-1)
Sets the string by using a 16-bit Unicode buffer as input parameter.
Definition: finaleframework.cpp:1087
void SetName(const char *pszName)
Sets the font name.
Definition: finaleframework.cpp:3307
void Set32BitFlag(FLAG_32 *flag, FLAG_32 flagbits, bool state)
Sets a 32 bit flag in the data block.
Definition: finaleframework.cpp:581
twobyte GetCopyCount() const
Returns the number of copies to print.
Definition: ff_base.h:4010
int GetStemBottomPosition() const
Returns the bottom position for the stem.
Definition: ff_base.h:3379
bool ContainsCStringFrom(const char *pszSubString, int startindex)
Returns true if the substring is found from a certain position within the string. C-string version...
Definition: ff_base.h:1897
void DebugMsgHex(const char *pszPrefixText, int i)
Creates a simple Message Box for debug purposes. The text appears with the extra digit (as a hexadeci...
Definition: finaleframework.cpp:227
void SetCustomTag(EXTAG tag)
Sets the custom Enigma tag, for classes that support multiple Enigma tags.
Definition: ff_base.h:827
bool GetDrawFileName() const
Returns if the file name should be printed.
Definition: ff_base.h:4052
static fourbyte GetSystemTextEncoding()
Returns the internal Engima encoding number for the running Finale version. This value is appended to...
Definition: finaleframework.cpp:3110
void SetMusicFolderPath()
Sets the path string to Finale's music folder.
Definition: ff_base.h:1745
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_base.h:1042
float GetLeftEVPUs() const
Returns the left side of the bounding box, in fractional EVPUs.
Definition: ff_base.h:3701
FCPrintSettings()
The constructor.
Definition: ff_base.h:3997
Definition: ff_base.h:171
virtual void DebugDataDump()
Outputs a memory dump of the data block in the object for debugging purposes.
Definition: ff_base.h:925
virtual bool IsIdentical(__FCBase *pCompareObject)
Returns true if the data in the passed object is considered to be identical to the current object...
Definition: ff_base.h:492
void SetValueString(FCString *pString)
Sets the "value" string.
Definition: ff_base.h:2981
static void MarkMetricsForRebuild()
Static method that sets the flag that the metrics should be rebuilt on the next load.
Definition: ff_base.h:3030
bool ReadXML_IntegerAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, int *pValue)
Helper method to read integer objects from the XML file, as an attribute to a node.
Definition: finaleframework.cpp:674
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:1522
bool IsWhitespace(int index)
Returns true if the character position contains a whitespace.
Definition: finaleframework.cpp:1594
Evpu32 GetTopStafflinePos() const
Returns the top line position of the staff. The coordinate is referenced from the bottom of the page...
Definition: ff_base.h:3069
int DebugOutFormat(const char *fmt,...)
Outputs debug text using C style "printf" syntax.
Definition: finaleframework.cpp:532
bool IsEnigmaCommand()
Returns true if the string is an Enigma command.
Definition: ff_base.h:2477
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_base.h:1523
void SetBackupFolderPath()
Sets the path string to Finale's backup folder.
Definition: ff_base.h:1757
bool LoadResource(int resourceID, HINSTANCE dllinstance=0)
Loads the resource string into the string object.
Definition: finaleframework.cpp:2775
bool GetBitFlag(FLAG_32 flag, FLAG_32 flagbits) const
Gets a state from flag bits. Returns true if any bit in the mask is set.
Definition: ff_base.h:449
void SetY(float value)
Sets the y position.
Definition: ff_base.h:3931
Class for storing a "key"+"value" pair of values.
Definition: ff_base.h:2955
twobyte GetNameByID()
Gets the internal Enigma font ID. This value is document-specific.
Definition: finaleframework.cpp:3297
int CalcLeftmostNotePosition()
Calculates the left-most note start position, in page coordinates (from the left border of the page)...
Definition: finaleframework.cpp:3528
bool IsNameString(FCString *pTestName)
Checks if the font name is a perfect match to the test string.
Definition: finaleframework.cpp:3358
void SetString(FCString *pString)
Copies a string.
Definition: finaleframework.cpp:2132
void SetStrikeOut(bool state)
Sets the strikeout state of the font info.
Definition: ff_base.h:1330
int GetStemTopPosition() const
Returns the bottom position for the stem.
Definition: ff_base.h:3389
const char * GetPageRangeString() const
Returns the page range string as a C-style string.
Definition: ff_base.h:4095
bool IsIdenticalTo(FCFontInfo *pCompareWith)
Returns true if all font information is identical to the compared object.
Definition: finaleframework.cpp:3366
Definition: ff_base.h:221
bool GetUnderline() const
Returns true if the font style is underline.
Definition: ff_base.h:1412
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:1041
virtual void * Allocate()=0
void AppendFloat(float value)
Appends an floating-point value to the string.
Definition: finaleframework.cpp:1666
float GetMaxAscent()
Returns the maximum ascender for the font, relative to the baseline.
Definition: ff_base.h:4405
bool SplitToPathAndFile(FCString *pPathPart, FCString *pFilePart)
Splits a fully qualified file path into path part and file part copies.
Definition: ff_base.h:1715
void SetUTF8String(const char *pszBuffer)
Sets the string, using a UTF8 C-style string.
Definition: finaleframework.cpp:1067
void ClearData()
Definition: finaleframework.cpp:792
void SetPlain()
Clears the styles so the font doesn't use any style.
Definition: ff_base.h:1368
void SetRunningLuaFolderPath()
Sets the string to the folder for the running script file. The string is cleared if the script is run...
Definition: finaleframework.cpp:1752
int GetBackRepeatWidth() const
Returns the width of the back repeat for the cell.
Definition: ff_base.h:3181
void ToUnicode(eUniChar16 *pBuffer, int maxsize)
Copies the string to a 16-bit Unicode string buffer.
Definition: ff_base.h:2785
bool ContainsString(FCString *pSubString)
Returns true if the substring is found within the string.
Definition: finaleframework.cpp:2707
void AssureEndingPathDelimiter()
Makes sure that the string ends with a path delimiter (backslash or slash, depending on OS)...
Definition: ff_base.h:1635
Standard class for basic user interface functionality.
Definition: ff_ui.h:25
float CalcHeightEVPUs()
Returns the width of the bounding box, in fractional EVPUs.
Definition: ff_base.h:3791
void StoreXML_String(tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue)
Helper function to store FCString objects in the XML file.
Definition: finaleframework.cpp:590
int FormatCString(const char *fmt,...)
Formats a string using the same syntax and manner as the printf() function in C. The version of the m...
Definition: finaleframework.cpp:974
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:3817
FCStrings * CreateRows()
Definition: finaleframework.cpp:2560
void SetPercussionTypesFilePath()
Sets the full path string to Finale's percussion note types text file. This file should NEVER be modi...
Definition: ff_base.h:1794
FCStrings * CreateEnigmaComponents()
Creates a string collection that consists of the components from an Enigma text command (with correct...
Definition: finaleframework.cpp:2364
ERECT * GetNoteheadRect()
Returns a pointer to the notehead rectangle in the metrics data.
Definition: ff_base.h:3494
Class that encapsulate the measure metrics info data.
Definition: ff_base.h:3007
bool GetAbsolute() const
Returns true if the font size is absolute.
Definition: ff_base.h:1425
bool IsEnigmaFileInfoLyricist()
Returns true if the string is an "Lyricist" Enigma command.
Definition: finaleframework.cpp:1476
bool TruncateAt(int newlength)
Truncates the string at the indicated position.
Definition: ff_base.h:2865
bool IsEnigmaFileInfoComposer()
Returns true if the string is an "Composer" Enigma command.
Definition: finaleframework.cpp:1462
bool ContainsCString(const char *pszSubString)
Returns true if the substring is found within the string. C-string version.
Definition: ff_base.h:1876
The class that reference a cell (one measure on one staff) in the musical "grid". ...
Definition: ff_cell.h:17
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_base.h:3846
void SetAutoSaveFolderPath()
Sets the path string to Finale's auto-save folder.
Definition: ff_base.h:1763
int GetAttachmentCount() const
Returns the number of attachments that has info within the metrics data.
Definition: ff_base.h:3124
Class that encapsulate the entry metrics data.
Definition: ff_base.h:3245
bool PrintDocument(FCDocument *pDocument)
Prints a specific document. The current printer will be used. The document's current list of selected...
Definition: finaleframework.cpp:3779
void SetPageRangeString(const char *pszString)
Returns the page range string as a C-style string.
Definition: ff_base.h:4238
void SetFloat(float value)
Sets the number as a float.
Definition: ff_base.h:3873
Definition: ff_base.h:215
void ConvertToPascal(Str255 &pascalString)
Converts the string contents to a Str255 pascal string.
Definition: finaleframework.cpp:1674
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:4418
Base class for the Finale Framework classes.
Definition: ff_base.h:47
FLAG_32 GetEntryFlags()
Return the metrics entry flags.
Definition: ff_base.h:3436
bool TrimEnigmaFontTags()
Removes all Enigma font tags from a string, leaving only the actual text and text insert tags...
Definition: finaleframework.cpp:1262
int CalcStringPosFrom(FCString *pSubString, int startindex)
Returns the first position where a substring occurs, from a starting point.
Definition: finaleframework.cpp:2734
bool GetItalic() const
Returns true if the font style is italic.
Definition: ff_base.h:1406
FCString * GetKeyString()
Returns the "key" string.
Definition: ff_base.h:2975
void MoveY(float value)
Moves the y position from the current offset.
Definition: ff_base.h:3955
bool Execute()
Displays the dialog box to the user.
Definition: finaleframework.cpp:3695
bool MakeSubString(int startindex, int substringlength, FCString *pDestinationString)
Creates a substring from the string.
Definition: finaleframework.cpp:1600
void SetDrawCropMarks(bool state)
Sets if crop marks should be printed.
Definition: ff_base.h:4151
virtual void Deallocate()
Definition: ff_base.h:670
bool Load(CMPER cmper, twobyte inci)
Loads an object from a specific cmper/inci location.
Definition: finaleframework.cpp:912
void SetFitWithinMargins(bool state)
Sets whether to use the printer margins when fitting a page to print.
Definition: ff_base.h:4205
int CalcStringPos(FCString *pSubString)
Returns the first position where a substring occurs.
Definition: ff_base.h:1910
bool LoadFontPrefs(int prefsID)
Sets the font information to any of the preference fonts.
Definition: finaleframework.cpp:3126
void * GetUserData2() const
Gets the additional user data attached to the instance of an object.
Definition: ff_base.h:477
bool TrimEnigmaTags()
Removes all Enigma tag information from a string, leaving only the actual text.
Definition: finaleframework.cpp:1221
void DebugDataOffsetDump(int offset, int size)
For debug mode only. Dumps a data memory block at a specific offset and with a specific size...
Definition: finaleframework.cpp:780
int CompareNoCase(FCString *pString2)
Case insensitive version of Compare.
Definition: ff_base.h:1850
void SetCurrentTime()
Set the string to the current time in hh:mm:ss format.
Definition: ff_base.h:2739
Definition: ff_base.h:3982
bool IsEqualString(FCString *pString)
Returns true if the string is identical with the parameter. (FCString string version.)
Definition: finaleframework.cpp:1564
int FindFirst(const char *pszSubStr)
Returns the 0-based index for the first occurence of the substring.
Definition: ff_base.h:2135
int _loadedsize
Loaded size of the data block for a loaded object, in bytes. Since the datablock is implementation-sp...
Definition: ff_base.h:653
bool SplitAt(int splitpointindex, FCString *pFirstString, FCString *pSecondString, bool includesplitposchar)
Splits a string into 2 substrings at a specific split point character position.
Definition: ff_base.h:1668
float GetLeft() const
Returns the left-side position of the glyph, in fractional points.
Definition: ff_base.h:4366
EDOCID _connecteddocID
The "connected" document ID., which is the document the where the document was loaded (or last saved)...
Definition: ff_base.h:636
FCString()
The constructor. Defauls to an empty string.
Definition: ff_base.h:1530
bool ReadXML_BoolAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, bool *pValue)
Helper method to read boolean objects from the XML file, as an attribute to a node.
Definition: finaleframework.cpp:682
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:2983
void SetPreferencesFolderPath()
Sets the path string to Finale's preference folder.
Definition: ff_base.h:1805
void SetAbsolute(bool state)
Sets the absolute (fixed font) size state of the font info.
Definition: ff_base.h:1322
void SetCopyCount(twobyte copies)
Sets the number of copies to print.
Definition: ff_base.h:4108
int GetNoteLeftPosition(int index)
Returns the note left position (from the left border of the page) for a note in the metrics note arra...
Definition: finaleframework.cpp:3573
Base class for all data-related classes (that handles Finale data).
Definition: ff_base.h:628
MEASUREMENTUNITS
Constants for Finale's standard measurement units.
Definition: ff_base.h:212
bool GetBold() const
Returns true if the font style is boldface.
Definition: ff_base.h:1400
twobyte GetSize() const
Returns the font size as an integer number.
Definition: ff_base.h:1115
void SetFontInfo(FCFontInfo *pFontInfo)
Sets the transfer object (of the FCFontInfo class). This is used for both font input and output in th...
Definition: ff_base.h:4540
virtual bool Save()
Saves the currently loaded to its current location.
Definition: finaleframework.cpp:848
int _GetLoadedSize() const
Intended ONLY for the _CloneFrom implementation.
Definition: ff_base.h:799
Definition: ff_base.h:227
void GetSampleString(FCString *pString)
Gets the sample string, that is used to demo the apparence of the font selection. ...
Definition: ff_base.h:4505
int GetFirstAccidentalPosition() const
Returns the the left most edge of the accidental rectangle for all accidentals on the entry...
Definition: ff_base.h:3430
void SetSampleString(FCString *pString)
Sets the sample string, that should be used to demo the apparence of the font selection.
Definition: ff_base.h:4548
void ToUpperCase()
Transforms the string to upper case.
Definition: finaleframework.cpp:2656
static void DebugOutBool(const char *pszPrefixText, bool state)
Static method that outputs a line for debugging purposes. The boolean state appears afterwards as eit...
Definition: finaleframework.cpp:390
FCSystemGlyphInfo()
The constructor.
Definition: ff_base.h:4285
void SetOddEvenMode(PRINTODDEVENMODES value)
Sets the odd/even printing mode.
Definition: ff_base.h:4213
bool IsPlain()
Returns true if the font has no special style flags.
Definition: ff_base.h:1394
static void DebugOutBlock(const void *pBuffer, int startoffset, int size)
Static method that outputs a memory block for debugging purposes. Eight bytes per line will appear (a...
Definition: finaleframework.cpp:397
FCStrings * CreateParsedStrings(const char *pszSeparators)
Creates a collection of strings based on the separator characters. C-style string version...
Definition: finaleframework.cpp:2526
PRINTODDEVENMODES GetOddEvenMode() const
Returns the odd/even printing mode.
Definition: ff_base.h:4089
bool Replace(const char *pszSource, const char *pszReplacement)
Replaces a source pattern with a replacement string.
Definition: finaleframework.cpp:1345
void SetDrawFileName(bool state)
Sets if the file name should be printed.
Definition: ff_base.h:4163
void SetMeasurement(float value, twobyte unit)
Sets the string to an EVPU measurement value, formatted to a specific unit.
Definition: finaleframework.cpp:1902
void SetNameByID(twobyte id)
Sets the font name by using the document's internal Enigma font ID.
Definition: finaleframework.cpp:3330
Simple class to put numbers into collections.
Definition: ff_base.h:3840
Definition: ff_base.h:236
bool GetAttachment(__FCBaseData *pBaseDataObject, fourbyte the_id, EAttachment *pAttachment, bool stop=false)
Fills a buffer with the attachment data for an element.
Definition: ff_base.h:3200
bool IsEnigmaTextInsert(bool only_file_info_inserts=true)
Returns true if the string is an Enigma text command with a text insert.
Definition: finaleframework.cpp:1490
EDOCID GetConnectedDocID() const
Returns the document ID that was connected to the last load/save of the data.
Definition: ff_base.h:732
FCStrings * CreateEnigmaStrings(bool include_non_commands=false)
Creates a string collection of every enigma text tag found in the string.
Definition: finaleframework.cpp:2446
float GetRightPoints() const
Returns the right side of the bounding box, in fractional Points measurements.
Definition: ff_base.h:3640
int GetMusicWidth() const
Returns the width of the music part of the cell, at system percent.
Definition: ff_base.h:3163
bool SaveFontPrefs(int prefsID)
Saves the font information to any of the preference fonts.
Definition: finaleframework.cpp:3134
static void DebugOutHex(const char *pszPrefixText, int i)
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in h...
Definition: finaleframework.cpp:343
virtual __FCBaseData * CreateObject()=0
Creates a new instance of the object.
bool ReplaceCategoryFonts(FCCategoryDef *pCategoryDef, int fontmode, bool replacefonttag)
Parses the raw string and changes all text tags according to a category definition.
Definition: finaleframework.cpp:2236
int GetNoteWidth(int index)
Returns the note width for a note in the metrics note array.
Definition: finaleframework.cpp:3584
void FreeMetrics()
Tells Finale to clear the metrics data. This can be of use for Lua scripting, where the GC doesn't pr...
Definition: finaleframework.cpp:3475
FCString * CreateCopy()
Creates a copy of the string object on the heap.
Definition: finaleframework.cpp:2145
void SetX(float value)
Returns the x position.
Definition: ff_base.h:3925
void AppendCharacter(eUniChar16 character)
Appends a character to the string.
Definition: finaleframework.cpp:1617
float GetMaxDescent()
Returns the maximum descender for the font, relative to the baseline.
Definition: ff_base.h:4415
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:3891
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:3229
virtual const PDKFRAMEWORK_CLASSID GetClassID()=0
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
bool GetStrikeOut() const
Returns true if the font style is strikeout.
Definition: ff_base.h:1418
EDataID _dataid
The EdataID for the last loaded/saved object.
Definition: ff_base.h:657
Class containing printing settings (and the ability to print documents).
Definition: ff_base.h:3969
void SetRunningLuaFilePath()
Sets the string to the folder for the running script file. The string is cleared if the script is run...
Definition: finaleframework.cpp:1762
Class that provides storage for text. This is to achieve platform-transparent text handling...
Definition: ff_base.h:1473
int Compare(FCString *pString2)
Compares string against another string.
Definition: ff_base.h:1841
bool IsEnigmaFileInfoSubtitle()
Returns true if the string is an "Subtitle" Enigma command.
Definition: finaleframework.cpp:1455
virtual twobyte CalcLastInci()
For internal use only!
Definition: ff_base.h:700
Encapsulates a note entry from an owner class (for example FCNoteEntryCell, FCNoteEntryLayer) class...
Definition: ff_noteframe.h:808
Definition: ff_base.h:224
int CalcCStringPosFrom(const char *pszSubString, int startindex)
Returns the first position where a substring occurs, from a starting point. C-string version...
Definition: ff_base.h:1945
bool LoadDataBlock()
Loads the data. If the object is of dynamic size, the old memory block is freed and a new is allocate...
Definition: finaleframework.cpp:818
void SetReverse(bool state)
Sets if the pages should be printed in reverse order.
Definition: ff_base.h:4145
bool ReadXML_StringAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, FCString *pStringValue)
Helper method to read FCString objects from the XML file, as an attribute to a node.
Definition: finaleframework.cpp:666
Definition: ff_base.h:230
void DebugMsgDigit(const char *pszPrefixText, int i)
Creates a simple Message Box for debug purposes. The text appears with the extra digit (in decimal pr...
Definition: finaleframework.cpp:216
float CalcHeightPoints()
Returns the width of the bounding box, in fractional Points.
Definition: ff_base.h:3761
bool PrintCurrent()
Prints the current document. The current printer will be used. The document's current list of selecte...
Definition: finaleframework.cpp:3774
void MoveX(float value)
Moves the x position from the current offset.
Definition: ff_base.h:3949
bool IsNumber()
Returns true if the string is a number.
Definition: finaleframework.cpp:1400
int GetLeftEdge() const
Returns the left position of the cell cell (before the key/clef/repeat), at system scaling...
Definition: ff_base.h:3145
Evpu32 GetReferenceLinePos() const
Returns the position of the reference line of the staff. The coordinate is referenced from the bottom...
Definition: ff_base.h:3096
bool GetAttachment(__FCBaseData *pBaseDataObject, fourbyte the_id, EAttachment *pAttachment, bool stop=false)
Fills a buffer with the attachment data for an note-attached element.
Definition: ff_base.h:3335
Definition: ff_base.h:3988
FCFontInfo()
The constructor.
Definition: finaleframework.cpp:3101
void SetPluginsFolderPath()
Sets the path string to Finale's root plug-in folder.
Definition: ff_base.h:1739
bool IsEnigmaFileInfoArranger()
Returns true if the string is an "Arranger" Enigma command.
Definition: finaleframework.cpp:1469
int GetMusicStartPos() const
Returns position where the music starts in the cell (after the key/clef/repeats), at system scaling...
Definition: ff_base.h:3134
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: ff_base.h:3511
Int100 GetStaffScaling() const
Returns the accumulated staff scaling for the staff, in 100th of a percent.
Definition: ff_base.h:3105
bool DeleteCharactersAt(int index, int count)
Removes a range of characters, starting at the 0-based index position.
Definition: finaleframework.cpp:1331
Evpu32 GetTileOverlap() const
Returns the user overlap for tiled pages.
Definition: ff_base.h:4070
void SetLibFolderPath()
Sets the path string to Finale's library folder.
Definition: ff_base.h:1751
void FreeMetrics()
Tells Finale to clear the metrics data. This can be of use for Lua scripting, where the GC doesn't pr...
Definition: finaleframework.cpp:3412
virtual EXTAG Tag()=0
The Enigma tag for the derived class.
void MakeEnigmaStyleString(FCString *pString)
Makes an Enigma string (for use in raw strings) based on only the current font style information...
Definition: finaleframework.cpp:3195
void SetUseStyles(bool state)
Sets if font styles (such as bold, underline, etc) should be selectable in the dialog box...
Definition: ff_base.h:4527
void SetCharacterAt(int index, eUniChar16 newcharacter)
Sets the character at the index position.
Definition: finaleframework.cpp:2119
void SetSizeFloat(float fontsize)
Sets the font size as a floating point (with decimal digits) value.
Definition: ff_base.h:1314
bool GetReverse() const
Returns if the pages should be printed in reverse order.
Definition: ff_base.h:4034
Collection class for FCString class objects.
Definition: ff_basecollection.h:924
virtual bool DeepDeleteData()
Deletes data and all data that's connected to the object.
Definition: ff_base.h:875
FCPoint(float x, float y)
The constructor.
Definition: ff_base.h:3915
void StoreXML_BoolAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, bool value)
Helper function to store boolean objects in the XML file, as an attribute to a node.
Definition: finaleframework.cpp:628
static void DebugOutByteArrayBlock(const void *pBuffer, int startoffset, int size)
Static method that outputs a memory block for debugging purposes. Eight bytes per line will appear (a...
Definition: finaleframework.cpp:419
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_base.h:3015
FCFontInfo * CreateLastFontInfo()
Creates a FCFontInfo object with the last font information (based on the Enigma text tags) found in t...
Definition: finaleframework.cpp:2688
bool GetUseSizes() const
Returns if font sizes should be selectable in the dialog box.
Definition: ff_base.h:4479
bool ReadXML_String(tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue)
Helper method to read FCString objects from the XML file.
Definition: finaleframework.cpp:638
virtual ~__FCBaseData()
Virtual destructor.
Definition: finaleframework.cpp:715
void MakeEnigmaSizeString(FCString *pString)
Makes an Enigma string (for use in raw strings) based on only the current font size information...
Definition: finaleframework.cpp:3203
virtual bool IsDynamicSize()
Definition: ff_base.h:678
int GetLastDotPosition() const
Returns the horizontal position of rightmost augmentation dot.
Definition: ff_base.h:3419
void TrimLinefeed()
Trims linefeed characters at both ends of the string.
Definition: finaleframework.cpp:1375
FLAG_16 GetEnigmaStyles() const
Gets the font style as standard Enigma bit storage.
Definition: ff_base.h:1164
int CalcCStringPos(FCString *pSubString, const char *pszSubString)
Returns the first position where a substring occurs. C-string version.
Definition: ff_base.h:1922
bool IsAllDigits()
Returns true if all characters in the string are digits (0 through 9).
Definition: finaleframework.cpp:1390
static void DebugOutPtr(const char *pszPrefixText, void *ptr)
Static method that outputs a line for debugging purposes. The prefix text appears with the extra ptr ...
Definition: finaleframework.cpp:258
void AppendCString(const char *pOtherString)
Appends a C-style string to the string.
Definition: finaleframework.cpp:1636
virtual bool LoadNext()
Loads the next element from the database, if any.
Definition: finaleframework.cpp:877
FCFontInfo * CreateCopy()
Creates a copy of the font info object on the heap.
Definition: ff_base.h:1073
bool LoadSymbol(eUniChar16 symbolchar, FCFontInfo *pFont, float percent)
Loads the text metrics for a specific character in a font.
Definition: finaleframework.cpp:3620
float CalcWidthPoints()
Returns the width of the bounding box, in fractional Points.
Definition: ff_base.h:3776
float GetFloat(int index=0)
Converts the decimal string contents to a float value.
Definition: finaleframework.cpp:1866
__FCBaseData()
The constructor.
Definition: finaleframework.cpp:705
int GetWidth() const
Returns the total width of the cell, at system scaling.
Definition: ff_base.h:3154
const char * GetUTF8String() const
Returns a C-string UTF-8 version of the string.
Definition: finaleframework.cpp:1192
float GetBottom() const
Returns the bottom position of the glyph, relative to the baseline.
Definition: ff_base.h:4374
bool IsEqual(const char *pszString)
Returns true if the string is identical with the parameter.
Definition: ff_base.h:2417
bool LoadString(FCString *pText, FCFontInfo *pFont, float percent)
Loads the metrics for the string and font.
Definition: finaleframework.cpp:3602
float GetTopEVPUs() const
Returns the top side of the bounding box, in fractional EVPUs.
Definition: ff_base.h:3731
float GetAdvanceWidthPoints() const
Returns the advance width of the string (the pen position before and after printing the string)...
Definition: ff_base.h:3610
bool ReadXML_FloatAttribute(tinyxml2::XMLElement *pNode, const char *pszAttributeName, float *pValue)
Helper method to read floating point objects from the XML file, as an attribute to a node...
Definition: finaleframework.cpp:690
void _SetWidth(float w)
For internal use only.
Definition: ff_base.h:4314
int FormatString(FCString *fmt,...)
Formats a string using the same syntax and manner as the printf() function in C. The version of the m...
Definition: finaleframework.cpp:988
float GetTop() const
Returns the top position of the glyph, relative to the baseline.
Definition: ff_base.h:4395
void SetEndPage(twobyte endpage)
Sets the 1-based end page.
Definition: ff_base.h:4135
void SetItalic(bool state)
Sets the italics attribute of the font info.
Definition: ff_base.h:1354
twobyte GetEndPage() const
Returns the 1-based end page for printing.
Definition: ff_base.h:4028
bool LoadAtEntry(FCNoteEntry *pEntry)
Loads the measure metrics for a cell where the entry belongs.
Definition: finaleframework.cpp:3432
float GetTopPoints() const
Returns the top side of the bounding box, in fractional Points measurements.
Definition: ff_base.h:3655
ENoteMetrics * FindNoteMetrics(twobyte noteID)
Finds the note metrics for a specific note.
Definition: finaleframework.cpp:3541
bool IsName(const char *pszTestName)
Checks if the font name is a perfect match to the C-string test string.
Definition: finaleframework.cpp:3344
bool LoadInfo(FCFontInfo *pFontInfo, ufourbyte glyphno)
Loads the information about the glyph.
Definition: finaleframework.cpp:3789
A class that fetches the metrics for text (for how Finale will render it), such as the boundary boxes...
Definition: ff_base.h:3531
void ExtractFileExtension()
Removes everything except the file extension part of a file name.
Definition: ff_base.h:2097
bool ParseEnigmaCommand(FCString *pString)
Parses a valid Enigma font command and changes the font information accordingly.
Definition: finaleframework.cpp:3228
Int100 GetHorizontalStretch() const
Returns the horizontal stretch of the staff system, in 100th of a percent.
Definition: ff_base.h:3054
void DebugOutMenuInfo(FCUI *pUI, int menuixd_horiz, int menuixd_vert) const
Outputs the menu command info for debugging purposes.
Definition: finaleframework.cpp:489
float GetBottomPoints() const
Returns the bottom side of the bounding box, in fractional Points measurements.
Definition: ff_base.h:3670
twobyte GetStartPage() const
Returns the 1-based start page for printing.
Definition: ff_base.h:4022
int GetAttachmentCount() const
Returns the number of attachments that have info within the metrics data.
Definition: ff_base.h:3316
FCFontInfo * GetFontInfo() const
Gets the transfer object that should be used in the dialog. The object is used for both the input and...
Definition: ff_base.h:4497
void SetHidden(bool state)
Sets the hidden state of the font info.
Definition: ff_base.h:1346
ERECT * GetStemRect()
Returns a pointer to the stem rectangle in the metrics data.
Definition: ff_base.h:3484
virtual int DataSizeLoad()=0
Returns the data size for the data structure that should be loaded.
virtual bool LoadPrevious()
Loads the previous element in the database, if any.
Definition: ff_base.h:906
int GetNoteCount() const
Returns the number of notes that the metrics data has information about.
Definition: ff_base.h:3454
void * GetNSString()
Returns a NSString* version of the string (on Cocoa only).
Definition: finaleframework.cpp:1780
Definition: ff_base.h:130
void _SetLeft(float l)
For internal use only.
Definition: ff_base.h:4320
bool DeleteCharacterAt(int index)
Removes a character at the 0-based index position.
Definition: finaleframework.cpp:1316
bool DataIsLoaded() const
Returns true is any data has been loaded into the object.
Definition: ff_base.h:715
bool CopyToUnicodeBuffer(eUniChar16 *pBuffer, int maxbufferlen=0) const
Copies the string to a 16-bit Unicode buffer. The buffer must be big enough to have room for an endin...
Definition: finaleframework.cpp:1111
void SetNSString(void *pNSString)
Sets the string to a NSString* value.
Definition: finaleframework.cpp:1786
int GetFrontRepeatWidth() const
Returns the width of the front repeat for the cell.
Definition: ff_base.h:3172
void StoreXML_Bool(tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool value)
Helper function to store boolean objects in the XML file.
Definition: finaleframework.cpp:608
void CopyFrom(FCTextMetrics *pTextMetrics)
Copies all metrics data from another object.
Definition: finaleframework.cpp:3673
virtual bool LoadLast()
Loads the very last element in the database, if any.
Definition: ff_base.h:894
void StoreXML_Integer(tinyxml2::XMLElement *pParentNode, const char *pszElementName, int value)
Helper function to store integer objects in the XML file.
Definition: finaleframework.cpp:598
void SetDocStylesFolderPath()
Sets the path string to Finale's document styles folder.
Definition: ff_base.h:1787
int GetTopPosition() const
Returns the highest position for the noteheads or stem.
Definition: ff_base.h:3358
void SetUserOptionsPath()
Sets the string to the user options path on the running system.
Definition: finaleframework.cpp:1696
void SetInteger(int i)
Sets the string to an integer.
Definition: finaleframework.cpp:1875
void SetFloat(float f)
Sets the string to a float.
Definition: finaleframework.cpp:1888
void SetNameString(FCString *pString)
Sets the font name (FCString version).
Definition: finaleframework.cpp:3319
float CalcWidthEVPUs()
Returns the width of the bounding box, in fractional EVPUs.
Definition: ff_base.h:3806
float GetRight() const
Returns the right-side position of the glyph.
Definition: ff_base.h:4384
bool LoadAtCell(FCCell *pCell)
Loads the measure metrics for a cell.
Definition: finaleframework.cpp:3419
virtual EVERSION EnigmaVersion()
The Enigma version for save/load/create/delete operations.
Definition: ff_base.h:757
FCString * GetValueString()
Returns the "value" string.
Definition: ff_base.h:2978
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: finaleframework.cpp:3392
float GetMeasurement(_ENUMCODE(MEASUREMENTUNITS) _LUACODE(twobyte) unit)
Converts the string to an EVPU measurement value, based on a specific unit.
Definition: finaleframework.cpp:2062
virtual ~FCString()
The destructor. Deletes the string storage as well as the C-string pointer (if any).
Definition: finaleframework.cpp:927
bool GetTile() const
Returns if the document should be tited if bigger than specified page.
Definition: ff_base.h:4058
bool SetCharacterUpperCase(int index)
Sets a specific character to upper case.
Definition: finaleframework.cpp:2152
void SetFontAnnotationFolderPath()
Sets the path string to Finale's font annotation folder.
Definition: ff_base.h:1781
bool IsEmpty()
Returns true if the string is empty.
Definition: ff_base.h:2461
Evpu32 GetBottomStafflinePos() const
Returns the bottom line position of the staff. The coordinate is referenced from the bottom of the pa...
Definition: ff_base.h:3084
virtual void DebugDump()
Outputs the class data/information for debugging purposes.
Definition: finaleframework.cpp:547
FCString * CreateEnigmaString(FCString *pFontTagString=NULL)
Returns a created FCString object that contains the font information as an Enigma string...
Definition: finaleframework.cpp:3176
void SetEnigmaStyles(FLAG_16 fontstyles)
Sets the font style as standard Enigma bit storage.
Definition: ff_base.h:1261
bool EndsWith(const char *pszString)
Returns true if the string ends with the parameter string.
Definition: finaleframework.cpp:2679