docufld.hxx (1d2dbeb0) | docufld.hxx (3b32dd21) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 494 unchanged lines hidden (view full) --- 503 SwDoc* mpDoc; 504public: 505 SwPostItFieldType(SwDoc* pDoc); 506 507 virtual SwFieldType* Copy() const; 508 SwDoc* GetDoc() {return mpDoc;}; 509}; 510 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 494 unchanged lines hidden (view full) --- 503 SwDoc* mpDoc; 504public: 505 SwPostItFieldType(SwDoc* pDoc); 506 507 virtual SwFieldType* Copy() const; 508 SwDoc* GetDoc() {return mpDoc;}; 509}; 510 |
511/*-------------------------------------------------------------------- 512 Beschreibung: PostIt 513 --------------------------------------------------------------------*/ | |
514 | 511 |
512// representation for a comment/an annotation |
|
515class SW_DLLPUBLIC SwPostItField : public SwField 516{ | 513class SW_DLLPUBLIC SwPostItField : public SwField 514{ |
517 String sTxt; // die Anmerkung 518 String sAuthor; // der Author 519 DateTime aDateTime; // Datum und Zeit der Anmerkung 520 OutlinerParaObject* mpText; 521 SwTextAPIObject* m_pTextObject; | 515 String msCommentContent; // content of the comment/annotation 516 String msAuthor; // author 517 String msAuthorInitials; // author's initials 518 String msName; // name (identifier) of the comment/annotation 519 DateTime maDateTime; // creation date and time |
522 | 520 |
521 OutlinerParaObject* mpText; 522 SwTextAPIObject* m_pTextObject; 523 |
|
523public: | 524public: |
524 SwPostItField( SwPostItFieldType*, 525 const String& rAuthor, const String& rTxt, const DateTime& rDate); 526 ~SwPostItField(); | 525 SwPostItField( 526 SwPostItFieldType*, 527 const String& rCommentContent, 528 const String& rAuthor, 529 const String& rAuthorInitials, 530 const String& rName, 531 const DateTime& rDate); 532 ~SwPostItField(); |
527 | 533 |
528 virtual String Expand() const; 529 virtual SwField* Copy() const; | 534 virtual String Expand() const; 535 virtual SwField* Copy() const; |
530 | 536 |
531 inline const Date GetDate() const { return aDateTime.GetDate(); } 532 inline const Time GetTime() const { return aDateTime.GetTime(); } | 537 inline const Date GetDate() const 538 { 539 return maDateTime.GetDate(); 540 } 541 inline const Time GetTime() const 542 { 543 return maDateTime.GetTime(); 544 } |
533 | 545 |
534 // Author 535 virtual const String& GetPar1() const; 536 virtual void SetPar1(const String& rStr); | 546 // Author 547 virtual const String& GetPar1() const; 548 virtual void SetPar1(const String& rStr); |
537 | 549 |
538 // Text 539 virtual String GetPar2() const; 540 virtual void SetPar2(const String& rStr); 541 const String& GetTxt() const { return sTxt; } | 550 // Text 551 virtual String GetPar2() const; 552 virtual void SetPar2(const String& rStr); 553 inline const String& GetContent() const 554 { 555 return msCommentContent; 556 } |
542 | 557 |
543 const OutlinerParaObject* GetTextObject() const; 544 void SetTextObject( OutlinerParaObject* pText ); | 558 // Name 559 void SetName(const String& rStr); 560 const String& GetName() const; |
545 | 561 |
562 const OutlinerParaObject* GetTextObject() const; 563 void SetTextObject( OutlinerParaObject* pText ); 564 |
|
546 sal_uInt32 GetNumberOfParagraphs() const; 547 | 565 sal_uInt32 GetNumberOfParagraphs() const; 566 |
548 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; 549 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); | 567 virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ) const; 568 virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt16 nWhich ); |
550 virtual String GetDescription() const; 551}; 552 553/*-------------------------------------------------------------------- 554 Beschreibung: DokumentInfo 555 --------------------------------------------------------------------*/ 556 557class SwDocInfoFieldType : public SwValueFieldType --- 278 unchanged lines hidden --- | 569 virtual String GetDescription() const; 570}; 571 572/*-------------------------------------------------------------------- 573 Beschreibung: DokumentInfo 574 --------------------------------------------------------------------*/ 575 576class SwDocInfoFieldType : public SwValueFieldType --- 278 unchanged lines hidden --- |