2006-04-17 01:13:07 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-04-17 01:13:07 +00:00
|
|
|
|
|
|
|
#include "nsSAXLocator.h"
|
|
|
|
|
2014-04-27 07:06:00 +00:00
|
|
|
NS_IMPL_ISUPPORTS(nsSAXLocator, nsISAXLocator)
|
2006-04-17 01:13:07 +00:00
|
|
|
|
2006-09-13 18:20:05 +00:00
|
|
|
nsSAXLocator::nsSAXLocator(nsString& aPublicId,
|
|
|
|
nsString& aSystemId,
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t aLineNumber,
|
|
|
|
int32_t aColumnNumber) :
|
2006-09-13 18:20:05 +00:00
|
|
|
mPublicId(aPublicId),
|
|
|
|
mSystemId(aSystemId),
|
|
|
|
mLineNumber(aLineNumber),
|
|
|
|
mColumnNumber(aColumnNumber)
|
2006-04-17 01:13:07 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 15:56:38 +00:00
|
|
|
nsSAXLocator::GetColumnNumber(int32_t *aColumnNumber)
|
2006-04-17 01:13:07 +00:00
|
|
|
{
|
|
|
|
*aColumnNumber = mColumnNumber;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 15:56:38 +00:00
|
|
|
nsSAXLocator::GetLineNumber(int32_t *aLineNumber)
|
2006-04-17 01:13:07 +00:00
|
|
|
{
|
|
|
|
*aLineNumber = mLineNumber;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSAXLocator::GetPublicId(nsAString &aPublicId)
|
|
|
|
{
|
|
|
|
aPublicId = mPublicId;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSAXLocator::GetSystemId(nsAString &aSystemId)
|
|
|
|
{
|
|
|
|
aSystemId = mSystemId;
|
|
|
|
return NS_OK;
|
|
|
|
}
|