JBoolean CMArray2DTable::ExtractInputData ( const JPoint& cell ) { JXInputField* input = NULL; const JBoolean ok = GetXInputField(&input); assert( ok ); const JString& text = input->GetText(); if (!text.IsEmpty()) { if (text != itsOrigEditValue) { const JString name = itsArrayDir->GetExpression(cell); (CMGetLink())->SetValue(name, text); } return kJTrue; } else { return kJFalse; } }
void JXStyleTable::SetAllCellStyles ( const JFontStyle& style ) { itsStyleData->SetAllCellStyles(style); JXInputField* input = NULL; if (IsEditing() && GetXInputField(&input)) { input->SetFontStyle(style); } }
void JXStyleTable::SetFont ( const JCharacter* name, const JSize size ) { itsStyleData->SetFont(name, size); JXInputField* input = NULL; if (GetXInputField(&input)) { input->SetFontName(name); input->SetFontSize(size); } }
void JXStyleTable::SetCellStyle ( const JPoint& cell, const JFontStyle& style ) { itsStyleData->SetCellStyle(cell, style); JPoint editCell; JXInputField* input = NULL; if (GetEditedCell(&editCell) && editCell == cell && GetXInputField(&input)) { input->SetFontStyle(style); } }