Kaydet (Commit) c6d2e7d7 authored tarafından Miklos Vajna's avatar Miklos Vajna

vcl pdf tokenizer: indentation fixes

These files had a consistent style before, let's keep them that way.

Change-Id: I32cf4ae61d0fac37df5e5412ae9cf3e2b3c92d17
üst 315b6afc
...@@ -322,13 +322,13 @@ class VCL_DLLPUBLIC PDFDocument ...@@ -322,13 +322,13 @@ class VCL_DLLPUBLIC PDFDocument
/// Write the appearance object as part of signing. /// Write the appearance object as part of signing.
sal_Int32 WriteAppearanceObject(); sal_Int32 WriteAppearanceObject();
/// Write the annot object as part of signing. /// Write the annot object as part of signing.
sal_Int32 WriteAnnotObject(PDFObjectElement const & rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId); sal_Int32 WriteAnnotObject(PDFObjectElement const& rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId);
/// Write the updated Page object as part of signing. /// Write the updated Page object as part of signing.
bool WritePageObject(PDFObjectElement& rFirstPage, sal_Int32 nAnnotId); bool WritePageObject(PDFObjectElement& rFirstPage, sal_Int32 nAnnotId);
/// Write the updated Catalog object as part of signing. /// Write the updated Catalog object as part of signing.
bool WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& pRoot); bool WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& pRoot);
/// Write the updated cross-references as part of signing. /// Write the updated cross-references as part of signing.
void WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const * pRoot); void WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const* pRoot);
public: public:
PDFDocument(); PDFDocument();
...@@ -337,7 +337,7 @@ public: ...@@ -337,7 +337,7 @@ public:
/// @name Low-level functions, to be used by PDFElement subclasses. /// @name Low-level functions, to be used by PDFElement subclasses.
//@{ //@{
/// Decode a hex dump. /// Decode a hex dump.
static std::vector<unsigned char> DecodeHexString(PDFHexStringElement const * pElement); static std::vector<unsigned char> DecodeHexString(PDFHexStringElement const* pElement);
static OString ReadKeyword(SvStream& rStream); static OString ReadKeyword(SvStream& rStream);
static size_t FindStartXRef(SvStream& rStream); static size_t FindStartXRef(SvStream& rStream);
void ReadXRef(SvStream& rStream); void ReadXRef(SvStream& rStream);
......
...@@ -255,7 +255,7 @@ sal_Int32 PDFDocument::WriteAppearanceObject() ...@@ -255,7 +255,7 @@ sal_Int32 PDFDocument::WriteAppearanceObject()
return nAppearanceId; return nAppearanceId;
} }
sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement const & rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId) sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement const& rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId)
{ {
// Decide what identifier to use for the new signature. // Decide what identifier to use for the new signature.
sal_uInt32 nNextSignature = GetNextSignature(); sal_uInt32 nNextSignature = GetNextSignature();
...@@ -535,7 +535,7 @@ bool PDFDocument::WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& p ...@@ -535,7 +535,7 @@ bool PDFDocument::WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& p
return true; return true;
} }
void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const * pRoot) void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const* pRoot)
{ {
if (m_pXRefStream) if (m_pXRefStream)
{ {
...@@ -1910,7 +1910,7 @@ int PDFDocument::AsHex(char ch) ...@@ -1910,7 +1910,7 @@ int PDFDocument::AsHex(char ch)
return nRet; return nRet;
} }
std::vector<unsigned char> PDFDocument::DecodeHexString(PDFHexStringElement const * pElement) std::vector<unsigned char> PDFDocument::DecodeHexString(PDFHexStringElement const* pElement)
{ {
std::vector<unsigned char> aRet; std::vector<unsigned char> aRet;
const OString& rHex = pElement->GetValue(); const OString& rHex = pElement->GetValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment