void AbstractOperationDay::setDirtyStateConnection( OperationTable *table )
{
	if( !table )
		return;

	connect( table, SIGNAL( changedDirtyState( bool ) ), this, SLOT( changeDirtyState( bool ) ) );
        connect( mainTable(), SIGNAL(cellClicked(int,int)), this, SLOT(saveCurrent(int, int)));
}
Exemple #2
0
void KDReports::Report::setTableBreakingPageOrder( TableBreakingPageOrder pageOrder )
{
    if (d->m_reportMode != SpreadSheet) {
        qWarning("setTableBreakingPageOrder is only supported in SpreadSheet mode");
    } else {
        mainTable()->setTableBreakingPageOrder(pageOrder);
    }
}
Exemple #3
0
KDReports::Report::TableBreakingPageOrder KDReports::Report::tableBreakingPageOrder() const
{
    if (d->m_reportMode != SpreadSheet) {
        qWarning("tableBreakingPageOrder is only supported in SpreadSheet mode");
        return DownThenRight;
    } else {
        return mainTable()->tableBreakingPageOrder();
    }
}
Exemple #4
0
void KDReports::Report::setReportMode(ReportMode reportMode)
{
    if (d->m_reportMode != reportMode) {
        d->m_reportMode = reportMode;
        delete d->m_layout;
        switch(reportMode) {
        case WordProcessing:
            d->m_layout = new TextDocReportLayout(this);
            break;
        case SpreadSheet:
            SpreadsheetReportLayout* sslayout = new SpreadsheetReportLayout(this);
            d->m_layout = sslayout;
            mainTable()->setLayout(sslayout);
            break;
        };
    }
}
void AbstractOperationDay::saveCurrent( int row, int column )
{
    lastRow = mainTable()->currentRow();
    lastColumn = mainTable()->currentColumn();
    lastId = mainTable()->getLongId( lastRow );
}