Finale PDK Framework  0.54
ff_othercollection.h
1 /*
2  * File: ff_collection.h
3  * Author: Jari Williamsson
4  *
5  * Created on den 7 november 2010, 13:51
6  */
7 
8 #ifndef FF_OTHERCOLLECTION_H
9 #define FF_OTHERCOLLECTION_H
10 
11 #include "ff_region.h"
12 #include "ff_other.h"
13 #include "ff_browser.h"
14 #include "ff_parts.h"
15 
16 
21 {
22 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
23  virtual __FCBaseData* CreateElement() { return new FCOtherInci(); }
24 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
25 public:
26  virtual const char* ClassName() { return "FCOtherIncis"; }
27 
29  int GetMemoryBlockSize();
30 
35  twobyte* CreateMemoryBlock();
36 
39  void MakeMemoryBlockCollection(twobyte* pBuffer, int size, CMPER cmper);
40 
43  void ExpandToFitRecords(int noofrecords, int recordsize, CMPER cmper);
44 
47 };
48 
49 
50 
51 #ifdef PDK_FRAMEWORK_LAYOUT
52 
60 {
61 protected:
62 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
63  virtual __FCBaseData* CreateElement() { return new FCPage(); }
64 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
65 public:
71  {
72  }
73 
74  virtual const char* ClassName() { return "FCPages"; }
75 
80  FCPage* GetItemAt(int index) { return (FCPage*) __FCCollection::GetItemAt(index); }
81 
91  static bool AppendBlank(bool updatelayout);
92 
110  static bool InsertBlank(int beforepageno, bool updatelayout);
111 };
112 #endif // PDK_FRAMEWORK_LAYOUT
113 
114 
115 #ifdef PDK_FRAMEWORK_LAYOUT
116 
128 {
129 protected:
130 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
131  virtual __FCBaseData* CreateElement() { return new FCStaffSystem(); }
132 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
133 public:
140  {
141  }
142 
143  virtual const char* ClassName() { return "FCStaffSystems"; }
144 
150 
162  static void UpdateFullLayout();
163 
169  bool NeedUpdateLayout();
170 
179  FCStaffSystem* FindMeasureNumber(eMeas measurenumber);
180 };
181 #endif // PDK_FRAMEWORK_LAYOUT
182 
183 
190 {
191 protected:
192 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
193  virtual __FCBaseData* CreateElement() { return new FCMeasure(); }
194 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
195 public:
201  {}
202 
203  virtual const char* ClassName() { return "FCMeasures"; }
204 
209  FCMeasure* GetItemAt(int index) { return (FCMeasure*) __FCCollection::GetItemAt(index); }
210 
215  void LoadRegion(FCMusicRegion* pRegion);
216 
228  static bool Delete(int measureno, int count)
229  {
230  if (count < 1) return false;
231  return ::FX_DeleteMeasures(measureno, count, true) != 0;
232  }
233 
245  static bool Append(int count, bool updatelayout)
246  {
247  if (count < 1) return false;
248  FCBrowserMeasures measures;
249  int lastmeasure = measures.GetCount();
250  return ::FX_InsertMeasures(lastmeasure + 1, count, updatelayout) != 0;
251  }
252 
265  static bool Insert(int measureno, int count, bool updatelayout)
266  {
267  if (count < 1) return false;
268  tbool param = updatelayout;
269  return (::FX_InsertMeasures(measureno, count, param) != 0);
270  }
271 };
272 
279 {
280 protected:
281 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
282  virtual __FCBaseData* CreateElement() { return new FCStaff(); }
283 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
284 public:
291 
292  virtual const char* ClassName() { return "FCStaves"; }
293 
298  FCStaff* GetItemAt(int index) { return (FCStaff*) __FCCollection::GetItemAt(index); }
299 
307  static CMPER Append();
308 
317  static bool Delete(CMPER staffid);
318 };
319 
320 
321 
328 {
329  /* Reference table for the "Include measure in numbering" option. Assign
330  with AssignAllMeasures(). */
331  FCMeasures* _pAllMeasures;
332 
333 protected:
334 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
335  virtual __FCBaseData* CreateElement() { return new FCMeasureNumberRegion(); }
336 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
337 public:
338 
344  {
345  _pAllMeasures = NULL;
346  }
347 
348  virtual const char* ClassName() { return "FCMeasureNumberRegions"; }
349 
358  FCMeasureNumberRegion* FindMeasure(int measure);
359 
368  FCMeasureNumberRegion* FindByID(int theID);
369 
387  int CalcStringFromNumber(int measure, FCString* pString);
388 
405  int CalcNumberFromString(FCString* pString);
406 
418  bool IsMeasureIncluded(int measure);
419 
435  bool IsStringUnique(FCString* pString);
436 
445  int CountRegionsForMeasure(int measure);
446 
452 
464  bool AssignAllMeasures(FCMeasures* pAllMeasures);
465 };
466 
467 
474 {
475 protected:
476 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
477  virtual __FCBaseData* CreateElement() { return new FCArticulationDef(); }
478 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
479 public:
480  virtual const char* ClassName() { return "FCArticulationDefs"; }
481 
488  {
489  }
490 
497 };
498 
499 
500 
512 {
513 protected:
514 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
515  virtual __FCBaseData* CreateElement() { return new FCSystemStaff(); }
516 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
517 public:
523 
529 
530  virtual const char* ClassName() { return "FCSystemStaves"; }
531 
539  FCSystemStaff* FindStaff(twobyte staffno)
540  {
541  for (int i = 0; i < GetCount(); i++)
542  {
543  FCSystemStaff* pSystemStaff = (FCSystemStaff*) GetItemAt(i);
544  if (pSystemStaff->GetStaff() == staffno) return pSystemStaff;
545  }
546  return NULL;
547  }
548 
559 
560 
567  twobyte GetStartStaff()
568  {
569  if (GetCount() == 0) return -1;
570  return GetItemAt(0)->GetStaff();
571  }
572 
579  twobyte GetEndStaff()
580  {
581  if (GetCount() == 0) return -1;
582  FCSystemStaff* pSystemStaff = (FCSystemStaff*) GetItemAt(GetCount() - 1);
583  return pSystemStaff->GetStaff();
584  }
585 
593  {
594  return LoadAllForItem(0);
595  }
596 
606  {
607  return LoadAllForItem(65400);
608  }
609 
621  int LoadStaffSet(int staffsetnumber)
622  {
623  return LoadAllForItem(IU_STAFFSET1 + staffsetnumber - 1);
624  }
625 
633  {
634  ClearAll();
635  LoadAllForItem(pRegion->GetInstrumentList());
636  /* Remove all staves that aren't part of the selection. */
637  for (int listidx = GetCount() - 1; listidx >= 0; listidx --)
638  {
639  FCSystemStaff* pSystemStaff = (FCSystemStaff*) GetItemAt(listidx);
640  if (!pRegion->IsStaffIncluded(pSystemStaff->GetStaff())) ClearItemAt(listidx);
641  }
642  return GetCount();
643  }
644 
652  bool IsSharingStaffWith(FCSystemStaves* pOtherSystemStaves)
653  {
654  for (int idx = 0; idx < GetCount(); idx++)
655  {
656  FCSystemStaff* pSystemStaff = (FCSystemStaff*) GetItemAt(idx);
657  if (pOtherSystemStaves->FindStaff(pSystemStaff->GetStaff()) != NULL) return true;
658  }
659  return false;
660  }
661 };
662 
663 
670 {
671 protected:
672 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
673  virtual __FCBaseData* CreateElement() { return new FCCategoryDef(); }
674 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
675 public:
680  {
681  }
682 
683  virtual const char* ClassName() { return "FCCategoryDefs"; }
684 
690 
698  {
699  FCString astring;
700  for (int idx = 0; idx < GetCount(); idx++)
701  {
702  FCCategoryDef* pCategory = GetItemAt(idx);
703  pCategory->GetName(&astring);
704  if (astring.IsEqualString(pString)) return pCategory;
705  }
706  return NULL;
707  }
708 
715  FCCategoryDef* FindID(twobyte catID)
716  {
717  for (int idx = 0; idx < GetCount(); idx++)
718  {
719  FCCategoryDef* pCategory = GetItemAt(idx);
720  if (pCategory->GetID() == catID) return pCategory;
721  }
722  return NULL;
723  }
724 };
725 
726 
733 {
734 protected:
735 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
736  virtual __FCBaseData* CreateElement() { return new FCTextExpressionDef(); }
737 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
738 public:
744 
745  virtual const char* ClassName() { return "FCTextExpressionDefs"; }
746 
752 };
753 
760 {
761 protected:
762 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
763  virtual __FCBaseData* CreateElement() { return new FCShapeExpressionDef(); }
764 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
765 public:
771 
772  virtual const char* ClassName() { return "FCShapeExpressionDefs"; }
773 
779 };
780 
781 
782 
789 {
790 protected:
791 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
792  virtual __FCBaseData* CreateElement() { return new FCExpression(); }
793 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
794 public:
800 
806 
807  virtual const char* ClassName() { return "FCExpressions"; }
808 
817  virtual int LoadAllInCell(FCCell* pCell);
818 
819 #ifdef PDK_FRAMEWORK_LAYOUT
820 
831  int LoadAllInCellLayout(FCCell* pCell, FCStaffSystems* pStaffSystems);
832 #endif
833 
841  int LoadAllForRegion(FCMusicRegion* pRegion);
842 };
843 
844 
845 
852 {
853 protected:
854 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
855  virtual __FCBaseData* CreateElement() { return new FCPageText(); }
856 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
857 public:
863 
864  virtual const char* ClassName() { return "FCPageTexts"; }
865 
871 };
872 
873 
880 {
881 protected:
882 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
883  virtual __FCBaseData* CreateElement() { return new FCTextBlock(); }
884 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
885 public:
891 
892  virtual const char* ClassName() { return "FCTextBlocks"; }
893 
899 };
900 
901 
914 {
915 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
916 private:
917  CMPER _cmpersave; /* The "location" for the collection. It's where created
918  * elements for AssureCellPlacement() should be saved. */
919  int _expectedmeasure;
920 protected:
921  virtual __FCBaseData* CreateElement() { return new FCSeparatePlacement(); }
922 
923 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
924 public:
930  {
931  _cmpersave = 0;
932  _expectedmeasure = 0;
933  }
934 
935 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
936 
937  void _SetCmperSave(CMPER cmper) { _cmpersave = cmper; }
938 
940  void _SetExpectedMeasure(int measure) { _expectedmeasure = measure; }
941 #endif
942 
943  virtual const char* ClassName() { return "FCSeparatePlacements"; }
944 
952  void SetMode(
953 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
955 #else
956  int
957 #endif
958  mode)
959  {
960  switch (mode)
961  {
963  SetCustomTag(MAKEEXTAG(edOther,'R','I'));
964  break;
966  SetCustomTag(ot_SeparateBackwardRepeatPlacement);
967  break;
969  SetCustomTag(ot_SeparateEndingRepeatPlacement);
970  break;
972  SetCustomTag(ot_SeparateEndingRepeatTextPlacement);
973  break;
974  }
975  }
976 
982 
993 
995  void KeepOnlyMeasure(eMeas meas)
996  {
997  for (int i = GetCount() - 1; i >= 0; i--)
998  {
999  FCSeparatePlacement* pItem = GetItemAt(i);
1000  if (pItem->GetMeasure() != meas) ClearItemAt(i);
1001  }
1002  }
1003 };
1004 
1005 #if FXT_VERSION >= FINALEVERSION_2012
1006 // Only 2012-style staff style definitions are supported right now, implement later...
1007 
1014 {
1015 protected:
1016 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1017  virtual __FCBaseData* CreateElement() { return new FCStaffStyleDef(); }
1018 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1019 public:
1020  virtual const char* ClassName() { return "FCStaffStyleDefs"; }
1021 
1024 };
1025 #endif
1026 
1033 {
1034 protected:
1035 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1036  virtual __FCBaseData* CreateElement() { return new FCStaffStyleAssign(); }
1037 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1038 public:
1039  virtual const char* ClassName() { return "FCStaffStyleAssigns"; }
1040 
1043 };
1044 
1045 
1052 {
1053 protected:
1054 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1055  virtual __FCBaseData* CreateElement() { return new FCMultiMeasureRest(); }
1056 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1057 public:
1064 
1065  virtual const char* ClassName() { return "FCMultiMeasureRests"; }
1066 
1072 };
1073 
1074 
1081 {
1082 protected:
1083 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1084  virtual __FCBaseData* CreateElement() { return new FCFreezeSystem(); }
1085 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1086 public:
1087  virtual const char* ClassName() { return "FCFreezeSystems"; }
1088 };
1089 
1090 
1091 
1092 
1093 #if FXT_VERSION >= FINALEVERSION_2012
1094 
1100 {
1101 protected:
1102 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1103  virtual __FCBaseData* CreateElement() { return new FCMultiStaffInstrument(); }
1104 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1105 public:
1111  {
1112  }
1113 
1114  virtual const char* ClassName() { return "FCMultiStaffInstruments"; }
1115  virtual const PDKFRAMEWORK_CLASSID GetClassID() { return FCID_MULTISTAFFINSTRUMENTS; }
1116 
1128  {
1129  if (staffno == 0) return NULL;
1130  for (int i = 0; i < GetCount(); i++)
1131  {
1133  if (pObject->ContainsStaff(staffno)) return pObject;
1134  }
1135  return NULL;
1136  }
1137 
1143 };
1144 #endif // #if FXT_VERSION >= FINALEVERSION_2012
1145 
1146 
1152 {
1153 protected:
1154 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1155  virtual __FCBaseData* CreateElement() { return new FCAllotment(); }
1156 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1157 public:
1158  virtual const char* ClassName() { return "FCAllotment"; }
1159 };
1160 
1161 
1168 {
1169 protected:
1170 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1171  virtual __FCBaseData* CreateElement() { return new FCPageGraphic(); }
1172 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1173 public:
1179  {
1180  }
1181 
1182  virtual const char* ClassName() { return "FCPageGraphics"; }
1183 
1189 };
1190 
1191 
1198 {
1199 protected:
1200 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1201  virtual __FCBaseData* CreateElement() { return new FCTextRepeatDef(); }
1202 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1203 public:
1210 
1211  virtual const char* ClassName() { return "FCTextRepeatDefs"; }
1212 
1218 };
1219 
1220 
1227 {
1228 protected:
1229 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1230  virtual __FCBaseData* CreateElement() { return new FCFretInstrumentDef(); }
1231 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1232 public:
1239 
1240  virtual const char* ClassName() { return "FCFretInstrumentDefs"; }
1241 
1247 };
1248 
1249 
1259 {
1260 protected:
1261 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1262  virtual __FCBaseData* CreateElement() { return new FCTextRepeat(); }
1263 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1264 public:
1270 
1271  virtual const char* ClassName() { return "FCTextRepeats"; }
1272 
1278 };
1279 
1280 
1286 {
1287 protected:
1288 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1289  virtual __FCBaseData* CreateElement() { return new FCExecutableShapeDef(); }
1290 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1291 public:
1292  virtual const char* ClassName() { return "FCExecutableShapeDefs"; }
1293 };
1294 
1295 
1296 #ifdef PDK_FRAMEWORK_SHAPES
1297 
1304 {
1305 protected:
1306 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1307  virtual __FCBaseData* CreateElement() { return new FCShapeDef(); }
1308 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1309 public:
1315 
1316  virtual const char* ClassName() { return "FCShapeDefs"; }
1317 
1323 };
1324 #endif /* PDK_FRAMEWORK_SHAPES */
1325 
1333 {
1334 protected:
1335 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1336  virtual __FCBaseData* CreateElement() { return new FCChordSuffixElement(); }
1337 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1338 public:
1339  virtual const char* ClassName() { return "FCChordSuffixElements"; }
1340 
1346 };
1347 
1348 
1349 #if FXT_VERSION >= FINALEVERSION_2012
1350 
1356 {
1357 protected:
1358 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1359  virtual __FCBaseData* CreateElement() { return new FCFretboardStyleDef(); }
1360 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1361 public:
1362  virtual const char* ClassName() { return "FCFretboardStyleDefs"; }
1363  virtual const PDKFRAMEWORK_CLASSID GetClassID() { return FCID_FRETBOARDSTYLEDEFS; }
1364 
1370 };
1371 #endif
1372 
1373 
1374 #if FXT_VERSION >= FINALEVERSION_2012
1375 
1380 {
1381 protected:
1382 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1383  virtual __FCBaseData* CreateElement() { return new FCFretboardGroupDef(); }
1384 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1385 public:
1387 
1388  virtual const char* ClassName() { return "FCFretboardGroupDefs"; }
1389  virtual const PDKFRAMEWORK_CLASSID GetClassID() { return FCID_FRETBOARDGROUPDEFS; }
1390 
1396 };
1397 #endif
1398 
1399 
1407 {
1408 protected:
1409 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1410  virtual __FCBaseData* CreateElement() { return new FCBeatChartElement(); }
1411 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1412 public:
1419  {}
1420 
1421 
1422  virtual const char* ClassName() { return "FCBeatChartElements"; }
1423 
1434  FCBeatChartElement* FindMeasurePos(TimeEdu32 durationpos)
1435  {
1436  for (int i = 0; i < GetCount(); i++)
1437  {
1439  if (pElement->GetInitElement()) continue;
1440  if (pElement->GetMeasurePos() == durationpos) return pElement;
1441  }
1442  return NULL;
1443  }
1444 
1452  bool RebuildAfter(int index, bool updateinitrecord = false)
1453  {
1454  if (GetCount() < 2) return false;
1455  if (index < 1) return false;
1456  if (index >= (GetCount())) return false;
1457 
1458  FCBeatChartElement* pThisItem = (FCBeatChartElement*) GetItemAt(index);
1459  int currentpos = pThisItem->GetHorizontalPosition() + pThisItem->CalcWidth();
1460  for (int i = index + 1; i < GetCount(); i++)
1461  {
1463  int elementwidth = pElement->CalcWidth();
1464  pElement->SetHorizontalPosition(currentpos);
1465  currentpos += elementwidth;
1466  pElement->SetWidth(elementwidth);
1467  }
1468  if (updateinitrecord)
1469  {
1470  FCBeatChartElement* pInitElement = (FCBeatChartElement*) GetItemAt(0);
1471  pInitElement->SetFullSpan(currentpos);
1472  }
1474  return true;
1475  }
1476 
1485  {
1486  FCBeatChartElement* pNextElement = NULL;
1487  for (int idx = GetCount() - 1; idx >= 1; idx--)
1488  {
1489  FCBeatChartElement* pElement = (FCBeatChartElement*) GetItemAt(idx);
1490  if (pNextElement) pElement->SetNextHorizontalPosition(pNextElement->GetHorizontalPosition());
1491  pNextElement = pElement;
1492  }
1493  }
1494 
1496  bool IsValid();
1497 
1499  virtual bool SaveAll()
1500  {
1501  if (!IsValid()) return false;
1503  }
1504 
1510 };
1511 
1519 {
1520 protected:
1521 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1522  virtual __FCBaseData* CreateElement() { return new FCTempoElement(); }
1523 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1524 public:
1531  {
1532  }
1533 
1534  virtual const char* ClassName() { return "FCTempoElements"; }
1535 
1541 
1545  void AssureSorted();
1546 };
1547 
1548 
1549 
1556 {
1557  CMPER _percLibID;
1558 protected:
1559 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1560  virtual __FCBaseData* CreateElement() { return new FCPercussionLayoutNote(); }
1561 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1562 public:
1563 
1569  {
1570  _percLibID = 0;
1571  }
1572 
1573  virtual const char* ClassName() { return "FCPercussionLayoutNotes"; }
1574 
1576  CMPER GetPercussionLibraryID() { return _percLibID; }
1577 
1579  virtual int LoadAllForItem(CMPER cmper)
1580  {
1581  _percLibID = cmper;
1583  }
1584 
1593  {
1594  if (!_percLibID) return NULL;
1596  text.Load(_percLibID);
1597  FCString* pString = text.CreateString();
1598  return pString;
1599  }
1600 
1601 #ifdef PDK_FRAMEWORK_LUAFRIENDLY
1602 
1603  FCString* CreateNameString_GC();
1604 #endif
1605 
1614  FCPercussionLayoutNote* FindRawNoteType(PERC_NOTE_TYPE notetype)
1615  {
1616  for (int i = 0; i < GetCount(); i++)
1617  {
1618  FCPercussionLayoutNote* pObject = GetItemAt(i);
1619  if (pObject->GetRawNoteType() == notetype) return pObject;
1620  }
1621  return NULL;
1622  }
1623 
1631  FCPercussionLayoutNote* FindNoteType(PERC_NOTE_TYPE notetype)
1632  {
1633  for (int i = 0; i < GetCount(); i++)
1634  {
1635  FCPercussionLayoutNote* pObject = GetItemAt(i);
1636  if (pObject->GetNoteType() == notetype) return pObject;
1637  }
1638  return NULL;
1639  }
1640 
1641 #ifdef PDK_FRAMEWORK_TINYXML
1642 
1652  {
1653  if (!pMapNotes) return NULL;
1654  for (int i = 0; i < GetCount(); i++)
1655  {
1656  FCPercussionLayoutNote* pObject = GetItemAt(i);
1657  if (pObject->CalcMidiRawNote(pMapNotes)== midinote) return pObject;
1658  }
1659  for (int i = 0; i < GetCount(); i++)
1660  {
1661  FCPercussionLayoutNote* pObject = GetItemAt(i);
1662  if (pObject->CalcMidiNote(pMapNotes)== midinote) return pObject;
1663  }
1664  return NULL;
1665  }
1666 #endif
1667 
1673 };
1674 
1675 
1676 
1682 {
1683 protected:
1684 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1685  virtual __FCBaseData* CreateElement() { return new FCInstrumentDef(); }
1686 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1687 public:
1688 
1694  {
1695  }
1696 
1697 
1698  virtual const char* ClassName() { return "FCInstrumentDefs"; }
1699 
1705 };
1706 
1707 
1720 {
1721 protected:
1722 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
1723  virtual __FCBaseData* CreateElement() { return new FCStaffList(); }
1724 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
1725 public:
1726  /* \brief The constructor
1727  *
1728  * Lua-supported.
1729  * */
1731  {}
1732 
1752  void SetMode(
1753 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
1755 #else
1756  int
1757 #endif
1758  mode
1759  )
1760  {
1761  switch (mode)
1762  {
1763  case FCStaffList::SLMODE_SCORE:
1764  SetCustomTag(ot_StaffListDataScore);
1765  break;
1766  case FCStaffList::SLMODE_PARTS:
1767  SetCustomTag(ot_StaffListDataParts);
1768  break;
1769  case FCStaffList::SLMODE_FORCESCORE:
1770  SetCustomTag(ot_StaffListForceScore);
1771  break;
1772  case FCStaffList::SLMODE_FORCEPARTS:
1773  SetCustomTag(ot_StaffListForceParts);
1774  break;
1775 
1776  case FCStaffList::SLMODE_CATEGORY_SCORE:
1777  SetCustomTag(__ot_CategoryStaffListScore);
1778  break;
1779  case FCStaffList::SLMODE_CATEGORY_PARTS:
1780  SetCustomTag(__ot_CategoryStaffListParts);
1781  break;
1782  case FCStaffList::SLMODE_CATEGORY_FORCESCORE:
1783  SetCustomTag(__ot_CategoryStaffListScoreOverride);
1784  break;
1785  case FCStaffList::SLMODE_CATEGORY_FORCEPARTS:
1786  SetCustomTag(__ot_CategoryStaffListPartsOverride);
1787  break;
1788 
1789 
1790  case FCStaffList::SLMODE_ASSIGNMENT_SCORE:
1791  SetCustomTag(__ot_StaffAssignStaffListScore);
1792  break;
1793  case FCStaffList::SLMODE_ASSIGNMENT_PARTS:
1794  SetCustomTag(__ot_StaffAssignStaffListParts);
1795  break;
1796  case FCStaffList::SLMODE_ASSIGNMENT_FORCESCORE:
1797  SetCustomTag(__ot_StaffAssignStaffListScoreOverride);
1798  break;
1799  case FCStaffList::SLMODE_ASSIGNMENT_FORCEPARTS:
1800  SetCustomTag(__ot_StaffAssignStaffListPartsOverride);
1801  break;
1802  }
1803  }
1804 
1805  virtual const char* ClassName() { return "FCStaffLists"; }
1806 
1812 };
1813 
1814 
1820 {
1821  FCStaffList _scoredisplay, _partsdisplay, _scoreforced, _partsforced;
1822  bool _loaded;
1823 public:
1825  {
1826  _loaded = false;
1827  }
1828 
1838  bool LoadStandardList(twobyte number)
1839  {
1840  _loaded = false;
1841  _scoredisplay.SetMode(FCStaffList::SLMODE_SCORE);
1842  if (!_scoredisplay.Load(number)) return false;
1843  _partsdisplay.SetMode(FCStaffList::SLMODE_PARTS);
1844  if (!_partsdisplay.Load(number)) return false;
1845  _scoreforced.SetMode(FCStaffList::SLMODE_FORCESCORE);
1846  if (!_scoreforced.Load(number)) return false;
1847  _partsforced.SetMode(FCStaffList::SLMODE_FORCEPARTS);
1848  if (!_partsforced.Load(number)) return false;
1849  _loaded = true;
1850  return true;
1851  }
1852 
1862  bool LoadCategoryList(twobyte number)
1863  {
1864  _loaded = false;
1865  _scoredisplay.SetMode(FCStaffList::SLMODE_CATEGORY_SCORE);
1866  if (!_scoredisplay.Load(number)) return false;
1867  _partsdisplay.SetMode(FCStaffList::SLMODE_CATEGORY_PARTS);
1868  if (!_partsdisplay.Load(number)) return false;
1869  /* Forced state isn't used - the other selections should ideally be cleared! */
1870  _loaded = true;
1871  return true;
1872  }
1873 
1882  bool LoadAssignmentList(twobyte number)
1883  {
1884  _loaded = false;
1885  _scoredisplay.SetMode(FCStaffList::SLMODE_ASSIGNMENT_SCORE);
1886  if (!_scoredisplay.Load(number)) return false;
1887  _partsdisplay.SetMode(FCStaffList::SLMODE_ASSIGNMENT_PARTS);
1888  if (!_partsdisplay.Load(number)) return false;
1889  /* Forced state isn't used - the other selections should ideally be cleared! */
1890  _loaded = true;
1891  return true;
1892  }
1893 
1898  bool IsLoaded() { return _loaded; }
1899 
1900 
1914  bool IsStaffElementDisplayed(eStaff staffno, bool score, FCSystemStaves* pSystemStaves)
1915  {
1916  if (!IsLoaded()) return false;
1917  if (staffno == 0) return false;
1918  if (score)
1919  {
1920  if (_scoredisplay.IncludesStaff(staffno)) return true;
1921  if (pSystemStaves)
1922  {
1923  if (staffno == pSystemStaves->GetStartStaff())
1924  {
1925  if (_scoredisplay.IncludesStaff(SLD_TOPSTAFF)) return true;
1926  }
1927  else if (staffno == pSystemStaves->GetEndStaff())
1928  {
1929  if (_scoredisplay.IncludesStaff(SLD_BOTTOMSTAFF)) return true;
1930  }
1931  }
1932  }
1933  else
1934  {
1935  if (_partsdisplay.IncludesStaff(staffno)) return true;
1936  if (pSystemStaves)
1937  {
1938  if (staffno == pSystemStaves->GetStartStaff())
1939  {
1940  if (_partsdisplay.IncludesStaff(SLD_TOPSTAFF)) return true;
1941  }
1942  else if (staffno == pSystemStaves->GetEndStaff())
1943  {
1944  if (_partsdisplay.IncludesStaff(SLD_BOTTOMSTAFF)) return true;
1945  }
1946  }
1947  }
1948  return false;
1949  }
1950 };
1951 
1952 #ifdef PDK_FRAMEWORK_LAYOUT
1953 
1965 {
1966  /* _partstaffsystems and _partids should match in pairs */
1967  __FCCollection _partstaffsystems; /* Collection of FCStaffSystems objects. */
1968  FCNumbers _partids; /* Collection of FCNumber objects. */
1969 public:
1971 
1978  {
1979  FCPart currentpart(FCPart::PARTID_CURRENT);
1980 
1981  /* Try to find the part ID in the number collection. */
1982  FCNumber* pNumber = _partids.FindInt(currentpart.GetID());
1983  if (pNumber)
1984  {
1985  /* Return the existing layout */
1986  int index = _partids.GetIndexOf(pNumber);
1987  return (FCStaffSystems*) _partstaffsystems.GetItemAt(index);
1988  }
1989  /* Create a new layout and make sure that the layout is updated. */
1990  FCStaffSystems* pStaffSystems = new FCStaffSystems();
1991  pStaffSystems->LoadAll();
1992  if (pStaffSystems->NeedUpdateLayout())
1993  {
1995  pStaffSystems->LoadAll();
1996  }
1997  _partstaffsystems.Add(pStaffSystems);
1998  _partids.Add(new FCNumber(currentpart.GetID()));
1999  return pStaffSystems;
2000  }
2001 };
2002 #endif /* #ifdef PDK_FRAMEWORK_LAYOUT */
2003 
2004 
2005 
2006 
2027 {
2028 protected:
2029 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2030  virtual __FCBaseData* CreateElement() { return new FCCellClefChange(); }
2031 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
2032 public:
2033  virtual const char* ClassName() { return "FCCellClefChanges"; }
2034 
2040  {
2041  }
2042 
2049 };
2050 
2051 
2065 class FCGuides : public __FCCollection
2066 {
2067 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2068  bool _vertical; /* True - vertical guides, False - horizontal guides */
2069 #endif
2070  public:
2071 
2072 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2073  /* \brief The constructor.
2074  *
2075  * For internal use only.
2076  */
2077  FCGuides(bool isvertical) : __FCCollection()
2078  {
2079  _vertical = isvertical;
2080  }
2081 
2086  bool _Load(int count);
2087 
2092  bool _Save();
2093 #endif
2094 
2099  FCGuide* GetItemAt(int index) { return (FCGuide*)__FCCollection::GetItemAt(index); }
2100 
2113  FCGuide* FindClosest(Efix32 testposition, Efix32 gravityzonesize)
2114  {
2115  Efix32 smallestfound = gravityzonesize + 1;
2116  FCGuide* pFound = NULL;
2117  for (int i = 0; i < GetCount(); i++)
2118  {
2119  FCGuide* pGuide = GetItemAt(i);
2120  Efix32 testdiff = pGuide->GetPosition() - testposition;
2121  if (testdiff < 0) testdiff = -testdiff; /* Force positive diff */
2122  if (testdiff > gravityzonesize) continue;
2123  testdiff = -testdiff; /* Negative diff */
2124  if (testdiff < -gravityzonesize) continue;
2125  /* The gravity zone size matches the guide, check to see if it's the smallest diff */
2126  testdiff = -testdiff; /* Positive again */
2127  if (testdiff < smallestfound)
2128  {
2129  smallestfound = testdiff;
2130  pFound = pGuide;
2131  }
2132  }
2133  return pFound;
2134  }
2135 
2136 
2148  FCGuide* AddGuide(Efix32 position)
2149  {
2150  FCGuide* pGuide = new FCGuide(position);
2151  Add(pGuide);
2152  return pGuide;
2153  }
2154 };
2155 
2164 {
2165 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2167 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
2168 
2169 protected:
2170 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
2171  virtual __FCBaseData* CreateElement() { return new FCMetatoolAssignment(); }
2172 #endif /* DOXYGEN_SHOULD_IGNORE_THIS */
2173 public:
2179  {}
2180 
2181  virtual const char* ClassName() { return "FCMetatoolAssignments"; }
2182 
2188 
2198  void SetMode(
2199 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
2201 #else
2202  int
2203 #endif
2204  mode)
2205  {
2206  if (GetCount() != 0) return;
2207  _mode = (FCMetatoolAssignment::METATOOL_MODES) mode;
2208  }
2209 
2216 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
2218 #else
2219  int
2220 #endif
2221  GetMode() const { return (FCMetatoolAssignment::METATOOL_MODES) _mode; }
2222 
2230  virtual int LoadAll();
2231 
2241 #ifndef PDK_FRAMEWORK_LUAFRIENDLY
2243 #else
2244  int
2245 #endif
2246  mode
2247  )
2248  {
2249  if (mode == FCMetatoolAssignment::MTOOLMODE_UNKNOWN) return 0;
2250  _mode = (FCMetatoolAssignment::METATOOL_MODES) mode;
2251  return LoadAll();
2252  }
2253 
2262  FCMetatoolAssignment* FindKeystroke(twobyte keystrokeslot)
2263  {
2264  if (keystrokeslot == 0) return NULL;
2265  for (int i = 0; i < GetCount(); i++)
2266  {
2267  FCMetatoolAssignment* pAssignment = GetItemAt(i);
2268  if (pAssignment->GetKeystroke() == keystrokeslot) return pAssignment;
2269  }
2270  return NULL;
2271  }
2272 
2282  {
2283  if ((_mode != FCMetatoolAssignment::MTOOLMODE_CLEF) && (defID == 0)) return NULL;
2284  for (int i = 0; i < GetCount(); i++)
2285  {
2286  FCMetatoolAssignment* pAssignment = GetItemAt(i);
2287  if (pAssignment->GetDefID() == defID) return pAssignment;
2288  }
2289  return NULL;
2290  }
2291 
2302  {
2303  if (!pDef) return NULL;
2304  if (_mode != FCMetatoolAssignment::MTOOLMODE_EXPRESSION) return NULL;
2305  for (int i = 0; i < GetCount(); i++)
2306  {
2307  FCMetatoolAssignment* pAssignment = GetItemAt(i);
2308  if (!pAssignment->IsShapeExpressionDef()) continue;
2309  if (pAssignment->GetDefID() == pDef->GetItemNo()) return pAssignment;
2310  }
2311  return NULL;
2312  }
2313 
2324  {
2325  if (!pDef) return NULL;
2326  if (_mode != FCMetatoolAssignment::MTOOLMODE_EXPRESSION) return NULL;
2327  for (int i = 0; i < GetCount(); i++)
2328  {
2329  FCMetatoolAssignment* pAssignment = GetItemAt(i);
2330  if (pAssignment->IsShapeExpressionDef()) continue;
2331  if (pAssignment->GetDefID() == pDef->GetItemNo()) return pAssignment;
2332  }
2333  return NULL;
2334  }
2335 
2346  {
2347  if (!pDef) return NULL;
2348  if (_mode != FCMetatoolAssignment::MTOOLMODE_ARTICULATION) return NULL;
2349  for (int i = 0; i < GetCount(); i++)
2350  {
2351  FCMetatoolAssignment* pAssignment = GetItemAt(i);
2352  if (pAssignment->GetDefID() == pDef->GetItemNo()) return pAssignment;
2353  }
2354  return NULL;
2355  }
2356 
2367  {
2368  if (!pDef) return NULL;
2369  if (_mode != FCMetatoolAssignment::MTOOLMODE_REPEAT) return NULL;
2370  for (int i = 0; i < GetCount(); i++)
2371  {
2372  FCMetatoolAssignment* pAssignment = GetItemAt(i);
2373  if (pAssignment->GetDefID() == pDef->GetItemNo()) return pAssignment;
2374  }
2375  return NULL;
2376  }
2377 
2388 
2389 #ifdef PDK_FRAMEWORK_ENTRIES
2390 
2402 #endif
2403 
2414 };
2415 
2416 
2417 #endif /* FF_OTHERCOLLECTION_H */
2418 
2419 
static bool Delete(int measureno, int count)
Deletes the measure(s) and updates the layout.
Definition: ff_othercollection.h:228
FCPercussionLayoutNote * GetItemAt(int index)
Overridden version of GetItemAt.
Definition: ff_othercollection.h:1672
virtual CMPER GetItemNo() const
Returns the item number. This typically points to items such as a page number, a measure number...
Definition: ff_other.h:305
__FCBase * GetItemAt(int index)
Returns the object at the index position. Index is 0-based.
Definition: finaleframework.cpp:12797
The class for a note definition in a percussion layout.
Definition: ff_other.h:23136
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:348
The class for a measure number region.
Definition: ff_other.h:5254
Evpu16 CalcWidth()
Calculates and returns the width of the beat chart element.
Definition: ff_other.h:22208
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:292
FCMeasureNumberRegion * GetItemAt(int index)
Overridden version of GetItemAt().
Definition: ff_othercollection.h:451
static void UpdateFullLayout()
Updates the layout for the whole document (in the current part).
Definition: finaleframework.cpp:13580
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1020
Class for a shape expression definition.
Definition: ff_other.h:14483
FCStaves()
The construcor.
Definition: ff_othercollection.h:290
FCTextBlocks()
The constructor.
Definition: ff_othercollection.h:890
FCMetatoolAssignment * FindClefDef(FCClefDef *pDef)
Find a metatool assignment record in the collection by matching the clef definition. This method will only work in the MTOOLMODE_CLEF mode.
Definition: finaleframework.cpp:14150
Collection class for FCTextRepeat class objects.
Definition: ff_othercollection.h:1258
void ClearAll()
Destroys all the objects in the collection and empties the collection.
Definition: ff_basecollection.h:130
Collection class for FCMultiMeasureRest class objects.
Definition: ff_othercollection.h:1051
FCInstrumentDef * GetItemAt(int index)
Overridden GetItemAt method.
Definition: ff_othercollection.h:1704
FCSystemStaves()
The constructor.
Definition: ff_othercollection.h:522
FCPercussionLayoutNotes()
The constructor.
Definition: ff_othercollection.h:1568
Definition: ff_parts.h:113
Class that stores one record of a fretboard chord definition.
Definition: ff_other.h:21082
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:74
Class for page-assigned graphics. Currently, this class can only be used to edit existing page graphi...
Definition: ff_other.h:18859
FCMultiStaffInstrument * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:1142
Class for attaching an tuplet to an entry.
Definition: ff_entrydetails.h:1647
FCBeatChartElement * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:1509
Class for freezing a system at a specific measure.
Definition: ff_other.h:13506
FCMeasures()
The constructor.
Definition: ff_othercollection.h:200
FCCellClefChange * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:2048
void SetFullSpan(Evpu16 span)
Sets the full span for the beat chart.
Definition: ff_other.h:22272
FCTextExpressionDef * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:751
Collection class for FCShapeDef class objects, which defines the shape definitions in the document...
Definition: ff_othercollection.h:1303
Collection class for FCFretboardGroupDef class objects.
Definition: ff_othercollection.h:1379
FCMetatoolAssignment * FindRepeatDef(FCTextRepeatDef *pDef)
Find a metatool assignment record in the collection by matching the text repeat definition. This method will only work in the MTOOLMODE_REPEAT mode.
Definition: ff_othercollection.h:2366
Collection class for FCShapeExpressionDef class objects.
Definition: ff_othercollection.h:759
void ExpandToFitRecords(int noofrecords, int recordsize, CMPER cmper)
Expands the number of incise to fit the required amount of records.
Definition: finaleframework.cpp:13514
Class for a multi-measure rest instance.
Definition: ff_other.h:18234
Class for a category definition.
Definition: ff_other.h:12571
FCPages()
The constructor.
Definition: ff_othercollection.h:70
void GetName(FCString *pString)
Gets the name of the category and copies it to an existing string object.
Definition: ff_other.h:12977
FCFretboardGroupDef * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1395
virtual bool SaveAll()
Overridden version of SaveAll, that verifies the collection integrity before saving.
Definition: ff_othercollection.h:1499
virtual bool Load(CMPER itemno)
Overridden Load() method, since the staff list is of dynamic size.
Definition: finaleframework.cpp:12331
Collection class for FCStaffStyleAssign class objects.
Definition: ff_othercollection.h:1032
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:2033
Collection class for FCTempoElements class objects for one measure. The tempo elements should be stor...
Definition: ff_othercollection.h:1518
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:143
bool LoadStandardList(twobyte number)
Loads all 4 required score lists for a "standard" score lists (used by repeats etc).
Definition: ff_othercollection.h:1838
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1805
twobyte GetMeasure() const
Sets the measure that the separate placement should be matched to.
Definition: ff_other.h:16372
Class for a page-connected text block.
Definition: ff_other.h:15674
bool AssignAllMeasures(FCMeasures *pAllMeasures)
Assigns a reference table for all the measures in the current document. This will substantionally spe...
Definition: finaleframework.cpp:13892
bool ClearItemAt(int index)
Deletes the object at the index position and disposes the object. Index is 0-based.
Definition: finaleframework.cpp:12821
int GetMemoryBlockSize()
Returns the total number of bytes that all the loaded incis requires.
Definition: finaleframework.cpp:13480
Class for a text block.
Definition: ff_other.h:15039
The class for an articulation definition. On Finale 2012 and above, this class supports the Unicode c...
Definition: ff_other.h:11535
void RebuildNextHorizontalPositions()
Rebuilds all the "next horizontal measure positions" in the beat chart chain.
Definition: ff_othercollection.h:1484
Text used for the name of a percussion layout. Please refer to the FCPercussionLayoutNotes class...
Definition: ff_text.h:214
void MakeMemoryBlockCollection(twobyte *pBuffer, int size, CMPER cmper)
Creates items out of a memory block.
Definition: finaleframework.cpp:13500
bool LoadCategoryList(twobyte number)
Loads all 4 required score lists for a "Category" score lists (as defined in the Category Designer)...
Definition: ff_othercollection.h:1862
Base class for "other" data with incis of the __FCInciOther class (where it's common to collect all i...
Definition: ff_basecollection.h:606
Collection class for FCTextRepeatDef class objects.
Definition: ff_othercollection.h:1197
void SetHorizontalPosition(Evpu16 position)
Sets the position of the beat chart element.
Definition: ff_other.h:22245
int LoadAllForRegion(FCMusicRegion *pRegion)
Loads all staves in the selection.
Definition: ff_othercollection.h:632
Collection class for FCPage class objects.
Definition: ff_othercollection.h:59
FCMeasureNumberRegion * FindMeasure(int measure)
Returns the first region in the collection that contains the measure number.
Definition: finaleframework.cpp:13660
FCPercussionLayoutNote * FindMidiNote(twobyte midinote, FCPercussionMapNotes *pMapNotes)
Returns the object in the collection that has a certain MIDI note, based on the percussion map...
Definition: ff_othercollection.h:1651
bool IsSharingStaffWith(FCSystemStaves *pOtherSystemStaves)
Returns true if at least one of the staves in the collection appears in the collection to compare aga...
Definition: ff_othercollection.h:652
The class for an instrument definition item (in the instrument list/Score Manager).
Definition: ff_other.h:22745
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1339
Collection class for FCFretInstrumentDef class objects.
Definition: ff_othercollection.h:1226
Browser class for FCMeasure class objects.
Definition: ff_browser.h:313
__FCBase()
The constructor.
Definition: ff_base.h:247
FCMetatoolAssignment * FindArticulationDef(FCArticulationDef *pDef)
Find a metatool assignment record in the collection by matching the articulation definition. This method will only work in the MTOOLMODE_ARTICULATION mode.
Definition: ff_othercollection.h:2345
bool Load(twobyte number)
Loads the text with the indicated text number.
Definition: finaleframework.cpp:3865
PDKFRAMEWORK_CLASSID
Constants for the GetClassID method.
Definition: ff_base.h:60
FCMeasureNumberRegion * FindByID(int theID)
Returns the region that matches a specific ID.
Definition: finaleframework.cpp:13670
eStaff GetStaff() const
Returns the 1-based staff number for this slot.
Definition: ff_other.h:6801
Class for a metatool key assignment.
Definition: ff_other.h:24423
FCTextBlock * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:898
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1534
Collection class for FCFreezeSystem class objects. LoadAll doesn't work for this class.
Definition: ff_othercollection.h:1080
Class for text repeat assignments to a measure. The assignment is connected with a FCTextRepeatDef de...
Definition: ff_other.h:19723
Collection class for FCMeasure class objects.
Definition: ff_othercollection.h:189
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1573
void SetCustomTag(EXTAG tag)
Sets a custom Enigma tag for the elements of the collection.
Definition: ff_basecollection.h:524
The class for a fretboard style definition, which reflects the content the "Fretboard Style" dialog b...
Definition: ff_other.h:20547
Definition: ff_other.h:24439
SEPARATEPLACEMENT_MODES
Modes for which placement type to load.
Definition: ff_other.h:16281
Collection class for FCChordSuffixElement class objects, usually created with FCChord:CreateChordSuff...
Definition: ff_othercollection.h:1332
twobyte GetEndStaff()
Returns the staff of the end staff in the collection, if any.
Definition: ff_othercollection.h:579
Class that stores one "inci" of a staff list (for a system or for the global list of staves)...
Definition: ff_other.h:6706
Class for a text expression definition.
Definition: ff_other.h:13603
bool IsShapeExpressionDef() const
Returns if an expression metatool is connected to a shape expression definition, or not...
Definition: ff_other.h:24644
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1065
Class that handles separate placement for repeats.
Definition: ff_other.h:16251
FCGuide * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:2099
__FCCollection()
The constructor.
Definition: ff_basecollection.h:60
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:892
int LoadScrollView()
A shortcut method to load the scroll view staves.
Definition: ff_othercollection.h:592
Class for tablature instruments definitions.
Definition: ff_other.h:23746
CMPER GetPercussionLibraryID()
Returns the percussion layout ID.
Definition: ff_othercollection.h:1576
bool IsStaffIncluded(twobyte staffnumber)
Returns true if the staff number is with the region.
Definition: finaleframework.cpp:14607
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1698
Simple collection class for FCNumber class objects.
Definition: ff_basecollection.h:329
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1388
FCInstrumentDefs()
The constructor.
Definition: ff_othercollection.h:1693
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:807
FCMeasureNumberRegions()
The constructor.
Definition: ff_othercollection.h:343
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_othercollection.h:1115
FCMetatoolAssignments()
The constructor.
Definition: ff_othercollection.h:2178
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1422
FCTextRepeatDefs()
The constructor.
Definition: ff_othercollection.h:1209
Class that represent one part in a document. The class also provides methods to switch between parts...
Definition: ff_parts.h:67
bool IsStaffElementDisplayed(eStaff staffno, bool score, FCSystemStaves *pSystemStaves)
Checks if the staff is marked to display items. Forced state is not checked.
Definition: ff_othercollection.h:1914
Base class for "other" data without incis (inci always 0.)
Definition: ff_basecollection.h:681
FCSeparatePlacements()
the constructor.
Definition: ff_othercollection.h:929
FCMultiMeasureRests()
The constructor.
Definition: ff_othercollection.h:1063
The class for one single beat chart element.
Definition: ff_other.h:22059
PERC_NOTE_TYPE GetRawNoteType() const
Returns the "raw" percussion note type. This includes the order ID, for notes that share the same typ...
Definition: finaleframework.cpp:12095
Evpu16 GetHorizontalPosition() const
Returns the position in the measure for the element (in EVPUs).
Definition: ff_other.h:22136
Collection class for FCExecutableShapeDef class objects.
Definition: ff_othercollection.h:1285
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:2181
Efix32 GetPosition() const
Returns the position for a guide, if EFIXes.
Definition: ff_other.h:24372
Class for a shape definition (as in Finale's Shape selection dialog).
Definition: ff_other.h:2109
int LoadStudioView()
A shortcut method to load the Studio View staves.
Definition: ff_othercollection.h:605
The class for a guide in the document.
Definition: ff_other.h:24351
FCMetatoolAssignment * FindShapeExpressionDef(FCShapeExpressionDef *pDef)
Find a metatool assignment record in the collection by matching the shape expression definition...
Definition: ff_othercollection.h:2301
Definition: ff_other.h:16287
FCMetatoolAssignment * FindStaffStyleDef(FCStaffStyleDef *pDef)
Find a metatool assignment record in the collection by matching the staff style definition. This method will only work in the MTOOLMODE_STAFFSTYLE mode.
Definition: finaleframework.cpp:14176
FCGuide * AddGuide(Efix32 position)
Adds a new guide to the collection.
Definition: ff_othercollection.h:2148
void AssureSorted()
Makes sure that that elements are sorted in measure position order. If they are not in order...
Definition: finaleframework.cpp:14038
int GetCount() const
Returns the number of elements of the collection.
Definition: ff_basecollection.h:86
Class for expression assignments to a measure/staff.
Definition: ff_other.h:16483
bool IsMeasureIncluded(int measure)
Returns true if the measure is included in any of the measure number regions.
Definition: finaleframework.cpp:13816
FCSystemStaff * FindTempoTapStaff()
Finds the Tempo Tap Staff in the collection and returns the pointer to it.
Definition: ff_othercollection.h:558
FCString * CreateString()
Creates a string object with the loaded text. If the string doesn't exist (or if it's empty)...
Definition: finaleframework.cpp:3949
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:864
FCPageGraphics()
The constructor.
Definition: ff_othercollection.h:1178
FCExpression * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.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_othercollection.h:683
The class for a staff system on a page.
Definition: ff_other.h:3548
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:745
Collection class for FCMetatoolAssignment class objects.
Definition: ff_othercollection.h:2163
FCMetatoolAssignment * FindTuplet(FCTuplet *pTuplet)
Find a metatool assignment record in the collection by matching a tuplet. This method will only work ...
Definition: finaleframework.cpp:14163
FCTextRepeat * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1277
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:772
bool GetInitElement() const
Returns true if it's the first (init) element in the chart. The init element defines the full beat ch...
Definition: ff_other.h:22199
void SetWidth(Evpu16 width)
Sets the width of the beat chart element.
Definition: ff_other.h:22232
The class for a text repeat definition.
Definition: ff_other.h:19396
Class for staff style assignments to a staff.
Definition: ff_other.h:18060
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1039
FCCategoryDef * FindName(FCString *pString)
Finds the first category object with a specific category name.
Definition: ff_othercollection.h:697
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1292
Class for allotment data (in the Document Options).
Definition: ff_other.h:18752
static bool Delete(CMPER staffid)
Static method to delete a specific staff from the document.
Definition: finaleframework.cpp:13649
FCPageGraphic * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:1188
Utility class to provide a mechanism for loading blob data blocks consisting of more than 1 inci...
Definition: ff_other.h:155
FCChordSuffixElement * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1345
Collection class for FCFretboardStyleDef class objects.
Definition: ff_othercollection.h:1355
int GetIndexOf(__FCBase *pObject)
Returns the 0-based order index for the object within the collection.
Definition: finaleframework.cpp:12805
bool RebuildAfter(int index, bool updateinitrecord=false)
Rebuilds the beat chart elements, based on correct "Next Measure Position" info.
Definition: ff_othercollection.h:1452
static CMPER Append()
Creates a new staff to the document. The created staff is automatically inserted in the layout...
Definition: finaleframework.cpp:13638
A specialized collection class that has the purpose to handle the different score lists that a docume...
Definition: ff_othercollection.h:1819
void SetMode(FCStaffList::STAFFLIST_MODES mode)
Sets the list of data that should be used when reading/saving the records.
Definition: ff_othercollection.h:1752
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1158
int LoadAllInCellLayout(FCCell *pCell, FCStaffSystems *pStaffSystems)
Loads all expressions that belongs to a specific cell in a layout. This method will also handle top/b...
Definition: finaleframework.cpp:13923
int LoadAllForMode(FCMetatoolAssignment::METATOOL_MODES mode)
Definition: ff_othercollection.h:2240
The class that reference a cell (one measure on one staff) in the musical "grid". ...
Definition: ff_cell.h:17
Contains a clef change inside a cell. This is an item member in a FCCellClefChanges collection (creat...
Definition: ff_other.h:24169
FCString * CreateNameString()
Loads and creates a string with the name of the full percussion layout.
Definition: ff_othercollection.h:1592
FCFretInstrumentDefs()
The constructor.
Definition: ff_othercollection.h:1238
FCPercussionLayoutNote * FindNoteType(PERC_NOTE_TYPE notetype)
Returns the object in the collection that matches a certain percussion note type. ...
Definition: ff_othercollection.h:1631
EPARTID GetID() const
Returns the internal part ID.
Definition: ff_parts.h:163
Definition: ff_other.h:24442
FCTextExpressionDefs()
The constructor.
Definition: ff_othercollection.h:743
Base class for the Finale Framework classes.
Definition: ff_base.h:47
FCMetatoolAssignment::METATOOL_MODES GetMode() const
Returns the loading mode of the object.
Definition: ff_othercollection.h:2221
FCArticulationDef * GetItemAt(int index)
Override method for __FCCollection::GetItemAt.
Definition: ff_othercollection.h:496
FCPage * GetItemAt(int index)
Definition: ff_othercollection.h:80
An object that contains one staff list section (out of 4). Before data is loaded/saved, the SetMode() method must be called.
Definition: ff_other.h:23363
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_othercollection.h:1389
virtual bool SaveAll()
Saves all data in the collection.
Definition: ff_basecollection.h:506
static bool Insert(int measureno, int count, bool updatelayout)
Insert measures in the document.
Definition: ff_othercollection.h:265
FCShapeDefs()
The constructor.
Definition: ff_othercollection.h:1314
FCExpressions()
The constructor.
Definition: ff_othercollection.h:799
virtual const PDKFRAMEWORK_CLASSID GetClassID()
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has...
Definition: ff_othercollection.h:1363
Collection class for FCCategoryDef class objects.
Definition: ff_othercollection.h:669
FCShapeDef * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1322
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1362
The class for a measure (the full vertical measure stack) in the document. It maps the Measure Attrib...
Definition: ff_other.h:4052
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1271
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:530
Class that contains the guides for a document. This class is handled through the FCGridsGuidesPrefs c...
Definition: ff_othercollection.h:2065
Collection class for FCTextExpressionDef class objects.
Definition: ff_othercollection.h:732
Collection class for FCSystemStaff class objects, which contains the list of staves available within ...
Definition: ff_othercollection.h:511
bool IsEqualString(FCString *pString)
Returns true if the string is identical with the parameter. (FCString string version.)
Definition: finaleframework.cpp:1564
FCStaff * GetItemAt(int index)
Override method for __FCCollection::GetItemAt.
Definition: ff_othercollection.h:298
Class for a multi-staff instrument defined in the Score Manager.
Definition: ff_other.h:18540
twobyte CalcMidiNote(FCPercussionMapNotes *pNotes)
Calculates the MIDI note based on the percussion map. No mapping to the order ID is made...
Definition: finaleframework.cpp:12312
The class for a staff in the score. It is also a base class for staff styles.
Definition: ff_other.h:10912
twobyte GetKeystroke() const
Returns the keystroke to where the metatool is saved.
Definition: finaleframework.cpp:12618
bool IsValid()
Vertifies that the beat chart collection is syntactically correct.
Definition: finaleframework.cpp:13989
Collection class for FCPageGraphic class objects.
Definition: ff_othercollection.h:1167
Base class for all data-related classes (that handles Finale data).
Definition: ff_base.h:628
FCArticulationDefs()
The constructor.
Definition: ff_othercollection.h:487
FCPageText * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:870
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1087
FCTempoElements()
The constructor.
Definition: ff_othercollection.h:1530
Collection class for FCPercussionLayoutNote class objects (=a percussion layout). ...
Definition: ff_othercollection.h:1555
Definition: ff_other.h:24433
FCShapeExpressionDefs()
The constructor.
Definition: ff_othercollection.h:770
FCMeasure * GetItemAt(int index)
Definition: ff_othercollection.h:209
FCBeatChartElements()
The constructor.
Definition: ff_othercollection.h:1418
Simple class to put numbers into collections.
Definition: ff_base.h:3840
bool NeedUpdateLayout()
Returns true if the loaded systems indicate that the layout needs to be updated.
Definition: finaleframework.cpp:13585
Collection class for FCTextBlock class objects.
Definition: ff_othercollection.h:879
void SetMode(STAFFLIST_MODES mode)
Sets the list of data that should be used when reading/saving the record.
Definition: ff_other.h:23447
FCSeparatePlacement * GetItemAt(int index)
Overridden version of GetItemAt.
Definition: ff_othercollection.h:981
FCSeparatePlacement * AssureStaffPlacement(eStaff staff)
Returns the FCSeparatePlacement record that references the staff location. If the location doesn't ex...
Definition: finaleframework.cpp:14048
bool ContainsStaff(CMPER staffno)
Returns true if the staff is available in the multi-instrument group.
Definition: ff_other.h:18604
FCShapeExpressionDef * GetItemAt(int index)
Overridden method version of GetItemAt().
Definition: ff_othercollection.h:778
twobyte GetStartStaff()
Returns the staff of the first staff in the collection, if any.
Definition: ff_othercollection.h:567
virtual int LoadAllInCell(FCCell *pCell)
Loads all expressions that belongs to a specific cell.
Definition: finaleframework.cpp:13904
FCPageTexts()
The constructor.
Definition: ff_othercollection.h:862
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:480
FCMultiStaffInstrument * FindStaff(CMPER staffno)
Returns the FCMultiStaffInstrument element in which staff number was found.
Definition: ff_othercollection.h:1127
STAFFLIST_MODES
Modes for loading/saving the staff list.
Definition: ff_other.h:23387
int LoadStaffSet(int staffsetnumber)
A shortcut method to loads a specific (1-based) staff set (if it exists).
Definition: ff_othercollection.h:621
Collection class for FCMeasureNumberRegion class objects.
Definition: ff_othercollection.h:327
void KeepOnlyMeasure(eMeas meas)
Filters out all measure that don't belong to a specific measure.
Definition: ff_othercollection.h:995
CMPER GetDefID() const
Returns the 1-based (or 0-based) definition ID for supported object types.
Definition: ff_other.h:24613
FCCategoryDefs()
The constructor.
Definition: ff_othercollection.h:679
FCCategoryDef * FindID(twobyte catID)
Finds the category object with a specific category ID.
Definition: ff_othercollection.h:715
Class that provides storage for text. This is to achieve platform-transparent text handling...
Definition: ff_base.h:1473
int LoadAllForRegion(FCMusicRegion *pRegion)
Loads all expressions in the region. Partial measures are taken into account.
Definition: finaleframework.cpp:13962
static bool InsertBlank(int beforepageno, bool updatelayout)
Inserts one blank page in the layout. All pages appearing after the insertion point are pushed away...
Definition: finaleframework.cpp:13555
Collection class for FCPageText class objects.
Definition: ff_othercollection.h:851
FCMetatoolAssignment * FindKeystroke(twobyte keystrokeslot)
Find a metatool assignment record in the collection by searching for the keystroke.
Definition: ff_othercollection.h:2262
Collection specialized on handling all incis (the traditional 12-byte type) from a cmper...
Definition: ff_othercollection.h:20
FCCategoryDef * GetItemAt(int index)
Override method for __FCCollection::GetItemAt.
Definition: ff_othercollection.h:689
PERC_NOTE_TYPE GetNoteType() const
Returns the percussion note type.
Definition: finaleframework.cpp:12107
FCMetatoolAssignment * FindTextExpressionDef(FCTextExpressionDef *pDef)
Find a metatool assignment record in the collection by matching the text expression definition...
Definition: ff_othercollection.h:2323
Collection class for FCBeatChartElement class objects (which is a beat chart for a measure)...
Definition: ff_othercollection.h:1406
FCMultiMeasureRest * GetItemAt(int index)
Overloaded version of GetItemAt().
Definition: ff_othercollection.h:1071
bool IsLoaded()
Returns if the data for all score lists is loaded or not.
Definition: ff_othercollection.h:1898
FCStaffSystems()
The constructor.
Definition: ff_othercollection.h:139
FCPercussionLayoutNote * FindRawNoteType(PERC_NOTE_TYPE notetype)
Returns the object in the collection that matches a certain percussion note type. This makes a match ...
Definition: ff_othercollection.h:1614
FCStaffList * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:1811
bool IncludesStaff(twobyte staffnumber)
Returns true if the staff number is included in the staff list.
Definition: ff_other.h:23622
FCStaffSystems * GetCurrentPartStaffSystems()
Returns the full FCStaffSystem collection for the part that's currently in editing focus...
Definition: ff_othercollection.h:1977
void SetMode(FCMetatoolAssignment::METATOOL_MODES mode)
Sets the mode for all the objects that should be loaded.
Definition: ff_othercollection.h:2198
FCMultiStaffInstruments()
The constructor.
Definition: ff_othercollection.h:1110
Class that encapsulates EREGION and provides additional functionality to region handling.
Definition: ff_region.h:24
Class for a staff style definition.
Definition: ff_other.h:17040
The class for a single tempo change in the Tempo Tool. The tempo elements should be stored in measure...
Definition: ff_other.h:22334
The class representing a physical page in Finale.
Definition: ff_other.h:3240
twobyte * CreateMemoryBlock()
Creates a memory block, containing all the incis.
Definition: finaleframework.cpp:13485
Collection class for FCExpression class objects.
Definition: ff_othercollection.h:788
FCSystemStaff * GetItemAt(int index)
Overridden GetItemAt() method.
Definition: ff_othercollection.h:528
static bool Append(int count, bool updatelayout)
Appends measures to the end of the document.
Definition: ff_othercollection.h:245
twobyte GetID() const
Returns the internal category ID. This is a read-only value.
Definition: ff_other.h:12953
FCCellClefChanges()
The constructor.
Definition: ff_othercollection.h:2039
virtual int LoadAll()
Loads all available data into the collection.
Definition: finaleframework.cpp:12977
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1240
FCStaffStyleAssign * GetItemAt(int index)
Overridden GetItemAt method.
Definition: ff_othercollection.h:1042
Collection class for FCStaffList class objects. The SetMode() method should be used before any loadin...
Definition: ff_othercollection.h:1719
Collection class for FCSeparatePlacement records, that handles separate placements in repeats...
Definition: ff_othercollection.h:913
void LoadRegion(FCMusicRegion *pRegion)
Loads the measures that belongs a specific region.
Definition: finaleframework.cpp:13618
Collection class for FCMultiStaffInstrument class objects.
Definition: ff_othercollection.h:1099
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1316
FCFretboardStyleDef * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1369
FCTempoElement * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1540
Collection class for FCStaff class objects.
Definition: ff_othercollection.h:278
int CalcStringFromNumber(int measure, FCString *pString)
Formats the printed measure number for a specific measure in the document.
Definition: finaleframework.cpp:13680
FCNumber * FindInt(int intvalue)
Returns the first object that contains the integer value.
Definition: ff_basecollection.h:345
int GetCount()
Method to get the number of elements without loading all data into a collection.
Definition: finaleframework.cpp:14291
Class that stores one record of a chord suffix definition.
Definition: ff_other.h:20248
A lookup class designed for collecting full staff layouts for different parts in the same document in...
Definition: ff_othercollection.h:1964
twobyte CalcMidiRawNote(FCPercussionMapNotes *pNotes)
Calculates the MIDI note based on the percussion map. The order ID must match.
Definition: finaleframework.cpp:12298
void Add(__FCBase *pNewItem)
Adds an element to the end of the collection.
Definition: finaleframework.cpp:12756
virtual int LoadAllForItem(CMPER cmper)
Loads all subrecords (incis) for a specific item (cmper) and adds them as items to the collection...
Definition: finaleframework.cpp:13154
FCMetatoolAssignment * GetItemAt(int index)
Definition: ff_othercollection.h:2187
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:26
void SetMode(FCSeparatePlacement::SEPARATEPLACEMENT_MODES mode)
Sets the list of data that should be used when reading/saving the records.
Definition: ff_othercollection.h:952
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:943
bool IsStringUnique(FCString *pString)
Returns true if the "printed" measure number string has no ambiguity among the measure number regions...
Definition: finaleframework.cpp:13825
virtual int LoadAll()
Overloaded LoadAll() that scans through the metatool key ranges.
Definition: finaleframework.cpp:14188
static bool AppendBlank(bool updatelayout)
Adds one blank page to the end of the layout.
Definition: finaleframework.cpp:13537
FCGuide * FindClosest(Efix32 testposition, Efix32 gravityzonesize)
Finds the nearest guide that also matches the gravity zone size.
Definition: ff_othercollection.h:2113
METATOOL_MODES
Definition: ff_other.h:24427
Collection class for FCArticulationDef class objects.
Definition: ff_othercollection.h:473
FCStaffStyleDef * GetItemAt(int index)
Overridden GetItemAt method.
Definition: ff_othercollection.h:1023
FCStaffSystem * GetItemAt(int index)
Overridden method for __FCCollection::GetItemAt.
Definition: ff_othercollection.h:149
int CountRegionsForMeasure(int measure)
Returns the number of regions that the 1-based measure number is part of.
Definition: finaleframework.cpp:13882
FCFretInstrumentDef * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1246
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1211
Data class for the global clef definitions.
Definition: ff_globals.h:42
Collection class for FCAllotment class objects.
Definition: ff_othercollection.h:1151
Collection class for FCStaffSystem class objects. A collection typically contains all staff systems f...
Definition: ff_othercollection.h:127
Collection class for FCPercussionMapNote class objects, used by the FCInstrumentDef class...
Definition: ff_other.h:22604
twobyte GetInstrumentList() const
Returns the instrument list number for the selection.
Definition: ff_region.h:422
bool LoadAssignmentList(twobyte number)
Loads all 4 required score lists for an "assignment" score lists.
Definition: ff_othercollection.h:1882
FCBeatChartElement * FindMeasurePos(TimeEdu32 durationpos)
Finds the first beat chart element with the given duration position.
Definition: ff_othercollection.h:1434
void SetNextHorizontalPosition(Evpu16 value)
Sets the next position in the measure.
Definition: ff_other.h:22259
FCMetatoolAssignment * FindDefID(CMPER defID)
Find a metatool assignment record in the collection by searching for the definition ID...
Definition: ff_othercollection.h:2281
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1114
FCOtherInci * GetItemAt(int index)
Overridden version of GetItemAt().
Definition: ff_othercollection.h:46
FCTextRepeats()
The constructor.
Definition: ff_othercollection.h:1269
virtual int LoadAllForItem(CMPER cmper)
Overridden version of LoadAllForItem.
Definition: ff_othercollection.h:1579
TimeEdu32 GetMeasurePos() const
Return the duration reference position for the element.
Definition: ff_other.h:22126
FCStaffSystem * FindMeasureNumber(eMeas measurenumber)
Tries to finds the system that contains the measure.
Definition: finaleframework.cpp:13595
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:1182
Collection class for FCStaffStyleDef class objects.
Definition: ff_othercollection.h:1013
Base class for all collection classes. A collection is a storage that can store multiple objects of s...
Definition: ff_basecollection.h:24
The class for an executable shape definition.
Definition: ff_other.h:20161
int CalcNumberFromString(FCString *pString)
Returns the 1-based number based on the supplied printed string.
Definition: finaleframework.cpp:13744
Collection class for FCInstrumentDef class objects.
Definition: ff_othercollection.h:1681
Collection class for FCCellClefChange class objects, containing all mid-clef changes in a cell...
Definition: ff_othercollection.h:2026
FCTextRepeatDef * GetItemAt(int index)
Overridden version of GetItemAt()
Definition: ff_othercollection.h:1217
FCSystemStaff * FindStaff(twobyte staffno)
Finds a specific staff in the collection and returns the pointer to it.
Definition: ff_othercollection.h:539
virtual const char * ClassName()
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child...
Definition: ff_othercollection.h:203