~ubuntu-branches/ubuntu/lucid/libwpd/lucid

« back to all changes in this revision

Viewing changes to src/lib/WP5ContentListener.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2007-01-11 15:15:57 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070111151557-rn1kysabqbccx3as
Tags: 0.8.8-2
run make check for stream check; build-depend on libcppunit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        appendUCS4(m_parseState->m_textBuffer, (uint32_t)character);
70
70
}
71
71
 
72
 
void WP5ContentListener::insertTab(const uint8_t tabType, float tabPosition)
 
72
void WP5ContentListener::insertTab(const uint8_t /* tabType */, float /* tabPosition */)
73
73
{
74
74
        if (!m_ps->m_isSpanOpened)
75
75
                _openSpan();
127
127
        }
128
128
}
129
129
 
130
 
void WP5ContentListener::addTableColumnDefinition(const uint32_t width, const uint32_t leftGutter, const uint32_t rightGutter,
131
 
                                                                                   const uint32_t attributes, const uint8_t alignment)
 
130
void WP5ContentListener::addTableColumnDefinition(const uint32_t width, const uint32_t /* leftGutter */,
 
131
                                                const uint32_t /* rightGutter */, const uint32_t attributes, const uint8_t alignment)
132
132
{
133
133
        if (!isUndoOn())
134
134
        {
344
344
        }
345
345
}
346
346
 
347
 
void WP5ContentListener::setFont(const WPXString fontName, const float fontSize)
 
347
void WP5ContentListener::setFont(const WPXString &fontName, const float fontSize)
348
348
{
349
349
        if (!isUndoOn())
350
350
        {
354
354
        }
355
355
}
356
356
 
357
 
void WP5ContentListener::insertNoteReference(const WPXString noteReference)
 
357
void WP5ContentListener::insertNoteReference(const WPXString &noteReference)
358
358
{
359
 
        if (!isUndoOn())
 
359
        if (!isUndoOn() && !m_ps->m_isNote)
360
360
        {
361
361
                m_parseState->m_noteReference = noteReference;
362
362
        }
390
390
        }
391
391
}
392
392
 
393
 
void WP5ContentListener::_handleSubDocument(const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice)
 
393
void WP5ContentListener::_handleSubDocument(const WPXSubDocument *subDocument, const bool isHeaderFooter,
 
394
                                WPXTableList /* tableList */, int /* nextTableIndice */)
394
395
{
395
396
        // save our old parsing state on our "stack"
396
397
        WP5ContentParsingState *oldParseState = m_parseState;
426
427
        m_parseState = oldParseState;
427
428
}
428
429
 
429
 
void WP5ContentListener::headerFooterGroup(const uint8_t headerFooterType, const uint8_t occurenceBits, WP5SubDocument *subDocument)
 
430
void WP5ContentListener::headerFooterGroup(const uint8_t /* headerFooterType */, const uint8_t /* occurenceBits */,
 
431
                                                WP5SubDocument *subDocument)
430
432
{
431
433
        if (subDocument)
432
434
                m_subDocuments.push_back(subDocument);
433
435
}       
434
436
 
435
 
void WP5ContentListener::setDefaultFont(const WPXString fontName, const float fontSize)
 
437
void WP5ContentListener::setDefaultFont(const WPXString &fontName, const float fontSize)
436
438
{
437
439
        m_defaultFontName = fontName;
438
440
        m_defaultFontSize = fontSize;