diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 18:11:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 19:23:45 +0900 |
commit | 0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch) | |
tree | 962f6ea26d1fab041fe3476fbbd64132ab8ada1b /lib/kofficecore | |
parent | cb258b7e39ffa5662b57e7d9006e69172a378d7e (diff) | |
download | koffice-r14.1.4.tar.gz koffice-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'lib/kofficecore')
-rw-r--r-- | lib/kofficecore/KoDocument.cpp | 20 | ||||
-rw-r--r-- | lib/kofficecore/KoDocumentChild.cpp | 2 | ||||
-rw-r--r-- | lib/kofficecore/KoDocumentIface.h | 4 | ||||
-rw-r--r-- | lib/kofficecore/KoMainWindow.h | 10 | ||||
-rw-r--r-- | lib/kofficecore/KoPicture.h | 2 | ||||
-rw-r--r-- | lib/kofficecore/KoQueryTrader.h | 8 | ||||
-rw-r--r-- | lib/kofficecore/KoView.cpp | 6 | ||||
-rw-r--r-- | lib/kofficecore/KoView.h | 2 | ||||
-rw-r--r-- | lib/kofficecore/tests/kodomtest.cpp | 4 |
9 files changed, 29 insertions, 29 deletions
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp index 147b2ed1c..4cf569f68 100644 --- a/lib/kofficecore/KoDocument.cpp +++ b/lib/kofficecore/KoDocument.cpp @@ -230,7 +230,7 @@ KoDocument::KoDocument( TQWidget * parentWidget, const char *widgetName, TQObjec s_documentList->append(this); d = new Private; - m_bEmpty = TRUE; + m_bEmpty = true; connect( &d->m_autoSaveTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotAutoSave() ) ); setAutoSave( s_defaultAutoSave ); d->m_bSingleViewMode = singleViewMode; @@ -825,7 +825,7 @@ void KoDocument::paintChild( KoDocumentChild *child, TQPainter &painter, KoView manager->activeWidget() == (TQWidget *)view ) ) { // painter.setClipRegion( rgn ); - painter.setClipping( FALSE ); + painter.setClipping( false ); painter.setPen( black ); painter.fillRect( -5, -5, w + 10, 5, white ); @@ -855,7 +855,7 @@ void KoDocument::paintChild( KoDocumentChild *child, TQPainter &painter, KoView painter.fillRect( w, h / 2 - 3, 5, 5, color ); } - painter.setClipping( TRUE ); + painter.setClipping( true ); } } } @@ -891,7 +891,7 @@ bool KoDocument::saveChildren( KoStore* _store ) { //kdDebug(30003) << "KoDocument::saveChildren internal url: /" << i << endl; if ( !childDoc->saveToStore( _store, TQString::number( i++ ) ) ) - return FALSE; + return false; if (!isExporting ()) childDoc->setModified( false ); @@ -1968,7 +1968,7 @@ void KoDocument::setModified( bool mod ) KParts::ReadWritePart::setModified( mod ); if ( mod ) { - m_bEmpty = FALSE; + m_bEmpty = false; } else { // When saving this document, all non-external child documents get saved too. TQPtrListIterator<KoDocumentChild> it = children(); @@ -2278,15 +2278,15 @@ void KoDocument::setupXmlReader( TQXmlSimpleReader& reader, bool namespaceProces { if ( namespaceProcessing ) { - reader.setFeature( "http://xml.org/sax/features/namespaces", TRUE ); - reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", FALSE ); + reader.setFeature( "http://xml.org/sax/features/namespaces", true ); + reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", false ); } else { - reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE ); - reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", TRUE ); + reader.setFeature( "http://xml.org/sax/features/namespaces", false ); + reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", true ); } - reader.setFeature( "http://trolltech.com/xml/features/report-whitespace-only-CharData", TRUE ); + reader.setFeature( "http://trolltech.com/xml/features/report-whitespace-only-CharData", true ); } diff --git a/lib/kofficecore/KoDocumentChild.cpp b/lib/kofficecore/KoDocumentChild.cpp index 90a992801..f68378166 100644 --- a/lib/kofficecore/KoDocumentChild.cpp +++ b/lib/kofficecore/KoDocumentChild.cpp @@ -158,7 +158,7 @@ bool KoDocumentChild::load( const TQDomElement& element, bool uppercase ) return false; } - bool brect = FALSE; + bool brect = false; TQDomNode n = element.firstChild(); for( ; !n.isNull(); n = n.nextSibling() ) { diff --git a/lib/kofficecore/KoDocumentIface.h b/lib/kofficecore/KoDocumentIface.h index 546859ce3..46b2b42c7 100644 --- a/lib/kofficecore/KoDocumentIface.h +++ b/lib/kofficecore/KoDocumentIface.h @@ -64,12 +64,12 @@ k_dcop: void openURL( TQString url ); /** - * @return TRUE is the document is still loading + * @return true is the document is still loading */ bool isLoading(); /** - * @return TRUE is the document has been modified + * @return true is the document has been modified */ bool isModified(); diff --git a/lib/kofficecore/KoMainWindow.h b/lib/kofficecore/KoMainWindow.h index 9befc71e8..06269db12 100644 --- a/lib/kofficecore/KoMainWindow.h +++ b/lib/kofficecore/KoMainWindow.h @@ -106,7 +106,7 @@ public: void showToolbar( const char * tbName, bool shown ); /** - * @return TRUE if the toolbar @p tbName is visible + * @return true if the toolbar @p tbName is visible */ bool toolbarIsVisible(const char *tbName); @@ -130,7 +130,7 @@ public: * Load the desired document and show it. * @param url the URL to open * - * @return TRUE on success. + * @return true on success. */ virtual bool openDocument( const KURL & url ); @@ -309,11 +309,11 @@ protected: // protected methods are mostly for koshell, it's the only one derivi /** * Saves the document, asking for a filename if necessary. * - * @param saveas if set to TRUE the user is always prompted for a filename + * @param saveas if set to true the user is always prompted for a filename * - * @param silent if set to TRUE rootDocument()->setTitleModified will not be called. + * @param silent if set to true rootDocument()->setTitleModified will not be called. * - * @return TRUE on success, false on error or cancel + * @return true on success, false on error or cancel * (don't display anything in this case, the error dialog box is also implemented here * but restore the original URL in slotFileSaveAs) */ diff --git a/lib/kofficecore/KoPicture.h b/lib/kofficecore/KoPicture.h index 63dd9c596..83481d333 100644 --- a/lib/kofficecore/KoPicture.h +++ b/lib/kofficecore/KoPicture.h @@ -194,7 +194,7 @@ public: TQImage generateImage(const TQSize& size); /** - * @return TRUE if the alpha channel processing has been enabled + * @return true if the alpha channel processing has been enabled */ bool hasAlphaBuffer() const; diff --git a/lib/kofficecore/KoQueryTrader.h b/lib/kofficecore/KoQueryTrader.h index 511bd9188..a9841fe64 100644 --- a/lib/kofficecore/KoQueryTrader.h +++ b/lib/kofficecore/KoQueryTrader.h @@ -46,7 +46,7 @@ public: KService::Ptr service() const { return m_service; } /** - * @return TRUE if the service pointer is null + * @return true if the service pointer is null */ bool isEmpty() const { return m_service == 0L; } @@ -61,7 +61,7 @@ public: TQStringList mimeTypes() const { return m_service->serviceTypes(); } /** - * @return TRUE if the document can handle the requested mimetype. + * @return true if the document can handle the requested mimetype. */ bool supportsMimeType( const TQString & _mimetype ) const { return mimeTypes().contains( _mimetype ); } @@ -149,13 +149,13 @@ public: TQString available; /** - * @return TRUE if the filter can import the requested mimetype. + * @return true if the filter can import the requested mimetype. */ bool imports( const TQString& _mimetype ) const { return ( import.contains( _mimetype ) ); } /** - * @return TRUE if the filter can export the requested mimetype. + * @return true if the filter can export the requested mimetype. */ bool exports( const TQString& _m ) const { return ( export_.contains( _m ) ); } diff --git a/lib/kofficecore/KoView.cpp b/lib/kofficecore/KoView.cpp index cca65063d..773a8fda3 100644 --- a/lib/kofficecore/KoView.cpp +++ b/lib/kofficecore/KoView.cpp @@ -563,7 +563,7 @@ void KoView::slotChildActivated( bool a ) // #### HACK // We want to delete as many views as possible and this // trick is used to go upwards in the view-tree. - emit activated( FALSE ); + emit activated( false ); } void KoView::slotChildChanged( KoDocumentChild *child ) @@ -658,12 +658,12 @@ bool KoView::isInOperation() const void KoView::beginOperation() { d->m_inOperation = true; - canvas()->setUpdatesEnabled(FALSE); + canvas()->setUpdatesEnabled(false); } void KoView::endOperation() { - canvas()->setUpdatesEnabled(TRUE); + canvas()->setUpdatesEnabled(true); d->m_inOperation = false; // canvas()->update(); diff --git a/lib/kofficecore/KoView.h b/lib/kofficecore/KoView.h index 49615973b..b6f5334dd 100644 --- a/lib/kofficecore/KoView.h +++ b/lib/kofficecore/KoView.h @@ -237,7 +237,7 @@ public: virtual void paintEverything( TQPainter &painter, const TQRect &rect, bool transparent = false ); /** - * @return TRUE if the document @p doc is represented in this view by + * @return true if the document @p doc is represented in this view by * some KoViewChild. * * This is just a convenience function for @ref #child. diff --git a/lib/kofficecore/tests/kodomtest.cpp b/lib/kofficecore/tests/kodomtest.cpp index f4f197a38..ef9c60793 100644 --- a/lib/kofficecore/tests/kodomtest.cpp +++ b/lib/kofficecore/tests/kodomtest.cpp @@ -119,8 +119,8 @@ int main( int argc, char** argv ) { "</o:document-content>\n"; TQDomDocument doc; //TQXmlSimpleReader reader; - //reader.setFeature( "http://xml.org/sax/features/namespaces", TRUE ); - //reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", FALSE ); + //reader.setFeature( "http://xml.org/sax/features/namespaces", true ); + //reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", false ); bool ok = doc.setContent( xml, true /* namespace processing */ ); assert( ok ); |